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
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
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.Happy to help, as its in everyone's interest to have such things working well.