[futurebasic] Re: [FB] Standard Font menu and Carbon

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

From: Alain Pastor <apastor@...>
Date: Sat, 02 Nov 2002 12:28:23 +0100

Robert Purves wrote:
> 
> On Saturday, November 2, 2002, at 10:54  PM, Alain Pastor wrote:
> 
>> 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:
> 
> 
> 
> This slightly simplified version of your code works in both Classic and 
> OS X 10.2.1.  No crash.
> 
> 

<snip>

Thanks Robert,

I don't see any difference with what I did. It's still crashing on me.
Maybe I have a bad font...
-- 
Cheers,

A. Pastor