[futurebasic] Re: [FB] [FB^3] Can't get TEXT and COLOR to work on EFs

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: "Scott Spencer" <jmar@...>
Date: Mon, 20 Sep 1999 19:14:46 -0700
>>> Try this: 
>> > 
>> > LOCAL FN blue(efNum%) 
>> > EDIT FIELD efNum% 
>> > EDIT TEXT 3,9,0,0,0,0,-1
>> > END FN
>> >
>> > WINDOW 1
>> > EDIT FIELD -1, "", (10,10)-(100,50),_statNoFramed
>> > EDIT$(1) = "Howdy"
>> > FN blue(1)
>> > SETSELECT 0,0
>> > DO
>> > HANDLEEVENTS
>> > UNTIL 0
>> >
>> > You have to define the field with a negative id, activate it with the
>> > edit field 1 statement, then use the edit text statement to set the color.
>> >
>> > Hope this helps. Charles P.
>
>> Change the field to an editable type (e.g. _Framed). Won't work on a static
>> field.
>
>>--
>> Scott Spencer
>
> Oh yes it does work with static fields --- in FBII  at least.    Charles P.

Hmmmm -- the above code doesn't work in FB^3.  Docs say that Edit Text
applies the text characteristics to text which is currently selected.  Since
text in a static field can't be selected, it follows it won't work on static
fields.

What ye say Rick Brown?

--
Scott Spencer
JMar Engineering
jmar@...
http://home1.gte.net/jmar/index.htm