OKDLGWITHLISTBOX

Produces a simple OK dialog to be used to display long messages.
1,8K download
Aggiornato 4 mag 2005

Nessuna licenza

Produces a simple OK dialog to be used to display long help messages but may really be used for many purposes.

The lengthy message is displayed in a listbox, which has the advantage of permitting scroll bars.

INPUT
QUESTION, type = string
NAME, type = string
LISTBOX MESSAGE,type = cell array of strings
OR a filename preceeded by "-f"

OUTPUT
SELECTEDBUTTONNAME, type = string

USAGE
out = OKDlgWithListBox( ...
['Help for SearchReplaceManyGUI. This help page has been created ' ...
'to provide some basic guidance for the program ' ...
'SearchReplaceManyGUI. Unfortunately, since the programmer was ' ...
'very lazy, he used an automated help tool, AUTOHELP, and as a ' ...
'result this help may not be of much use.'], ...
'SearchReplaceManyGUI :: Help', ...
{['This is line one. It may be very long and scroll off the page. ' ...
'It may, in fact, be so long as to require scroll bars to ' ...'
'view.'], ...
'A 2nd Row','datum','more','another'});

ANOTHER EXAMPLE:
out = OKDlgWithListBox( ...
['OKDLGWITHLISTBOX This window page has been created ' ...
'to allow OK dialog boxes with a large listbox for long ' ...
'strings and cell strings. This ' ...
'Example loads the file Article1.txt and displays it in ' ...
'the listbox.'], ...
'OKDLGWITHLISTBOX :: File Example', ...
'-fArticle1.txt');

SEE ALSO QUESTDLGWITHGRID AUTOHELP QUESTDLG GRID_AND_TABLE SPREADSHEET

Cita come

Michael Robbins (2024). OKDLGWITHLISTBOX (https://www.mathworks.com/matlabcentral/fileexchange/7581-okdlgwithlistbox), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R14SP1
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Dialog Boxes in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0