[futurebasic] Re: [FB] a few more FBtoC questions

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

From: Mark Chappell <chappell@...>
Date: Thu, 9 Oct 2008 07:42:14 -0700
Thanks, Robert.   Made my day.   Again.

-- Mark Chappell

On Oct 9, 2008, at 2:39 AM, Robert Purves wrote:

>
> Mark Chappell wrote:
>
>> A minor wish-list mainly having to do with edit fields (I mentioned  
>> the first of these in a previous message)
>> 2.  an easy way to add color (to text and if possible, background)  
>> -- not styled text, but colored text
>
>
> '------------------
> window 1
> edit field 1,, (20,20)-(200,36)
> edit$(1) = "", _sysFont, 13,,, 65535, 0, 0
>
>
> edit field 2,, (20,50)-(200,66)
> dim as ControlFontStyleRec   cfs
> cfs.flags = _kControlUseForeColorMask + _kControlUseBackColorMask
> cfs.foreColor.red   = 0
> cfs.foreColor.green = 30000
> cfs.foreColor.blue  = 0
> cfs.backColor.red   = 55000
> cfs.backColor.green = 65535
> cfs.backColor.blue  = 65535
> fn SetControlFontStyle( button&( 2 ), cfs )
>
> do
> HandleEvents
> until gFBQuit
> '------------------
>
> Robert P.
>
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
>