Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to detect when mouse has left the boundaries of a CoolBar Control while draging a band

10 views
Skip to first unread message

Leo

unread,
Mar 24, 2013, 10:12:41 AM3/24/13
to
I am looking to implement floating toolbars, ie those that can be
dragged from a coolbar/rebar into a floating toolwindow. I can not work
out how to detect when the mouse has left the coolbar so as to pop up
the toolwindow. I would also like help with working out which band is
being draged so I can put the correct toolbar on the toolwindow.

Thanks

--
ClassicVB Users Regroup! comp.lang.basic.visual.misc
Free usenet access at http://www.eternal-september.org


Eduardo

unread,
Mar 24, 2013, 4:22:01 PM3/24/13
to

"Leo" <ttd...@gmail.com> escribi� en el mensaje
news:kin1bs$1kd$1...@dont-email.me...
>I am looking to implement floating toolbars, ie those that can be dragged
>from a coolbar/rebar into a floating toolwindow. I can not work out how to
>detect when the mouse has left the coolbar so as to pop up the toolwindow.

Perhaps setting a timer and with the APIs GetCursorPos and WindowFromPoint

> I would also like help with working out which band is being draged so I
> can put the correct toolbar on the toolwindow.

I know this Rebar from Vbaccelerator:
http://www.vbaccelerator.com/home/VB/Code/Controls/Toolbar/vbAccelerator_ToolBar_and_CoolMenu_Control/article.asp
But I don't remember if it supports band dragging.


Leo

unread,
Mar 25, 2013, 7:58:07 AM3/25/13
to
Leo formulated the question :
> I am looking to implement floating toolbars, ie those that can be dragged
> from a coolbar/rebar into a floating toolwindow. I can not work out how to
> detect when the mouse has left the coolbar so as to pop up the toolwindow. I
> would also like help with working out which band is being draged so I can put
> the correct toolbar on the toolwindow.
>
> Thanks

I just tried using Karls CHookMouseEvents, which is based on
TrackMouseEvents and windows doesn't seem to be sending me the correct
messages. Is the vb CoolBar somehoe strange in that regard?
0 new messages