|Subject:||Re: Creating 'Forms' in Octave|
|Date:||Tue, 30 Aug 2016 20:01:48 +0200|
Thank you,Any suggestions on how to accomplish this?It would also be great if the form didn't disappear when I say 'OK' to run the calculations.I want the data in the dialog to remain so I can go back and change one variable and have it recalculate.Now, the big question is how to make the dialog 'sticky'.Pantxo,So I've been able to create the dialog that I need, and I've gotten it to run through my calculations.
On Tue, Aug 23, 2016 at 11:21 AM, Pantxo <address@hidden> wrote:
Chip Wachob wrote
> ______________________________> Hello,
> I'm still very new to the Octave tool, so I apologize if this is a repeat.
> I searched the archives but probably didn't use the right keyword..
> I'd like to know if there is a simple way of creating a 'form' or dialog
> box in Octave that would allow me to change the value(s) of various
> variables, but retain the previous values of others. After changing the
> input, I'd like to click on a 'button' that would recalculate the results
> and update a plot window.
> The function that I'm using currently requires eight inputs. I've
> successfully written a script (using input()) that will allow me to type
> those inputs manually, each time, but usually I'm only changing one
> variable at a time and it sure would be a lot simpler if I could change
> that variable and 'update' the plot.
> I looked at the Java section (Section 37?) but I was not able to get any
> the Java commands to work. It seems that perhaps I'm missing a
> "Java-Octave" plugin, but when I attempted to install the plugin, it told
> me the host didn't exist..
> If there is an example out there that would allow me to learn how this is
> done, that would be great.
> Can anyone offer up a starting place? A link to a tutorial or example
> would be great.
> BTW, I don't actually know Java or Python, and I'd prefer not to have to
> learn it in the midst of learning Octave if I don't have to.
> Version 4.0.3. Both in Windoze and Ubuntu.
> Thank you in advance for your help,
> Help-octave mailing list
What you describe looks simple enough to be done with inputdlg, see "demo
If you need a more fine control on the user interface you could use
uicontrol , which unfortunately currently has no demo but is expected to
work as in Matlab.
View this message in context: http://octave.1599824.n4.nabbl
Sent from the Octave - General mailing list archive at Nabble.com.
Help-octave mailing list
As I said you can build more complex, and non modal, gui using "uicontrol" objects. Those are basically buttons, text boxes, ..., that you put onto a figure object. Here is a very basic example:hf = figure ("position", [0 0 200, 300], "name", "PLUS App", "numbertitle", "off", "menubar", "none");
|[Prev in Thread]||Current Thread||[Next in Thread]|