From: aashay vanarase on
i wanted to add a help button to my gui... i want the pushbutton to open a ready text file.. can anyone advice on how to do this??
From: aashay vanarase on
"aashay vanarase" <aashayv(a)gmail.com> wrote in message <hp85md$79g$1(a)fred.mathworks.com>...
> i wanted to add a help button to my gui... i want the pushbutton to open a ready text file.. can anyone advice on how to do this??

can this be done
From: Walter Roberson on
aashay vanarase wrote:
> "aashay vanarase" <aashayv(a)gmail.com> wrote in message
> <hp85md$79g$1(a)fred.mathworks.com>...
>> i wanted to add a help button to my gui... i want the pushbutton to
>> open a ready text file.. can anyone advice on how to do this??
>
> can this be done

create a figure. Create a uicontrol of style edit that fills the figure.
Set the Maximum property of the uicontrol to more than 1. Set the
Enable property of the uicontrol to 'disable' (*not* to 'off'). Set the
String property of the uicontrol to the text you read from the file.