Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Sep 22, 2019 1:10 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Unwanted ContextualMenu in ListBox cell
PostPosted: Mon Feb 01, 2010 2:25 am 
Offline

Joined: Mon May 08, 2006 8:50 pm
Posts: 780
I'm using Ubuntu 8.04 with RB-9r51and I'm building my own ListBox using a listbox subclass. I have NO code in the ConstructContextualMenu or ContextualMenuAction events. Also, the window on which the listbox sits has no MenuBar. If I do a ContextualMenu click (right mouse button) nothing should happen but..... a basic "cut/copy/paste" menu pops up. I can't figure out how to disable the ContextualMenu so it won't pop up.

Anyone notice the same problem? Any work arounds?

Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Unwanted ContextualMenu in ListBox cell
PostPosted: Mon Feb 01, 2010 3:16 am 
Offline

Joined: Mon May 08, 2006 8:50 pm
Posts: 780
Temporary Solution.

In the MouseDown Event the following prevents the phantom ContextualMenu from popping up.

if IsContextualClick then return true


Presumably, if I need to use the ConstructContextualMenu event it will override the default menu if a 'return true' is used within the ContextualMenuAction.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group