Addlabel or Textbox Disabled

tvrman

Member
Licensed User
Hi,

I want in a form some labels, the labels should be shows the contents
of an variable, for examples the tables row count.
In an textbox disabled it looks ugly and to use it via addlabel
it shows an background which is not the same as the form self.

How can i do it?

see example
 

Cableguy

Expert
Licensed User
Use a Label!

Its background is the same as the forms's and is not editable...

addlabel(form,"label1",20,20,40,20)
label1.text=your variable

see the helpfile for AddLabel
 

specci48

Well-Known Member
Licensed User
Hi tvrman,

the default color of a form is 220,220,220.
Labels added at runtime get a default color of 212,208,200 (I don't know why ... :confused:)

So you have to correct the color property of a label added at runtime manually to the default form value.


specci48
 

tvrman

Member
Licensed User
Use a Label!

Its background is the same as the forms's and is not editable...

addlabel(form,"label1",20,20,40,20)
label1.text=your variable

see the helpfile for AddLabel
thanks!,
:signOops: i need to read TFM...
 

tvrman

Member
Licensed User
Hi tvrman,

the default color of a form is 220,220,220.
Labels added at runtime get a default color of 212,208,200 (I don't know why ... :confused:)

So you have to correct the color property of a label added at runtime manually to the default form value.


specci48
Yes that was i notice too, but i found meanwhile the solution thanks
 
Top