Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

ShowContextMenu disable

Hi

It would be nice to have able to add context menus, and specify them as disabled.
I realise that it is simple enough to exclude them and only show those that are valid, but for menus such as this, it would be nice to have them both there.
- Undo
- Redo

Also if doing the following, it would also be nice to have them all, and then enable/disable based on the context of any selected text, so if selected text exists then the Cut/Copy would be enabled, and if the clipboard has valid text then Paste would be enabled.
- Cut
- Copy
- Paste

Just a thought for the future.

Colin

Comments

  • You've certainly earned this little feature with all the time you take to provide sample code and detailed recreation scenarios for me. It was to your benefit that this feature turned out to be very easy to add. When it's released, you'll simply set a third value to "0" to disable it. Like so: Menu = "" Menu<-1>="UNDO" :@VM:"Undo" Menu<-1>="CUT" :@VM:"Cut" Menu<-1>="COPY" :@VM:"Copy" Menu<-1>="PASTE" :@VM:"Paste" Menu<-1>="DEL" :@VM:"Delete" :@VM: 0 Menu<-1>="" Menu<-1>="SELECT" :@VM:"Select All" Menu<-1>="" CALL Send_Message(OLE_DESCTABLE,"OLE.ShowContextMenu",Param2,Menu,"") If you want to add the logic now, you can do so without it affecting existing code. It just won't do anything until you get the next release.
  • Thanks Kevin

    Happy to help, as its in everyone's interest to have such things working well.
  • Confirmed that this works fine in 3.1.4.RC1
Sign In or Register to comment.