New topic: 

Cocoa menu popup difference/problem

<http://forums.realsoftware.com/viewtopic.php?t=47135>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        kermit          Post subject: Cocoa menu popup 
difference/problemPosted: Sun Mar 03, 2013 5:34 am                         
Joined: Mon May 30, 2011 12:56 am
Posts: 628                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             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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]

Reply via email to