Hi,
I have a form, including an explorerbar on the left side and which loads subforms on the right side (TabbedMdi).
As long as the explorerbar had an anchor to left and a fixed size, everything was great. The explorerbar was located on the left side of the form while the subforms in the TabbedMdi were shown right from the explorerbar..
Now I've changed the anchor of the explorerbar and added values to minsize and maxsize.
Suddenly the explorerbar overlaps the subforms or other to say the subforms are not shown right of the explorerbar but are starting at position 0.0 within the parent form.
I want the explorerbar to adjust his width within my parameters and the subform be shown starting fron the right edge of the explorerbar.
I hope, this is an understandable description of my problem.
I bet, this is an easy one - but I can't find my error.
Cheers,
Bernhard
I now have a workaround, which helps me for the first attempt.
I've changed the anchor of all subform-Objects to right.
This is not the exact thing, which I want to happen, when the form is enlarged, but it helps for now.
Hi Berhard,
I’m not completely sure I understand what you did after “the Explorerbar had an Anchor to left and a fixed size”.
What properties did you set on the explorerbar to control position? Is it docked left now? Or did you change the anchors?
And what properties are you using to position the TabbedMdi child windows? You mentioned that the child forms are now anchored right.
TabbedMDI child windows are always maximized within the parent, so if you removed the anchor from the Explorerbar then the TabbedMDI child windows would maximize to the form.
This article describes anchor and dock properties and the ramifications.
http://articles.techrepublic.com.com/5100-10878_11-6165908.html
If you can provide the parent form as it now I believe that would be very helpful for me to understand what is happening. You can attach a zip file to the thread.
I’m just checking back if you have any follow-up questions.
Please let me know if there is anything I can help with further.
If you can provide a small sample, perhaps that would be best in order to understand you design.