Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Any way to not completely stop edits?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Any way to not completely stop edits?

 Post Reply Post Reply
Author
Message
Mark19960 View Drop Down
Groupie
Groupie


Joined: 17 October 2007
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mark19960 Quote  Post ReplyReply Direct Link To This Post Topic: Any way to not completely stop edits?
    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?
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Mark19960 View Drop Down
Groupie
Groupie


Joined: 17 October 2007
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mark19960 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.