Print Page | Close Window

Clipboard

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


Topic: Clipboard
Posted By: Fabian
Subject: Clipboard
Date Posted: 04 October 2005 at 2:13am

Hi

I try to add some clipboard functionality to our calendar (copy, cut, paste). In the docu I found some CalendarEditOperations that lead me to search for the appropriate EditOperation method. But without luck.

Does anybody know how to perform such basic operations?

Thanks in advance for any help

Fabian



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: sserge
Date Posted: 04 October 2005 at 7:11am
Hi Fabian,

Currently clipboard operations are available only in C++/MFC version. In the next version we'll add them into ActiveX as well.

Let me know if you 'd like to implement them by yourself right now via modifying toolkit code and I'll provide you with some directions how to proceed.

--
WBR,
Serge


Posted By: Fabian
Date Posted: 04 October 2005 at 9:15am

Hi Serge

Thanks for the fast reply.

Yes we need clipboard support. I think I have to go through all selected events of the ActiveView and save their properties in a string and clip this around.

Do you know of any simpler way.

Thanks in advance

Fabian



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: sserge
Date Posted: 05 October 2005 at 2:11am
Fabian,

Currently clipboard cut/copy/paste methods are implemented in the base view class: CXTPCalendarView
    CanCut(), CanCopy(), CanPaste(),     
    Cut(), Copy(), Paste(),
    and also Undo/Redo methods could be useful.

You can look at these methods to see how those operations are implemented.

Moreover, you can add them to interface definition and to the default implementation, after that they will be available for use in ActiveX.
See OleResetSelection and other OleXXX methods for examples.

--
HTH,
Serge


Posted By: Fabian
Date Posted: 05 October 2005 at 5:17am

Hello Serge

I feel stupid .

I am using VB6 and your ActiveX and I can't figure out how to use the (hidden) base class CXTPCalendarView. Can you please go a little bit deeper in your explanations...

Thanks a lot

Fabian



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: sserge
Date Posted: 05 October 2005 at 5:53am
Fabian,

Sorry if I wasn't clear enough -- I meant class and methods implemented currently in C++ code, and how you can use them to add clipboard operations available as methods of the control. Of course such a way would require rebuilding a control itself.

--
WBR,
Serge


Posted By: Fabian
Date Posted: 05 October 2005 at 6:15am

OK Serge

As I understand I can not use the clipboard functions until YOU rebuild the ActiveX. If I am correct, a patched version of this OCX-file would be quite welcome.

Thanks

Fabian



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



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