Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Nov 22, 2019 3:11 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Cocoa menu popup difference/problem
PostPosted: Sun Mar 03, 2013 5:34 am 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
I have a modal dialog, with a button on it.
In the action of the button, this code:

dim m as new MenuItem
dim m2 as new menuitem
dim chosen as menuitem
m2.Text = "test"
m.Append m2
chosen = m.PopUp

if chosen = nil then
msgbox "nothing chosen"
else
msgbox chosen.Text
end if


If I compile for Carbon, the popup menu is enabled and works.
If I compile for Cocoa, the menu appears, but is disabled.

Is there something about popups Im missing?


Top
 Profile  
Reply with quote  
 Post subject: Re: Cocoa menu popup difference/problem
PostPosted: Sun Mar 03, 2013 7:28 am 
Offline

Joined: Mon Jul 24, 2006 4:06 am
Posts: 274
This sounds similar to a problem I found this week where popup menus weren't enabled. In your case I was able to make the popup menu enabled by changing from showmodal to show.

HTH

_________________
Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals


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