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

Home » Public Forums » archive » Resizable IDL List widget?
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: Resizable IDL List widget? [message #53440 is a reply to message #53386] Thu, 12 April 2007 15:44 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JD Smith writes:

> Nice. My version gets bigger and smaller fine under X, with no
> trouble with the Quit button. The fact that it doesn't under Windows
> means that querying and setting SCR_XSIZE is not a symmetric
> operation.

I updated the article with a picture of the problem with the QUIT
button, so those of you who work with something other than Windows
can see what your beautiful IDL code looks like running on your boss's
machine.

http://www.dfanning.com/widget_tips/resize_list.html

> I'm not certain, but here's a test of this:
>
> b=widget_base(/COLUMN)
> t=widget_label(b,VALUE='Testing Foolery')
> d=widget_draw(b,XSIZE=100,YSIZE=80)
>
> widget_control, b,/realize
> widget_control, d,get_value=v
> wset,v
> tvscl,dist(100,80)
>
> for i=0,10 do begin
> g=widget_info(d,/GEOMETRY)
> print,'X: ',g.SCR_XSIZE,' Y: ',g.SCR_YSIZE
> widget_control, d,SCR_XSIZE=g.SCR_XSIZE,SCR_YSIZE=g.SCR_YSIZE
> endfor

No, I think the problem must be something else. This code
behaves about like I think you must be expecting it to. That
is, nothing much happens and all sizes are reported as the
same.

> If IDL were written today, it could leverage a modern cross-platform GUI
> toolkit, like QT/GTK/wX/etc., and dispense with all this crap.

After all the rigamarole and complexity of separating widgets
from the iTool visualization layer, maybe this is what they
intend to do with the big Eclipse update. Ditch widgets and
give us iTools with modern cross-platform GUIs. That would
certainly get rid of those irritating customers who use direct
graphics and complain all the time! :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array Questions
Next Topic: Re: Array Questions

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

Current Time: Wed Oct 08 15:26:20 PDT 2025

Total time taken to generate the page: 0.00429 seconds