F
Fatih BOY
Hi,
I'm designing an application with plug-in architecture. At start-up, main
form is just an empty System.Windows.Forms.Form component. I'm reading a
plugin folder and getting component to add my main form.
Problem is; i want design my application's layout something like below :
+-----------------------------------+
| Top Menu |
|------------------------------------|
| |
| |
| Tab page |
| |
|____________________ |
| status bar |
+-----------------------------------+
It is ok when i'm adding components with the following attributes and order
:
//
// i.e. : Comes form plugin P
//
topMenu.Dock = System.Windows.Forms.DockStyle.Top;
//
// i.e. : Comes form plugin y
//
statusBar.Dock = System.Windows.Forms.DockStyle.Bottom;
//
// i.e. : Comes form plugin x
//
tabPage.Dock = System.Windows.Forms.DockStyle.Fill;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(584, 414);
this.Controls.Add(tabPage);
this.Controls.Add(topMenu);
this.Controls.Add(statusBar);
But since my plugins manager reads plugins directory and then loads plugins
and does not reads my plugins in that order (x, p, y => tabPage, topMenu,
StatusBar) .
I'm not getting the layout that i want to see. Tabpage will fill whole form
instead of filling the region in between statusbar and topmenu if plugin
manager adds them in that order (p, y, x => topMenu, StatusBar, tabPage)
How can i fix this error?!
I'm designing an application with plug-in architecture. At start-up, main
form is just an empty System.Windows.Forms.Form component. I'm reading a
plugin folder and getting component to add my main form.
Problem is; i want design my application's layout something like below :
+-----------------------------------+
| Top Menu |
|------------------------------------|
| |
| |
| Tab page |
| |
|____________________ |
| status bar |
+-----------------------------------+
It is ok when i'm adding components with the following attributes and order
:
//
// i.e. : Comes form plugin P
//
topMenu.Dock = System.Windows.Forms.DockStyle.Top;
//
// i.e. : Comes form plugin y
//
statusBar.Dock = System.Windows.Forms.DockStyle.Bottom;
//
// i.e. : Comes form plugin x
//
tabPage.Dock = System.Windows.Forms.DockStyle.Fill;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(584, 414);
this.Controls.Add(tabPage);
this.Controls.Add(topMenu);
this.Controls.Add(statusBar);
But since my plugins manager reads plugins directory and then loads plugins
and does not reads my plugins in that order (x, p, y => tabPage, topMenu,
StatusBar) .
I'm not getting the layout that i want to see. Tabpage will fill whole form
instead of filling the region in between statusbar and topmenu if plugin
manager adds them in that order (p, y, x => topMenu, StatusBar, tabPage)
How can i fix this error?!