Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label caption will not change
Message
From
06/04/2000 10:52:38
Gregg Geeslin
Kwajalein Range Services
Apo, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00355836
Message ID:
00356260
Views:
16
Hi,

Labels don't have a Refresh() method by default, that's true. Why don't you just add a Refresh() method and an assign method to your base class label's Caption property that will call the label's refresh? It seems like a simple enough solution to the problem and it keeps the code encapsulated within the label. Now, each time you assign a new caption to the label you should just see it. The code might look something like this:

PROCEDURE Caption_Assign
LPARAMETERS vNewVal
WITH This
.Caption = m.vNewVal
.Refresh()
ENDWITH
ENDPROC

PROCEDURE Refresh
REFRESH This
ENDPROC

I hope this helps.

Gregg
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform