Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / January 2004



Tip: Looking for answers? Try searching our database.

Menu item in NIB...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
patrox - 19 Jan 2004 16:40 GMT
Hello

I got some progress in the NIB dialog box, I managed to create all the
elements, my last questions ( well i hope )

is how to know which item is selected in the popup menu  ( impossible to
find this... )
I tried this in the window callback
languageSelected = command.menu.menuItemIndex ;
but command.menu.menuItemIndex  is always 0, so i guess i'm not doing it
right.

Also i don't find how to force select the popup menu on an entry of my
choice ( let's say the 2nd item of the list )

I've been trying things all day and i can't find any documentation on the
apple site :(
I just manage to do CheckMenuItem ( so i'm sure I get a correct MenuRef..  )

Thank you
patrice
Sebastian Wegner - 19 Jan 2004 19:14 GMT
> I got some progress in the NIB dialog box, I managed to create all the
> elements, my last questions ( well i hope )
[quoted text clipped - 12 lines]
> apple site :(
> I just manage to do CheckMenuItem ( so i'm sure I get a correct MenuRef..  )

You just call GetControlValue and SetControlValue on the ControlRef of the
poup menu control. If you need to do an action instantly after choosing an
item you can assign a command value to each menu item which can be checked
in the window callback of the dialog window.

Sebastian
----------------
Sebastian Wegner

http://www.mcsebi.com/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.