MacArthur, Ian (SELEX GALILEO, UK) wrote:
>>     On FF3 for Mac, the buttons have NO shortcuts indicated.
> 
> Maybe they ran into this too and just chickened out of making a
> decision!

    LOL, could be.. I don't know much at all about Cocoa.
    I avoided it when I found out 'objective c' was involved, and
    wanted nothing further to do with it.

    FWIW, you can make letter shortcuts for buttons in the native
    GUI builder. I just now opened Mac's "Interface Builder"
    (Mac's 'fluid'), and "felt around" for a way to make button
    shortcuts (doing a 'Help -> Search: Shortcuts' didn't show
    anything useful)

    Pretty easy; like fluid, you first create a window widget,
    then drop a "Button" on it. Then open "Tools -> Show Inspector"
    (equiv of fluid's Property Editor), and found you could make
    keyboard shortcuts at the "Key Equiv" prompt, which has both
    a regular text input field, and a pulldown menu with a limited
    list of function keys, escape keys, stuff like that. But I found
    I could make e.g. just the letter 'b' a shortcut for the button
    if I just typed 'b' in the Key Equiv input field.

    When I then ran the app in "File -> Test Interface" mode,
    hitting 'b' did indeed push the button.

    So it 'can' be done even from Mac's GUI builder.

    What I couldn't figure out is how to make the letter in the
    button's label "underlined"; when in the label editing mode, the
    font style "Underline" was grayed out. 'Bold' was available though..
    weird.

    I guess a tooltip could advertise the shortcut somehow. Or you can
    probably make it underlined from code, just not in the gui builder?

    Anyway, that's enough native mac stuff for me today.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to