How to design the help document in GUI?

4 ビュー (過去 30 日間)
QiQin Zhan
QiQin Zhan 2013 年 2 月 28 日
I've just finished a GUI program.And I'm going to design a 'help menu' telling people how to use the program.If I click on the help menu,the help document will appear.Would you please tell me how to design it?

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 2 月 28 日
編集済み: Sean de Wolski 2013 年 2 月 28 日
Use a uimenu and have the callback call web() with your html file. Or poof a new figure that contains a text box with the info you want.
doc uimenu
doc web
Here's a simple example:
hFig = figure('menubar','none','Toolbar','figure');
surf(peaks)
hM = uimenu('parent',hFig,'Label','Help');
uimenu(hM,'Label','Help Contents','Callback',@(~,~)web('www.google.com'));
uimenu(hM,'Label','About the Author','Callback',@(~,~)msgbox('Sean was here!'));

その他の回答 (1 件)

Jan
Jan 2013 年 2 月 28 日
Matlab users are used to read Matlab's help files. Therefore I'd follow the style of the doc files, add the html file to the standard doc browser also and use FEX: popupPanel to display this HTML page when the local help menu is triggered.
  3 件のコメント
QiQin Zhan
QiQin Zhan 2013 年 2 月 28 日
popupPanel can display doc help. Would you please say something more detail on how to make a doc help so that I can use the popupPanel.
Jan
Jan 2013 年 2 月 28 日
@Sean: Correct, but in a deployed application you can open the same HTML page in a browser instead.
@Chan: You can use standard HTML pages, which can be view by a standard browser also such that you can place it a web page also.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by