[futurebasic] RE: Standard Font menu and Carbon

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2002 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Sat, 2 Nov 2002 07:49:54 -0500
Alain asked:

>Has anyone succeeded in using the Carbon Toolbox function
>CreateStandardFontMenu with _kHierarchicalFontMenuOption?
>
>This should give a Font menu with items sorted by name with a
>hierarchical menu attached if necessary. Or so I believe.
>
>In addition, I would like to attach this ordered Font menu as a
>hierarchical item of another menu (I don't know yet if it's doable).
>
>The code below crashes when _kHierarchicalFontMenuOption is set,
>otherwise it seems to work:

--- code snipped ---

Robert responded:

>This slightly simplified version of your code works in both Classic 
>and OS X 10.2.1.  No crash.

Alain and Robert,

FYI, both Alain's and Robert's code works fine here in OS X 10.1.5, 
with the expected second delay as the menu is built.

However, both code samples crash in PPC.

Ken