Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Centering date and time in form
Message
From
16/02/2009 05:03:05
 
 
To
15/02/2009 22:19:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01382012
Message ID:
01382032
Views:
62
>>thisform.time1.caption=time()
>>thisform.date1.caption=mdy(date())
>>thisform.dayweek.caption=cdow(date())

>>How do I center these programatically?

Horizontally:
THISFORM.date1.left=(THISFORM.Width-THISFORM.date1.width)/2
* you would aldo need to have you text aligned centrally, IE. .alignment=2

Vertically;
THISFORM.date1.top=(THISFORM.Height-THISFORM.date1.height)/2



Gary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform