Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objtoclient() question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00367390
Message ID:
00368469
Vues:
23
I meant to say LISAGC.

>Your right. I was under the impression that all positions of objects on a form had been calculated and had been set by the init of the form. Not having to worry about it has, it has not been a problem.
>

>I now see that is not true. I am working on a methodology with a DBI active X List Bar on the left. All forms obviously work to the space left over on the right. At runtime most forms turn off the title bar, set their background color to the screen background color and maximize/center themselves to the space left over no matter the screen resolution. All of my activex X controls are run inside of containers. With the LISAG rule in mind as well as this example where would you do these re-adjustments before the screen becomes visible. They are still not set by G-GotFocus.
>
>I guess I could set visible to .T. in the click event. Without having tried it would think the click event would not hit if the the form was not visible. I will try.
>
>If that is true then under certain conditions the load path is LISGAC. :)
>
>
>
>
>
>>Ron,
>>
>>Your problem is trying to check positional information before the form has painted. If you move the code to the form.Click() event you will see the results are the same for both objects.
>>
>>>I have a grid in a page frame on a form. At runtime the top of the grid is 56 (relative to the top of the frame). I have a container that sits on top of the page frame not in. At run time the container top is 94 and I understand that is relative to the top of the form not the page frame.
>>>
>>>At design time I turn on SHOW POSITION and set the top of both objects TOP to be equal - according to the output in the status bar of the design surface - which happens to be 94.
>>>
>>>At Runtime when I interogate both objects top using ObjToClient() the grid object returns 90 and the container returns 94. I expect 94 on the grid object or at least both objects to be equal. What gives.
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform