New topic: Unwanted ContextualMenu in ListBox cell
<http://forums.realsoftware.com/viewtopic.php?t=32285> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message Paul Burnside Post subject: Unwanted ContextualMenu in ListBox cellPosted: Mon Feb 01, 2010 2:25 am Joined: Mon May 08, 2006 8:50 pm Posts: 539 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 Paul Burnside Post subject: Re: Unwanted ContextualMenu in ListBox cellPosted: Mon Feb 01, 2010 3:16 am Joined: Mon May 08, 2006 8:50 pm Posts: 539 Temporary Solution. In the MouseDown Event the following prevents the phantom ContextualMenu from popping up. Code: 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 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
