Definition at line 74 of file ValueScrollBar.h. References OglGui::B2B, OglGui::OglWindow::ConnectTo(), OglGui::L2R, mListener, mListenerData, mMaxVal, mMinVal, mScrollBar, mTxtBuf, mValueTxt, OglGui::R2R, OglGui::Window::SetAllowChildScaling(), OglGui::OglWindow::SetBorderType(), OglGui::ScrollBar::SetNewPos(), OglGui::ScrollBar::SetRange(), OglGui::ScrollBar::SetScrollBarListener(), and OglGui::T2T. 00075 { 00076 mListener = 0; 00077 mListenerData = 0; 00078 00079 mMinVal = minVal; 00080 mMaxVal = maxVal; 00081 00082 SetBorderType(BEV_ETCHED); 00083 00084 mScrollBar = new ScrollBar(this, m, m, w-46-2*m, h-2*m, true); 00085 mScrollBar->SetRange(maxVal-minVal + 10, 10); 00086 mScrollBar->SetNewPos(val - minVal); 00087 mScrollBar->ConnectTo(this); 00088 mScrollBar->SetScrollBarListener(this, 0); 00089 00090 sprintf(mTxtBuf, "%d", val); 00091 mValueTxt = new StaticText(this, w-46-m, m, 46, h-2*m, mTxtBuf); 00092 mValueTxt->SetBorderType(BEV_ETCHED); 00093 mValueTxt->ConnectTo(this, L2R | R2R | T2T | B2B); 00094 00095 // We already handle scaling ourself, so prevent others 00096 SetAllowChildScaling(false); 00097 }
Here is the call graph for this function:
|