Carrie
04-07-2003, 02:59 AM
I have an MSHFGrid which opens on my main(first child form loaded) form in my MDI app. I calculate the column widths proportionally depeding on the form size and this works fine except for when I set the MDIMainForm to open maximised.
I am calculating the widths in an 'Initgrid' procedure which is run from the child form load event and the child form resize event.
I have used the debugger and it appears to go through the child form resize code when loading, but the columns haven't been resized when the main form is loaded maximised.
They resize OK when you change the size, but I need them to open correctly if the main form is maximised. Hope someone can help!
I am calculating the widths in an 'Initgrid' procedure which is run from the child form load event and the child form resize event.
I have used the debugger and it appears to go through the child form resize code when loading, but the columns haven't been resized when the main form is loaded maximised.
They resize OK when you change the size, but I need them to open correctly if the main form is maximised. Hope someone can help!