windows context menu versus WinCC OA popupMenu()

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
jbornemann
Posts:6
Joined: Wed Feb 23, 2011 8:53 am

windows context menu versus WinCC OA popupMenu()

Post by jbornemann »

Regular graphical objects / buttons in Gedi may be associated with context menu, using "RightMousePressed" event and function "popupMenu()". This also applies for Textfield or TextEdit objects. Inside the UI the right click event initiates the popup menu, which is programmed in ctrl. In addition, I guess that the OP system is responsible for popup of standard context functions, related to text fields: "Undo, Redo, Cut, Copy, Paste ...". In consequence I have got 2 separate menus, which are superimposing each other, which is not my favorite solution.
Is there any way to merge the 2 popup menus together in order to get 1 menu, including all items?

Any comment on that is highly appreciated, thanks in advance.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: windows context menu versus WinCC OA popupMenu()

Post by mkoller »

Which Version are you using ?
At least since 3.10 the TextField checks if there is a rightClick script and if so, the widget does no longer display its default popup menu.
For the TextEdit widget you can disable the default popup on your own: check the Extended Properties Tab in Gedi and set the contextMenuPolicy to PreventContextMenu

jbornemann
Posts:6
Joined: Wed Feb 23, 2011 8:53 am

Re: windows context menu versus WinCC OA popupMenu()

Post by jbornemann »

Thanks a lot for your hint,
I am still using 3.6, but I am looking forward to updating my solution soon. So the functional extension will resolve it, that's fine for me.

3 posts • Page 1 of 1