Any way to not completely stop edits? |
Post Reply |
Author | |
Mark19960
Groupie Joined: 17 October 2007 Location: United States Status: Offline Points: 11 |
Post Options
Thanks(0)
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? |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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 |
|
Mark19960
Groupie Joined: 17 October 2007 Location: United States Status: Offline Points: 11 |
Post Options
Thanks(0)
|
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 |
|
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 |