Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void OglGui::TitledWindow::CreateTitleBar ( strconst  title,
int  extInfo 
) [inline, private]

Definition at line 236 of file TitledWindow.h.

References OglGui::B2T, BtnClose, BtnMax, BtnMin, BtnRounded, OglGui::OglWindow::ConnectTo(), OglGui::L2L, mCloseButton, mMaximizeButton, mMinimizeButton, mTitleBarButtonListener, mTitleHeight, mTitleText, OglGui::R2R, OglGui::StaticText::SetAlignOffsets(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::Window::SetForeground(), OglGui::OglWindow::SetNoMouseInput(), OglGui::OglWindow::SetRoundness(), OglGui::Window::SetStateFeedbackColor(), OglGui::Button::SetUpBorderType(), OglGui::OglWindow::SetVisible(), OglGui::T2T, TitleBarButton(), TitleRounded, OglGui::TPARENT, OglGui::OglWindow::WndHeight(), and OglGui::OglWindow::WndWidth().

Referenced by Init().

00237     {
00238         int     tH = mTitleHeight;
00239         int     w = WndWidth(), h = WndHeight();
00240         int     btnR = (extInfo & BtnRounded) ? 10 : 0;
00241         int     btnX = w - tH - 4, btnY = h - tH - 2;
00242         int     btnSz = tH - 4;
00243 
00244         mTitleBarButtonListener = new TitleBarButtonListener();
00245 
00246         mTitleText = new StaticText(this, 4, h-tH-4, w-8, tH, title, false);
00247         if (extInfo & TitleRounded)
00248         {
00249             mTitleText->SetRoundness(8, 8, 0, 0);
00250             if (!btnR)
00251                 btnX -= 3;
00252         }
00253 
00254         mTitleText->SetBorderFillShaded(2);
00255         mTitleText->SetAlignOffsets(6, 0);
00256         mTitleText->SetForeground(oglWHITE);
00257         mTitleText->SetBorderType(-1);
00258         mTitleText->SetBorderBackground(0x806060a0);
00259         //mTitleText->SetBorderBackground(0xff4040ff);
00260         mTitleText->SetNoMouseInput(true);
00261         mTitleText->ConnectTo(this, L2L | R2R | T2T | B2T | TPARENT);
00262 
00263         mCloseButton =
00264             TitleBarButton(btnX, btnY, btnSz, !(extInfo & BtnClose), btnR, "X");
00265         mCloseButton->SetStateFeedbackColor(0xffff8080);
00266         mCloseButton->SetUpBorderType(BEV_RAISED);
00267         mCloseButton->SetBorderBackground(0xffd04040);
00268         btnX -= btnSz + 2;
00269 
00270         mMaximizeButton =
00271             TitleBarButton(btnX, btnY, btnSz, !(extInfo & BtnMax), btnR, "[]");
00272         mMaximizeButton->SetAlignOffsets(0, 1);
00273         mMaximizeButton->SetVisible((extInfo & BtnMax)?true:false);
00274         btnX -= btnSz + 2;
00275 
00276         mMinimizeButton =
00277             TitleBarButton(btnX, btnY, btnSz, !(extInfo & BtnMin), btnR, "_");
00278         mMinimizeButton->SetAlignOffsets(0, 1);
00279         mMinimizeButton->SetVisible((extInfo & BtnMin)?true:false);
00280     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:08:45 2010 for ImpalaSrc by  doxygen 1.5.1