Re-sizing Draw Widgets in Linux [message #31397] |
Mon, 08 July 2002 17:26 |
MKatz843
Messages: 98 Registered: March 2002
|
Member |
|
|
Here's a widget programming issue I'm having with Linux (IDL 5.5) that
is not a problem on the Mac (IDL 5.4).
I'm trying to dynamically re-size the screen area of a widget_draw
widget in response to the user changing the size of the top-level
base. (This happens to be a widget for drawing with object graphics
[graphics_level = 2], but I'm not sure that is an important detail.)
I issue this command:
widget_control, windowID, DRAW_XSIZE = xx, DRAW_YSIZE = yy
and yes, the screen size of the widget changes perfectly.
HOWEVER, the newly added areas of the window cannot be drawn-to. They
remain black even though the rest of the window behaves just as it
should.
As I said above, this works _perfectly_ on a Mac (no surprise there),
and it's exactly the same code on both machines.
Am I going to have to destroy and re-create the widget_draw window to
make this work?
Thanks,
M. Katz
|
|
|