Font selection questions
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Oct 28 13:50:25 EDT 2007
Hi Mark,
In the menuPick handler, the menuhistory of the button will give you
the line number of the selectd menu item.
A combo box is supposed to show a list of items as text. You can't
add checkmarks, unless you want to put a character in front of the
menu item, such as a bullet or a diamond.
If you want to use checkmarks, you should use an option menu button.
Actually, I don't think that using any kind of menu button for fonts
is a good idea. Can't you use a list field?
Best regards,
Mark Schonewille
--
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Quickly extract data from your HyperCard stacks with DIFfersifier.
http://differsifier.economy-x-talk.com
Op 28-okt-2007, om 18:25 heeft Mark Swindell het volgende geschreven:
> In Rev's text formatting palette the Choose Font combo box always
> shows the font list in alphabetical order from the beginning.
>
> In my font menu, I would like the font list to pop up at the
> currently active font (preferably check marked and in the center of
> the pop-up choices). How does one direct a menu to pop up from a
> specific item (the one that is checked, for example)?
>
> Also:
>
> How can you return the menuitem number from the menupick?
>
> For example, "put menuitem 23 of button "fontz"" returns the font
> name, but how can one accomplish the reverse, and have the font
> name (pWhich) return the corresponding menuitem number (23)?
>
> Thanks
> Mark
More information about the use-livecode
mailing list