octave-maintainers
[Top][All Lists]
Advanced

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

Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support


From: J. Luis
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Wed, 12 Oct 2011 22:35:00 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 12-10-2011 22:21, Michael Goffioul wrote:
On Wed, Oct 12, 2011 at 10:01 PM, J. Luis<address@hidden>  wrote:
h = plot(1:10);

hP = uimenu('Parent',h, ...  % 'h' is the handle to the fig created by plot.
According to documentation, the output value of "plot" is a(are)
handle(s) to the
line object(s) created. It's possible that you're using here some undocumented
feature of Matlab, where it'll find the ancestor figure of h, when h
is not a valid
uimenu parent (just guessing here).

Sorry, you are absolutely right. I meant to do

h=figure; plot(1:10); hP = uimenu('Parent',h,'Label','Plates','Tag','Plates');

which works fine.

Mirone figures were almost all created with GUIDE and exported to .m but I
than got rid  of about 90% of the trash code generated by GUIDE. They are
now very compact and simple to read. However, they still use 'guidata' and
'guihandles' which I believe have not ported equivalent in Octave. So, right
now they probably not the best simple examples to use as test but I'm
interested in helping to port it if you want.
BTW, you can see the code also at http://code.google.com/p/mirone/
Thanks, looks like an interesting/complete test case, that's what I was
looking for. I'll probably give it a try in the coming days.

Cool, ... but the main figure that has all the ui's declared in 'mirone_uis.m' uses 'uitoolbar' that from what I understand is not supported yet.


reply via email to

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