[futurebasic] Re: [FB] obtain font info from selected text

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

From: Brian Stevens <brilor@...>
Date: Fri, 3 Dec 2004 21:52:16 -0700
I'm assuming you are looking specifically for "selected" text since 
font info for the window is easy. I'm further assuming you are looking 
for font size, name, ascent/descent etc.?


My first thought is/was (assuming a control-based edit field) is to use 
DEF GETBUTTONDATA wtih _kControlEditTextPart but I don't see a tag type 
in the appearance incl. that appears to do this. I don't have another 
thought at the moment but this is an interesting challenge. What is 
your motivation to collect info on selected text only? Maybe there is 
another way to reach the goal?

Brian S.
On Dec 3, 2004, at 8:25 AM, Steve Crossman wrote:

> Back to our regularly scheduled programming.
THANK YOU!!!



>
> Can anyone help me determine font information from selected text or 
> point me in the right direction?
>
> ~ steve
>
> On Dec 2, 2004, at 9:17 PM, Steve Crossman wrote:
>
>> hi all,
>> 	can someone point me to some examples on the latest FB^4 CD that 
>> shows how to obtain font information from selected text in an edit 
>> field ? i want to update the font panel with the selected text.
>>
>>
>> tia
>>
>> ~ steve
>>
>> --
>>
>
> --
>