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/