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

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

Definition at line 202 of file DropDownWindow.h.

References AddWindow(), DropDown(), mClosedHeight, mHeaderHeight, mHeaderText, mHeaderWindow, mInitialized, 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().

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

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:26 2011 for ImpalaSrc by  doxygen 1.5.1