Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 21, 2019 1:31 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: how to hide contextualmenu when no menu item was clicked
PostPosted: Thu Aug 18, 2011 4:44 am 
Offline

Joined: Sun Mar 18, 2007 2:42 pm
Posts: 71
Location: Versailles, France
Hi all,

I have added a contextual menu to a listbox using its ConstructContextualMenu function like this:

base.append(new Menuitem("Copy")
Base.append(new Menuitem("Show")


The contextual Menu is displayed when the user right clicks, and the code I put in the ContextualMenuAction works when the user clicks one of the menuitems, so no issue with this.

The problem is that when the user does not click on a menuitem and moves the mouse over the listbox or another part of the window, the contextual menu remains displayed at the same place, unless the user either clicks on a menuitem or right clicks somewhere else in the window.

Is there any way to hide the contextual menu when the mouse leaves the menu or the concerned control?

(RB pro 2010 r1 / windows Vista and XP pro)

Thx for your help

Endive


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

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