T tvrman Member Licensed User Jun 29, 2007 #1 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
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 Longtime User Jun 29, 2007 #2 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
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 Longtime User Jun 29, 2007 #3 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 ... ) So you have to correct the color property of a label added at runtime manually to the default form value. specci48
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 ... ) So you have to correct the color property of a label added at runtime manually to the default form value. specci48
T tvrman Member Licensed User Jun 29, 2007 #4 Cableguy said: 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 Click to expand... thanks!, :signOops: i need to read TFM...
Cableguy said: 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 Click to expand... thanks!, :signOops: i need to read TFM...
T tvrman Member Licensed User Jun 29, 2007 #5 specci48 said: 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 ... ) So you have to correct the color property of a label added at runtime manually to the default form value. specci48 Click to expand... Yes that was i notice too, but i found meanwhile the solution thanks
specci48 said: 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 ... ) So you have to correct the color property of a label added at runtime manually to the default form value. specci48 Click to expand... Yes that was i notice too, but i found meanwhile the solution thanks
Erel B4X founder Staff member Licensed User Longtime User Jun 29, 2007 #6 You could write: Label1.Color = Form1.Color instead of the exact color.