Ejemplo n.º 1
0
//---------------------------------------------------------------------------
Kmedis::Kmedis()
{
    CtrlLayout(*this, TOP_WINDOW_TITLE);
    CenterScreen();

    //----------------------------------------------------------
    SetTimeCallback(1500, THISBACK(Close));
}
Ejemplo n.º 2
0
//==============================================================================================
LogWin::LogWin() {
	// One exit button
	CtrlLayoutExit(*this, "Log");
	Sizeable().Zoomable();
	Icon(MyImages::logwin16());
	TopMost(); // Force stayontop setting
	Transparent();
	//logText.Transparent();
	CenterScreen();
	activated = false;
	UrpEdit &re = logText;
	
	re.ShowCodes(Null); // Hide space/newline icon indicators http://www.ultimatepp.org/forum/index.php?t=msg&goto=2453&
	re.SetQTF("[%00-00 "); // Disable spell checker. http://www.ultimatepp.org/forum/index.php?t=msg&goto=2453&
}
Ejemplo n.º 3
0
CP3DGUI_NewGame::CP3DGUI_NewGame()
{
	CreateWindow(g_pLocaliz->Translate_const("#GUI_NewGame"), 
		0, 0, 300, 177, P3DWS_CAPTION | P3DWS_CLOSEBTN);
	CenterScreen();

		m_lblDesc.CreateLabel(g_pLocaliz->Translate_const("#GUI_NewGameDesc"), 10, 10, 280, 45,
			false, LA_LEFT, this);
		m_lblDifficulty.CreateLabel(g_pLocaliz->Translate_const("#GUI_Difficulty"), 10, 55, 280, 13, 
			true, FA_WORDBREAK, this);
		m_optLow.CreateOption(g_pLocaliz->Translate_const("#GUI_DifficultyLow"), 10, 78, 280, 20, true, this);
		m_optMedium.CreateOption(g_pLocaliz->Translate_const("#GUI_DifficultyMedium"), 10, 103, 280, 20, true, this);
		m_optHigh.CreateOption(g_pLocaliz->Translate_const("#GUI_DifficultyHigh"), 10, 128, 280, 20, true, this);
		m_optExtraHigh.CreateOption(g_pLocaliz->Translate_const("#GUI_DifficultyExtraHigh"), 10, 153, 280, 20, true, this);

		m_btnPlay.CreateButton(g_pLocaliz->Translate_const("#GUI_Play"), 218, 119, 70, 20, this);
		m_btnCancel.CreateButton(g_pLocaliz->Translate_const("#GUI_Cancel"), 218, 144, 70, 20, this);
}
Ejemplo n.º 4
0
CP3DGUI_Emitter::CP3DGUI_Emitter()
{
	char title[30];
	sprintf(title, "%s 1", g_pLocaliz->Translate_const("#GUI_PEditEmitter") );
	
	CreateWindow(title, 0, 0, 400, 250, P3DWS_CAPTION | P3DWS_CLOSEBTN);
	CenterScreen();
	SetModal();

	m_lstFolders.CreateListBox(10, 10, 185, 184, this);
	m_lstFiles.CreateListBox(205, 10, 185, 184, this);

	m_lblPath.CreateLabel("...\\Cesta\\Cesta\\cesta\\cesta", 10, 198, 380, 20, false, LA_SINGLELINE | LA_RIGHT, this);
	m_txtFilename.CreateTextBox("pokus.dat", 10, 217, 185, 22, this);

	m_btnCancel.CreateButton(g_pLocaliz->Translate_const("#GUI_Cancel"), 303, 216, 87, 24, this);
	m_btnOK.CreateButton(g_pLocaliz->Translate_const("#GUI_Ok"), 205, 216, 87, 24, this);

	onOK = false;

	SetPath("C:\\");
}