Font menu button problems

Sarah Reichelt sarah.reichelt at gmail.com
Thu Mar 18 02:07:19 EDT 2010


Hi All,

I want to have a menu button in a preferences stack that allow font selection.
I always prefer the look of option menus, so that's what I started with.
I populate the menu on mouseDown and find the current font setting.
So far, so good.

Now I want to do 2 things: add a check mark to the selected font, and
set the scroll so that the menu pops up with the current choice
already under the mouse pointer.

Here's what happens with the various types of menu button:

option menu: no check mark, just !c before the relevant line, but it
does scroll to the right line.
cascade: check mark, but no scroll, and it looks weird.
combo box: no check mark, no scroll
popup: check mark, no scroll
pulldown: check mark, no scroll

So is there any way to get both the things I need?
I am setting the scroll using the menuHistory, but maybe there is
another method.
Or does anyone know how to get a check mark into an option menu?

This check mark problem in option menus was bugzilla'd by Richard
Gaskin in 2007, with a comment from Mark Waddingham in 2008 saying
that this feature should be added.
I went to vote <http://quality.runrev.com/qacenter/show_bug.cgi?id=5478>
and found that it already had 5 votes from me, so I have obviously
been down this road before :-(

Cheers,
Sarah



More information about the use-livecode mailing list