Information générale
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
>>I have an oleCalendar control on a form which I wish to reposition at run-time. I have tried setting the Top and Left values accordingly and also tried the Move method using appropriate parameters, but the control remains firmly positioned where I place it at development time. Can someone tell me what I am over-looking? (Not that it should make any difference, but the calendar is not visible until the user double clicks on date fields on the form. The calendar then becomes visible,but will not move away from the position I set at Development time).
>
>You could host the calendar in a little form, sized to fit just that control and have no borders etc, and move that form where you want it. Or a container, that would be simpler.
Before I posted my query I tried putting the oleCalendar in a container object and moving that; the container moved but for some reason the contained calendar control did not! Hence my post. On reading your post I thought that it had to be the case that it would move, so tried it again - and it worked. I can only assume that I did not do it correctly the first time. So, mystery solved. Thanks for the arm-twisiting :-)
Barry
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement