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

void OglGui::DropDownWindow::Init ( int  w,
int  h,
strconst  txt,
int  options 
) [inline, private]

Definition at line 197 of file DropDownWindow.h.

References AddWindow(), DropDown(), mClosedHeight, mHeaderHeight, mHeaderText, mHeaderWindow, mIsDropped, mLinePattern, mPlusMinText, OglGui::OglWindow::mRunTimeType, mShowLines, mSpacing, OglGui::StaticText::SetAlign(), OglGui::OglWindow::SetBorderType(), OglGui::Window::SetDoStateFeedback(), OglGui::OglWindow::SetNoMouseInput(), OglGui::Window::SetWindowListener(), and OglGui::Window::Window().

00198     {
00199         int     hdrX = 2;
00200         int     hdrTxtX = 4;
00201         bool    plMin = (options & 1) ? true : false;
00202 
00203         mRunTimeType |= 8;
00204         mHeaderHeight = 16;
00205         mPlusMinText = 0;
00206         mIsDropped = false;
00207         mShowLines = (options & 2) ? true : false;
00208         mLinePattern = (short) oglDot;
00209         mRunTimeType |= 8;
00210         mSpacing = 2;
00211         mClosedHeight = h; // Allowing for partially opened in closed state
00212 
00213         mHeaderWindow = new Window(this, hdrX, 0, w-hdrX, mHeaderHeight);
00214         mHeaderWindow->SetWindowListener(this);
00215 
00216         if (plMin)
00217         {
00218             mPlusMinText = new StaticText(mHeaderWindow, 0, 3, 13, 13, "+");
00219             mPlusMinText->SetBorderType(BEV_LINE);
00220             mPlusMinText->SetDoStateFeedback(true);
00221             mPlusMinText->SetWindowListener(this);
00222             hdrTxtX = 14;
00223         }
00224 
00225         mHeaderText = new StaticText(mHeaderWindow, hdrTxtX, 0, w-hdrTxtX-2,
00226                                      16, txt);
00227         mHeaderText->SetAlign(oglLeftAlign, oglBottomAlign);
00228         mHeaderText->SetNoMouseInput(true);
00229         mHeaderText->SetWindowListener(this);
00230 
00231         AddWindow(mHeaderWindow, 0);
00232         DropDown(false);
00233     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:01:13 2010 for ImpalaSrc by  doxygen 1.5.1