コード例 #1
0
ファイル: ConsoleBase.cpp プロジェクト: Sasha7b9/Platformer
ConsoleBase::ConsoleBase(Context *context) :
    WindowBase(context)
{
    SetVisible(false);

    SetSize(1500, 300);
    SetResizable(true);

    lineEdit = gUIRoot->CreateChild<LineEdit>();
    lineEdit->SetStyle("LineEdit");
    lineEdit->SetSize(GetWidth(), 15);
    lineEdit->SetPosition(0, GetHeight() - 15);

    AddChild(lineEdit);

    scrollBar = gUIRoot->CreateChild<ScrollBar>();
    scrollBar->SetFixedSize(10, GetHeight() - 15);
    scrollBar->SetPosition(GetWidth() - 10, 0);
    scrollBar->SetStyleAuto();
    scrollBar->SetOrientation(O_VERTICAL);
    scrollBar->SetRange(0.0f);
    AddChild(scrollBar);

    text = gUIRoot->CreateChild<Urho3D::Text>();
    text->SetStyle("WindowMenu");
    text->SetFixedSize(GetWidth() - 10, GetHeight() - 15);
    text->SetPosition(0, 0);
    AddChild(text);

    SubscribeToEvent(lineEdit, E_TEXTFINISHED, URHO3D_HANDLER(ConsoleBase, HandleFinishedText));
}
コード例 #2
0
ファイル: HTMLDialog.cpp プロジェクト: jimmccurdy/ArchiveGit
void CHtmlDialog::CommonConstruct()
{
	m_hInstMSHTML = ::LoadLibrary("MSHTML.DLL");
	m_strOptions = "";
//j	m_varReturn
//j	SetWindowSize(400, 250);
	SetResizable(false);
	SetStatusBar(false);
	SetHelpButton(false);
	SetCenter(true);
	SetRaisedEdge(true);
}
コード例 #3
0
ファイル: DPO_EnterXYPS.cpp プロジェクト: jjayne/nSIGHTS
XYArray::XYArray()
{
    SetResizable(32);
}