Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Object position to the SCREEN.
I wrote a small form to accept date & time via a calendar control & spinners.
I want to be able to "do form frmTimeDate with oObject, n"
where n is a # representing where the form should appear (top, left, bottom, right) of the object.
oObject.left and oObject.top are in releation to the FORM they apper on; but a forms .left and .top are in relation to the screen.
How can I get object's position in relation to the screen?
The only thing I figured out was to get the ojbect's form's LEFT/TOP properties and add that to the objects left/top properites.
Is that the best way?
Thanks
-josh
Suivant
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