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

Displaying the Application before ending this()

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



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Sun Jun 01, 2008 3:24 pm    Post subject: Displaying the Application before ending this() Reply with quote

I have this application called LSOpenProjs and I want to display it before the constructor this() completes. i. e.,
Code:
class LSOpenProjs: dfl.form.Form
{
  // Do not modify or move this block of variables.
  //~Entice Designer variables begin here.
  dfl.listview.ListView lview;
  dfl.panel.Panel buttons;
  dfl.button.Button btnNew;
  ...
  ...
  dfl.label.Label TMSubMatter;
  dfl.tabcontrol.TabControl Util;
  //~Entice Designer variables end here.
   
  SqliteDatabase db; // = new SqliteDatabase();
  SqliteDatabase dba;// = new SqliteDatabase();
  SqliteResult dbr;// = new SqliteResult();
  DBIException dbe;// = new DBIException();
  Row[] Rows; //  = new Row();
  Timer tmr;
  //SqliteResult res;  // = new SqliteResult();
  //SqliteResult resa; //  = new SqliteResult();

 class PMInfo
  {
    char[] login   = null;
    char[] email  = null;
    ...
    ...
    char[] EHumanDate   = "";
    char[] CreationDate = "";
  }
  PMInfo pm;
  GroupBox myGroup = null;
  RadioButton[char[]] SubProjRadio = null;
  CheckBox[char[]] SubProjCheckBox = null;
  ...
  ...
  char[] LSBinDir = null;
  Row[] PMUserValues = null;

  this()
  {
    initializeOpenProjs();
    initDesign();
    // I want OpenProjs to show up here...
    HouseKeeping();
  }
 
  private void HouseKeeping()
  {
  ...
  ...
  }
  class ReportTotals
  {
    real tInvoice = 0;
    real tFund    = 0;
  }
}

int main(char[][] args)
{
  int result = 0;
 
  try
  {
    // Application initialization code here.
   
    Application.run(new LSOpenProjs());
  }
  catch(Object o)
  {
    MessageBeep(1);
    msgBox(o.toString(), "Fatal Error", MsgBoxButtons.OK, MsgBoxIcon.ERROR);
      
    result = 1;
  }
  return result;
}


So, I would like the LSOpenProjs screen to come up before I run HouseKeeping(). How can I do this?

thanks,

jose
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon Jun 02, 2008 7:47 pm    Post subject: Re: Displaying the Application before ending this() Reply with quote

You can just call the Form's show method at the point you want it shown. e.g. before HouseKeeping()
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Tue Jun 03, 2008 7:02 am    Post subject: Reply with quote

DOH!

Thanks.
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