[futurebasic] Re: [FB] [FB^3] Static edit fields

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

From: "Terrald J. Smith" <tjsmith@...>
Date: Sun, 16 Jan 2000 07:21:05 -0600
This is how Staz showed me to change the color in FB^3 which also could not
be done as it was in FBII for a field.  You could easily use this EDIT TEXT
stuff to change the text for a static field

dim red,green,blue

A$="BLACK"
long if edit$(1)<>"RED"
A$    = "RED"
red   = -1
green = 0
blue  = 0
XELSE
A$    = "BLACK"
red   = 0
green = 0
blue  = 0
END IF

edit field -1,A$,,_NOFRAMEDNOCR
setselect 0,_maxInt
edit text ,,,,red,green,blue
edit field -1,,,_STATNOFRAMED
edit field 0

The Dummy

Terrald

> From: "keller" <keller@...>
> Reply-To: futurebasic@...
> Date: Sun, 16 Jan 2000 00:11:45 -0600
> To: futurebasic@...
> Subject: [FB] [FB^3] Static edit fields
> 
> 
> Sorry about the missing subject on my last post. Now I have a real question.
> 
> In FB^3, how should I change the font or size of the text in a static edit
> field? In a non-static edit field, I would use SETSELECT, then change the
> font or size, but with a static field, SETSELECT doesn't really seem to
> select anything. In FBII, I use a non-styled field and do something like
> this...
> 
> TEXT gScriptFont%,gScriptSize%
> EDIT$(_Krung)=EDIT$(_Krung)
> 
> But FB^3 doesn't support non-styled edit fields, so I don't know quite what
> to do.
> Anders
> 
> Keller@...
> 
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>