Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LABEL color class
Message
 
To
29/10/2004 15:17:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00951785
Message ID:
00955936
Views:
17
>>>>Ok, I did as you said and I got results! Now I want to change the font size and text, do I pass these as parameters?
>>>>
>>>
>>>No, it's in the properties. Find these property on that class to change the text & style:
>>>
>>>Caption, FontName, FontSize, FontBold
>>
>>So it does not function like a regular label where I can set the font properties either programatically or visually?
>
>Yes you can. Am I missing something ?
>
>OK, let's try this. Put this code in the init event of the class that you dropped:
>
>This.FontName = 'Tahoma'
>This.FontBold = .T.
>This.FontSize = 24
>DoDefault()
>
>
>Update:
>I think I missed something. You can't change it "visually". I mean it will not show you what it will look like. Because the object is created when you run the form. You can only see the rectangle on development time.

What I meant was once I drop it on the form as a label object, can I go into it's properties and set it's properties such as caption? Another caveat, I have a setall in effect on this form and it overides your class. What to do?
like thisform.Setall('foreColor',rgb(0,128,0),'label')
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform