Tearoffs toolbars and dragndrop |
Post Reply |
Author | |
Termit
Newbie Joined: 16 December 2003 Location: Russian Federation Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 19 February 2004 at 4:27am |
We use your Codejock library in our product and I have to add dragndrop for tearoffs toolbars.
I checked you help and found out that you support dragndrop only for your own controls, i.e I can drag some toolbar button and drop it into another toolbar, but I can't drop it into my own window. Am I right here? To support my own dragndrop I tried to override virtual finctions of CXTPControl - OnMouseMove for controls that Ive placed into tearoff toolbar. And I notice the next thing: my override is working when toolbar is tear up to its parent, but override is not called when toolbar is teared off. Is it so becouse you create two different windows for tear off toolbar? May be I missed some obvious way to implement dragndrop, so if you have any ideas how to do it, it will be very appericated! Edited by Termit |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hm.. Try to add macroses DECLARE_XTP_CONTROL, IMPLEMENT_XTP_CONTROL to your new class. (see Samples\CommandBars\CustomThemes\CustomControls.h) |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Termit
Newbie Joined: 16 December 2003 Location: Russian Federation Status: Offline Points: 2 |
Post Options
Thanks(0)
|
thanks! it helped.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |