[futurebasic] Re: [FB] _useWFont in Appearance Runtime

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2004 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Mon, 29 Mar 2004 13:24:16 -0500
On Monday, March 29, 2004, at 01:14  PM, Paul Bruneau wrote:

> On Monday, March 29, 2004, at 12:47 PM, Robert Covington wrote:
>> Appearance Button is an aid, though you might can use it without this 
>> way when using Appearance runtime:
>> // Set button height to proper size (see Aqua HIG doc)
>> cfs.flags = _kControlUseFontMask_kControlUseJustMask
>> cfs.font = _kControlFontSmallSystemFont
>> def SetButtonFontStyle( btnID, cfs )
>> For pure Appearance method and needed declarations for the above as 
>> well , use the below.
>> From Bernie's TWM, you can find out some approaches. The actual sizes 
>> for the control height per control type for large vs. small can be 
>> gleaned from Aqua HIG docs (and here's hoping B'man has them all 
>> right.  :) ) Small size height varies depending on control.
>> Robert
> Thank you Robert!
> As usual for me, I don't have any idea what a lot of this means, I 
> have no idea how one is supposed to find this stuff out, and I have no 
> idea how others found it out, but I am happy to have an example that I 
> think I can make work for me.
> Thanks again,
> Paul

RP told me how to do the font thing here on the list ages ago , or when 
I was writing Editor X, which he should, since he wrote the engine for 
all of it. :) (thanks)

Then Bernie's app made it a bit more clear, and certainly simple. :)

It's a 1-3 punch.

Set mask flags
Set style fields via proper constants
Set style.

Let me know if you have a problem. Or let somebody else know. Or beg 
Bernie to be beta test of TWM. It's a hip thing.

  I neglected to add the control constants to that "demo" FN...it was a 
real-time type and paste-instein, not something I ran.

When you can, it is best to use Appearance Button from here on out (the 
syntax takes a while to master). But in the Compster, I used the 
regular button for all the old, and now use Appearance Button for all 
the new, because I'm usually need some function that offers or just 
need to set the size and such as you need to.

There's a way to use a custom font (other than system), which RP, Alain 
  or Ken has shown here, I forget who. (somebody else?)  Perhaps Gnome's 
shell, or Alain's CodeStyler (R7 examples) shows the path there.