comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Draw Widget in GUIBuilder?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Draw Widget in GUIBuilder? [message #49461 is a reply to message #49459] Wed, 26 July 2006 08:53 Go to previous messageGo to previous message
Doug Edmundson is currently offline  Doug Edmundson
Messages: 58
Registered: November 2005
Member
maye wrote:
> I found out more about it:
> Everything goes well, if I don't use the tab widget.
> And with the tab widget, it works, IF one puts the sizing of the tab
> widget element to explicit. But only then. Otherwise the whole area is
> shrinked, don't know why, b/c in the manual it says that the size of
> the tabwidget is determined by the largest base in the tab elements. As
> the base size is determined by the explicitly sized draw widget, the
> tab widget should find out about that, but it doesn't seem to do so.I
> guess this is a bug? Or an un-understood feature?
> Anyway, with some mangling i could do now what I wanted.
> Regards,
> Michael
>

Michael,

I wrote a little widget application and am not seeing the problem. I
tried it on IDL 6.0 and 6.3. I've included the program below. Please
give it a try and let me know how it runs (or if I'm not correctly
duplicating your widget layout). If it doesn't fail, can you send me
your reproduce case? Also, what version of IDL are you running? Do you
have a non-Windows machine you can try it on?

Doug

--- 8< ------------------------------------

pro tabster

topBase = widget_base()

tabBase = widget_tab( topBase )

tab1 = widget_base( tabBase, title = "One", /column )

buttonBase = widget_base( tab1, /row )
button1 = widget_button( buttonBase, value = "B1" )
button2 = widget_button( buttonBase, value = "B2" )
button3 = widget_button( buttonBase, value = "B3" )

draw = widget_draw( tab1, xsize = 512, ysize = 512 )

widget_control, topBase, /realize

end
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Deleting a variable from a NetCDF file
Next Topic: IDLgrPolygon with different colors for shading and lines

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 02:47:46 PDT 2025

Total time taken to generate the page: 0.87800 seconds