Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 3 - Determining grid's Top and Left Properties at ru
Message
From
09/07/1997 19:15:46
Jon Ziegler
Mannesmann Dematic Corp.
Solon, Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00038742
Message ID:
00039208
Views:
32
>>>I am trying to develop a routine to resize and reposition the controls on a form when the form is resized. My tests are going fine so far with the exception of the grid control. The grid's Top and Left properties are returning 0. It appears that the grid loses its location when the form is resized. Has anyone found a workaround for this problem...
>>
>>Steve - What about creating custom grid properties nMyTop and nMyLeft and initialize them in the Init() even of the grid to be the same as the grid's already existing Top and Left properties? This way you could look at those properties when the form is resized to get the values you need.
>
>Thanks Jon, It seems my problem is not related to the resizing. I commented out that code and the grid is still losing its position. I am now trying to figure out what is causing the problem. I have not made any changes to my base grid class and the changes to my form class are all commented out. I tried saving the Top and Left properties into custom properties, but it seems the values are zero at the time the Grid Init fires. Anyone have any ideas as to what could be causing the Top and Left properties to change to 0.

Steve - Try using your custom properties to actually set the grid's Top and Left properties in the Init() method, if you haven't already. Set the custom properties to the values you want the grid to have initially and see if that works.
Previous
Reply
Map
View

Click here to load this message in the networking platform