help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI element


From: Doug Stewart
Subject: Re: UI element
Date: Wed, 18 Dec 2019 14:17:38 -0500



On Wed, Dec 18, 2019 at 1:57 PM shivax via Help list for GNU Octave <address@hidden> wrote:
hi, i want to creare interface to input some value

i use this code:

## Create figure and panel on it
f = figure;
## Create a button (default style)
b1 = uicontrol (f, "string", "A Button", ...
                   "position", [10 10 150 40]);
## Create an edit control
e1 = uicontrol (f, "style", "edit", "string", "editable text", ...
                   "position", [10 60 300 40]);
## Create a checkbox
c1 = uicontrol (f, "style", "checkbox", "string", "a checkbox", ...
                   "position", [10 120 150 40]);

i want to get value input 
How can i get it?



Try this:

 CSTR = inputdlg ("enter a number")
 CSTR



 
Example:

https://gyazo.com/b9c9986609e987936bd44b189a2d04f4





--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html




--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]