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

Home » Public Forums » archive » widget_button on a IDLgrWindow in WINDOWS / UNIX
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
widget_button on a IDLgrWindow in WINDOWS / UNIX [message #68567] Mon, 02 November 2009 12:48
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi guys,

Using windows, I realized that if I want to display a WIDGET_BUTTON on
a IDLgrWindow I have to draw the WIDGET_BUTTON before the WIDGET_DRAW
that represents the window.
Otherwise, in a Unix platform the order is not important. I'm talking
about the following example code:

base=WIDGET_BASE()

draw=WIDGET_DRAW(base,xsize=200,ysize=200, RETAIN=0, RENDERER=1,
GRAPHICS_LEVEL=2)
WIDGET_CONTROL, base,/realize
WIDGET_CONTROL, draw, GET_VALUE=owindow
owindow->SetProperty, QUALITY=2
oview=obj_new('IDLgrview',viewplane_rect=[0,0,200,200])
butt=WIDGET_BUTTON(base,VALUE='TEST',XOFFSET=50,YOFFSET=50,X SIZE=100)
owindow->draw, oview

I obtain different results running this code on Unix and Windows. In
windows, If I want to see the widget_button I've to declare it before
the widget_draw. Using linux, the order is not important. Why ?

I've problems with my code for this reason and I was thinking that
maybe there is a way to declare the buttons at the end without
problems. I mean, maybe somebody knows how to display the buttons on
the window although the declaration is at the end.

Thanks,
nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Licensing woes
Next Topic: Re: progressbar update problem

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

Current Time: Wed Oct 08 17:07:01 PDT 2025

Total time taken to generate the page: 0.00775 seconds