FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

StatusBar and SBPanel, definitely something wrong

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
HateWork



Joined: 20 Oct 2007
Posts: 13

PostPosted: Mon May 05, 2008 5:36 pm    Post subject: StatusBar and SBPanel, definitely something wrong Reply with quote

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;
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group