[futurebasic] Re: [FB] Font Menu

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Thu, 17 Jan 2008 19:03:32 -0700
A ControlFontStyleRec is not tied to TWM. It can be used in any  
program including Al's code (whatever that is ---no offense Al but I  
haven't looked at your code ). You just need to look at other  
examples that use a ControlFontStyleRec and apply them to Al's code.   
Not knowing WHERE ("anywhere to modify") to modify Al's code means  
that should be the first step (i.e. understanding Al's code) before  
you try to enhance it. Modifying code you don't understand will only  
create a big mess that nobody will want to untangle for you. Maybe  
Joe Wilkins' advice is a better path for you. We've all been there  
( some would say I need to re-read it) and it will pay dividends later.

Brian S.


On Jan 17, 2008, at 5:08 PM, Brian Heibert wrote:

> I am using Al Stafferri Jr's nib example
> and I do not see anywhere to modiify or add ControlFontStyleRec
>
> But back in the days of TWM I remember using that
>
> Brian
> On Jan 17, 2008, at 6:29 PM, Brian Stevens wrote:
>
>> In that case set the ControlFontStyleRec to the font attributes  
>> you need (based on the user selection) and then update the field  
>> with the ControlFontStyleRec using SetControlFontStyle ( maybe via  
>> def SetButtonFontStyle ).
>>
>> Brian S
>>
>> On Jan 17, 2008, at 3:10 PM, Brian Heibert wrote:
>>
>>> The edit field is a EditText control
>>>
>>> On Jan 16, 2008, at 11:48 PM, Brian Stevens wrote:
>>>
>>>>
>>>> On Jan 16, 2008, at 8:19 PM, Brian Heibert wrote:
>>>>> On Jan 16, 2008, at 10:13 PM, Brian Stevens wrote:
>>>>>
>>>>>>
>>>>>> On Jan 16, 2008, at 8:05 PM, Brian Heibert wrote:
>>>>>>
>>>>>>> I am using a font menu example by Al Stafferri Jr.
>>>>>>> It puts up a font menu however when I select a font the edit  
>>>>>>> field doesnt change
>>>>>>> What's missing?
>>>>>>
>>>>>> Maybe you are misunderstanding the function of a menu.  A  
>>>>>> menu's only purpose is to *indicate* what the user wants to  
>>>>>> do. When your program receives an event saying the user picked  
>>>>>> (say) the Lucinda Grande font on a menu, it is the  
>>>>>> responsibility of the program to now set the font for the edit  
>>>>>> field. Just selecting a menu doesn't change the font in the  
>>>>>> edit field (even though it looks that way to the user).
>>>>>>
>>>>>>
>>>>>> Brian S.
>>>>>>
>>>>>>
>>>>>>> okay what should I be looking for then in the Reference.pdf  
>>>>>>> in the Help menu?
>>>>
>>>> Depends on what kind of "edit field" you defined. Tell us more.
>>>>
>>>> Brian S.
>>>>
>>>> --
>>>> To unsubscribe, send ANY message to: futurebasic- 
>>>> unsubscribe@...
>>>>
>>>
>>> --
>>> To unsubscribe, send ANY message to: futurebasic- 
>>> unsubscribe@...
>>>
>>
>> Brian S.
>>
>> --
>> To unsubscribe, send ANY message to: futurebasic- 
>> unsubscribe@...
>>
>
> --
> To unsubscribe, send ANY message to: futurebasic- 
> unsubscribe@...
>

Brian S.