Print Page | Close Window

Tearoffs toolbars and dragndrop

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=453
Printed Date: 05 May 2024 at 6:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tearoffs toolbars and dragndrop
Posted By: Termit
Subject: Tearoffs toolbars and dragndrop
Date 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!



Replies:
Posted By: Oleg
Date Posted: 23 February 2004 at 11:17am

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


Posted By: Termit
Date Posted: 25 February 2004 at 9:01am
thanks! it helped.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net