Hello,
OK, so I am upgrading from a program that was built on C++ builder 4 and I am using builder 2007. I am curious that I may have something wrong with the settings in my IDE because this program is behaving differently than the original.
Essentially, I am working with an MDI (multiple document interface) program. Each MDI child is created using a pointer and a new operator. What happens in the original code is that one form is used for the child window...however it is sized 3 different ways. The original programmers changed the pixel sizes in the constructor of the MDI child. In the constructor, they only setup placeholders for what the new pixels should be, they do not write them to components.
To write to components, they use the ShowForm event. The problem is, that the ShowForm function executes BEFORE the constructor is made. It looks like the developers had the constructor execute first then the ShowForm Event. Is there any way to reverse this order? Is it a setting in the IDE somewhere?
Thanks
OK, so I am upgrading from a program that was built on C++ builder 4 and I am using builder 2007. I am curious that I may have something wrong with the settings in my IDE because this program is behaving differently than the original.
Essentially, I am working with an MDI (multiple document interface) program. Each MDI child is created using a pointer and a new operator. What happens in the original code is that one form is used for the child window...however it is sized 3 different ways. The original programmers changed the pixel sizes in the constructor of the MDI child. In the constructor, they only setup placeholders for what the new pixels should be, they do not write them to components.
To write to components, they use the ShowForm event. The problem is, that the ShowForm function executes BEFORE the constructor is made. It looks like the developers had the constructor execute first then the ShowForm Event. Is there any way to reverse this order? Is it a setting in the IDE somewhere?
Thanks