Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Datetime - olecalendar
Message
From
23/05/2008 13:15:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
23/05/2008 06:25:41
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01318989
Message ID:
01319248
Views:
12
>Thanks - I got around it by making it the first item on the form, not ideal but it works.

Which means it receives focus... maybe just the .setfocus() from the form's .show() may have worked. I agree, relying on instantiation order is not healthy.

>>>Can anyone think of a reason why the olecalendar control on my form doesnt display when the form initially loads? If I click on the area of the form where the control is it pops up and is fine, but not displaying at the start is a problem.
>>
>>Ah, one of those quirky ones - I have no clue, or at least no sure-fire way... you can try to do a few things in code - in form's .init(), .show() or even .activate() - whatever gets called just once when the form has become visible:
>>
>>olecalendar.visible=.t.
>>
>>olecalendar.zorder(0)
>>
>>olecalendar.setfocus()
>>
>>Even raising an event may work... try them one by one. Good luck.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform