GUI resize [message #42176] |
Fri, 07 January 2005 16:16 |
newsgroupie2003
Messages: 12 Registered: December 2004
|
Junior Member |
|
|
Hi,
I have trouble with repositioning buttons in a GUI.
My GUI consists of 2 slide bars, 2 buttons and a draw widget.
I use a callback via /tlb_size_events to handle user resizing and it
works fine for all the menchioned widgets except the 2 buttons.
I try to set their xoffset and y offset like the rest of the widgets,
but they fail to respond. They do respond to changing the value
property.
Here is a bit of the code:
widget_control, (*handles).BUTTON1, xoffset=BUTTON1_x,
yoffset=buttons_y
widget_control, (*handles).BUTTON2, xoffset=BUTTON1_x,
yoffset=buttons_y
widget_control, (*handles).drawzone, offset=drawzone_x,
yoffset=drawzone_y, xsize=drawzone_width, ysize=drawzone_height
widget_control, (*handles).slider_horz, xoffset=horzslider_x,
yoffset=horzslider_y, xsize=horzslider_width
widget_control, (*handles).slider_vert, xoffset=vertslider_x,
yoffset=vertslider_y, ysize=vertslider_height
Only the calls to the sliders and the draw widget change positions of
the respective widgets.
What am i missing?
Best regards
Soren
|
|
|