HateWork
Joined: 20 Oct 2007 Posts: 13
|
Posted: Mon May 05, 2008 5:36 pm Post subject: StatusBar and SBPanel, definitely something wrong |
|
|
Hi Chris,
I sent you an email the last year i think reporting a bug about the status bar control not showing panels and text, you solved it that time but now that i tested the control again i discovered that it will only show StatusBarPanel[0] and not the rest of the panels, check the following simple code:
Code: |
/*
Generated by Entice Designer
Entice Designer written by Christopher E. Miller
www.dprogramming.com/entice.php
*/
private import dfl.all;
class MyForm: dfl.form.Form
{
StatusBar statusBar1;
this()
{
initializeMyForm();
//@ Other MyForm initialization code here.
statusBar1 = new StatusBar();
statusBar1.dock = dfl.control.DockStyle.BOTTOM;
statusBar1.bounds = dfl.base.Rect(0, 0, 0, 23);
statusBar1.parent = this;
statusBar1.showPanels = true;
StatusBarPanel sbp1 = new StatusBarPanel();
sbp1.width = 250;
sbp1.text = "Hello 1";
statusBar1.panels.add(sbp1);
StatusBarPanel sbp2 = new StatusBarPanel();
sbp2.width = 50;
sbp2.text = "Hello 2";
statusBar1.panels.add(sbp2);
}
private void initializeMyForm()
{
// Do not manually modify this function.
//~Entice Designer 0.8.4.04 code begins here.
//~DFL Form
text = "My Form";
clientSize = dfl.all.Size(292, 270);
//~Entice Designer 0.8.4.04 code ends here.
}
}
int main()
{
int result = 0;
try
{
Application.enableVisualStyles();
//@ Other application initialization code here.
Application.run(new MyForm());
}
catch(Object o)
{
msgBox(o.toString(), "Fatal Error", MsgBoxButtons.OK, MsgBoxIcon.ERROR);
result = 1;
}
return result;
}
|
|
|