Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's Wrong With This....????
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00716580
Message ID:
00716803
Views:
17
Hi!

Try something like following:
	.lbl.AutoSize = .F.
	.lbl.Width = 0
	.lbl.Caption = m.tcNewCaption
	.lbl.WordWrap = .F.
	.lbl.AutoSize = .T.

	.lbl.Visible = .f.
	.lbl.Visible = .t.
If does not helps, try also to use DOEVENTS before getting width of object. Width is not updated till label re-drawn, label is not re-drawn till code runnign stops and gove control to VFP engine to precess events. DOEVENTS does this.

>Well, I'v tried varaious things, and nothing is working. The
>lblLeft.Width does not change
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform