Any way to not completely stop edits?
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=8480
Printed Date: 27 November 2024 at 4:32am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Any way to not completely stop edits?
Posted By: Mark19960
Subject: Any way to not completely stop edits?
Date Posted: 20 October 2007 at 12:50pm
I want to be able to drag the event around but disallow the text editing of the event.
I am using the custom dataprovider so I suppose I can trap any changes and reset the text if it is changed.. but is there a property that does this?
Procedure OnComIsEditOperationDisabled Variant llOpParams Boolean ByRef llbDisableOperation Move True to llbDisableOperation End_Procedure
The above also stops any dragging of the event. The texts are handled in the database and handled elsewhere and do not want them to be modified.
is the way I describe above (trapping the change and resetting) the only way to do this?
|
Replies:
Posted By: sserge
Date Posted: 22 October 2007 at 6:10pm
Check OpParams.Operation before disabling editing operation. Execute: Move True to llbDisableOperation only if OpParams.Operation is not xtpCalendarEO_DragCopy or xtpCalendarEO_DragMove.
-- WBR, Serge
|
Posted By: Mark19960
Date Posted: 22 October 2007 at 10:29pm
That did it, thanks.
Here is the code written in Dataflex for those that need it:
[quote] Procedure OnComIsEditOperationDisabled Variant llOpParams Boolean ByRef llbDisableOperation Handle hParams OLECalendarEditOperation eParam Get Create U_cComCalendarEditOperationParameters to hParams Set pvComObject of hParams to llOpParams Get ComOperation of hParams to eParam If ((eParam eq 1) or (eParam eq 2)) Move False to llbDisableOperation Else Move True to llbDisableOperation Send Destroy of hParams End_Procedure [/quote
|
|