Font menu button problems

Richmond Mathewson richmondmathewson at gmail.com
Thu Mar 18 07:38:55 EDT 2010


  On 18/03/2010 08:07, Sarah Reichelt wrote:
> 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

Ugh!

I have been getting extremely cheesed-off for the better part of my 
lunch break with this one
(well, at least it will help me get some of those extra pounds off my 
tum . . . )
as put the obvious script in a drop-down menu already populated with 
fontNames:

on menuPick PICKT
    put "# " & PICKT into PHONT
end menuPick

now, cannot for the life of me put PHONT back into place
in the menu button

must be bl**dy silly really.



More information about the use-livecode mailing list