Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to Close Modal Dlg from Constructor?
Re: How to Close Modal Dlg from Constructor? [message #18373 is a reply to message #18372] Thu, 25 September 2008 10:28 Go to previous messageGo to previous message
kbyte is currently offline  kbyte
Messages: 87
Registered: July 2008
Member
LancaAnuids.h

#ifndef _CLancaAnuidsDlg_h
#define _CLancaAnuidsDlg_h

#include <CtrlLib/CtrlLib.h>
#include "Main.h"
using namespace Upp;

#define LAYOUTFILE <Main/LancaAnuids.lay>
#include <CtrlCore/lay.h>

class CLancaAnuidsDlg : public WithLancaLayout<TopWindow>
{
public:
typedef CLancaAnuidsDlg CLASSNAME;
CLancaAnuidsDlg();

private:
void Lanca(void);
};

#endif





LancaAnuids.cpp

#include "LancaAnuids.h"
CLancaAnuidsDlg::CLancaAnuidsDlg()
{
CtrlLayout(*this, Ctrl::GetAppName());

Lanca();

Close();
}


void CLancaAnuidsDlg::Lanca(void)
{
//Database intensive operations here...
}


On Main dlg I do:

void Main::LancaAnuidades(void)
{
CLancaAnuidsDlg dlg;
dlg.Run(true);
}


The dlg just has a static box saying:

Wait a moment please...


Thanks

Alex
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ImageBuffer Paint problem
Next Topic: DHCtrl based control issue in Windows Vista
Goto Forum:
  


Current Time: Sat Jun 07 17:57:27 CEST 2025

Total time taken to generate the page: 0.04893 seconds