Re: Resizing and mouse event ??? [message #39671] |
Tue, 08 June 2004 05:43 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Antonio Santiago writes:
> Mmm... well, i want to allow resize the widget_draw's of my application
> when the root window is resized but only after i release the mouse button.
> I set the TLB_SIZE_EVENTS in the widget_base application, but the
> problem is resize event is sending me in every modification of root size
> even when i havent release the button.
> - When user is modifying the root size, i dont want to do anything.
> - When the user release the button, i wnat to read the last resize event
> and modify the widget_draw's sizes.
Oh, right. You have "Show Window Contents While Dragging" turned
on. There are various ways to turn it off. On my Windows XP
machine I right click on the desktop to get the Display Properties
dialog, choose the Appearance tab, then finally the Advanced tab.
There it is. Turn it off. You will find it somewhere on other
Windows operating systems, too, always associated with display
settings. Has nothing to do with IDL. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Resizing and mouse event ??? [message #39674 is a reply to message #39671] |
Mon, 07 June 2004 23:53  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
Mmm... well, i want to allow resize the widget_draw's of my application
when the root window is resized but only after i release the mouse button.
I set the TLB_SIZE_EVENTS in the widget_base application, but the
problem is resize event is sending me in every modification of root size
even when i havent release the button.
- When user is modifying the root size, i dont want to do anything.
- When the user release the button, i wnat to read the last resize event
and modify the widget_draw's sizes.
David Fanning wrote:
> Antonio Santiago writes:
>
>
>> Hi, my problem is:
>>
>> I want to resize a window aplication but i want to update the
>> widget_draw inside this when the user release the mouse.
>> The base widget has the option TLB_SIZE_EVENTS that emits the event
>> WIDGET_BASE with the new dimensions, but it doesnt informate about mouse
>> button.
>>
>> How can i know the status of the mouse buttons in a resize event of
>> widget_base?
>
>
> I'm not sure the mouse buttons are relevant in this case.
> The window manager is responsible for when the resize
> base event is generated, and it is always generated when
> you release the cursor. No information about the position
> or state of the cursor is included in the event structure.
> Since it appears that base widgets in Windows can only
> be sized with the left mouse button, I presume you would
> be save in assuming the LEFT button is UP if you had to
> assume something. :-)
>
> Cheers,
>
> David
>
>
|
|
|
Re: Resizing and mouse event ??? [message #39687 is a reply to message #39674] |
Mon, 07 June 2004 10:56  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Antonio Santiago writes:
> Hi, my problem is:
>
> I want to resize a window aplication but i want to update the
> widget_draw inside this when the user release the mouse.
> The base widget has the option TLB_SIZE_EVENTS that emits the event
> WIDGET_BASE with the new dimensions, but it doesnt informate about mouse
> button.
>
> How can i know the status of the mouse buttons in a resize event of
> widget_base?
I'm not sure the mouse buttons are relevant in this case.
The window manager is responsible for when the resize
base event is generated, and it is always generated when
you release the cursor. No information about the position
or state of the cursor is included in the event structure.
Since it appears that base widgets in Windows can only
be sized with the left mouse button, I presume you would
be save in assuming the LEFT button is UP if you had to
assume something. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|