Mouse messages are not sent to group boxes.  So the message goes straight to the dialog.  This code works and only puts up the context menu if the mouse click was over the group box:


Many thanks Mark for the explanation and solution to this.
 
/*
::method onExit unguarded
self~cancel:super()
self~finished = 0   -- Do not touch self~finished
return self~finished
*/

 
I copied an old test program and didn't react on this. Thanks.

Staffan