General information
Category:
Coding, syntax & commands
>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.
>TIA
>Steve Ruhl
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only