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
>
>
|
|
|