[Top][All Lists]

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

RE: UI element

From: Richardson, Anthony
Subject: RE: UI element
Date: Thu, 19 Dec 2019 13:48:53 +0000

> -----Original Message-----
> Subject: Re: UI element
> thank you for answer
> i want similar this:
> i put number in a, b and c  and after i touch "press "
> i want to read variable a , b and c

For the code in your original post:
   s = get(e1, 'string')
will return the edited string in the textbox.  Similarly
  v = get(c1, 'value')
will return the checkbox state( 0 or 1).   (Type "get(c1)" to see all of the 
checkbox properties.)

This would allow you to poll the gui elements looking for changes.   You don't 
usually want to use this method though.  Instead you would define a callback 
function that is automatically run whenever the gui element is changed.  There 
are several Octave GUI examples here: 
That may help you get further.

Tony Richardson

reply via email to

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