I installed Octave 3.6.2 on both Windows XP and Linux 64 and I am trying to port an application from Matlab, making use of some uicontrols.
I see that the uicontrol function is provided in Octave 3.6.2, at least when the graphics toolkit FLTK is in use (and it is an error to use it with the Gnuplot graphics toolkit).
The problem, however, is that the uicontrol function returns a valid handler, but no pushbutton is visible on the figure. Setting and getting the properties of the returned handler works well, except that the figure is completely clean, no uicontrol appears no matter the properties (it seems).
On 26 July 2012 06:07, felixt <[hidden email]> wrote:
> I see that the uicontrol function is provided in Octave 3.6.2, at least
> when the graphics toolkit FLTK is in use (and it is an error to use it with
> the Gnuplot graphics toolkit).
From NEWS (type news to read this):
The uiXXX functions above are experimental.
Except for uiwait and uiresume, the uiXXX functions are not
supported with the FLTK+OpenGL graphics toolkit.
1. QtHandles is only available in the binary compiled with Visual Studio, but unaivailable in the binary compiled with GCC. I think that could be arranged through recompilation, the maintainer might consider that.
2. There are several bugs in Octave 3.6.2-VS-QtHandles that I ended using:
2.1: available_graphics_toolkits does not report the "qt" toolkit as being available, although the command graphics_toolkit correctly recognizes it
2.2: QtHandles does seems to not correctly report the current mouse coordinates for the root object and for the current axes (for example inside the "buttondownfcn" callback - the reported coordinates are always stuck to zero). All the while, the current mouse coordinates are correctly reported for figure objects, and that requires a bit of mathematics to translate those coordinates in axes data coordinates, in order to obtain a ginput function similar to Matlab.
2.3 The giput function is available for the gnuplot and fltk graphics toolkits, but not for the "qt" (QtHandles) graphics toolkits.