Definition at line 1151 of file TextEdit.h. References OglGui::Window::MapKeysTo(), mCaret, mCaretColor, mCaretX, mCaretY, mClipBackground, OglGui::DocDimensions::mDocW, mEditable, mHorizontalScrollBar, mInitialized, mLastMouseX, mLeftMargin, mLineH, mListener, mMark, mOldH, mPropagateScrollingX, mPropagateScrollingY, mShadowColor, mSingleLine, mTextShadowed, mUpDownPos, mVerticalScrollBar, OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderType(), OglGui::Window::SetDisableGlobalKeyListener(), OglGui::Window::SetDisableOGLViewKeys(), OglGui::Window::SetDisableOGLViewMouse(), OglGui::ScrollBar::SetLineIncrement(), OglGui::ScrollBar::SetScrollBarListener(), and SetText(). 01152 { 01153 SetBorderType( BEV_RIDGE ); 01154 mListener = 0; 01155 mHorizontalScrollBar = mVerticalScrollBar = 0; 01156 01157 // Used to be true, but I do not know why 01158 // mClipBackground = true; 01159 mClipBackground = false; 01160 01161 mInitialized = false; 01162 mEditable = true; 01163 mSingleLine = false; 01164 01165 //mDocX = 0; 01166 mDocW = 800; 01167 mOldH = h; 01168 mLeftMargin = 8; 01169 01170 mMark = 0; 01171 mCaret = 0; 01172 mCaretY = h - mLineH; 01173 mCaretX = mLeftMargin; 01174 mCaretColor = oglLIGHTRED; 01175 01176 mTextShadowed = false; 01177 mShadowColor = oglLIGHTGREY; 01178 mLineH = 16; 01179 01180 SetText(text); 01181 01182 01183 if (sB & 1) 01184 { 01185 mHorizontalScrollBar = new WindowScrollBar(this, true, 1, 16, 01186 (sB&2)?16:0); 01187 mHorizontalScrollBar->SetLineIncrement(mLineH); 01188 mHorizontalScrollBar->SetScrollBarListener(this); 01189 mHorizontalScrollBar->MapKeysTo(this); 01190 } 01191 if (sB & 2) 01192 { 01193 mVerticalScrollBar = new WindowScrollBar(this, false, 1, 16, 01194 (sB&1)?16:0); 01195 mVerticalScrollBar->SetLineIncrement(mLineH); 01196 mVerticalScrollBar->SetScrollBarListener(this); 01197 mVerticalScrollBar->MapKeysTo(this); 01198 } 01199 01200 mUpDownPos = -1; 01201 01202 mPropagateScrollingY = 0; 01203 mPropagateScrollingX = 0; 01204 mLastMouseX = 0; 01205 01206 SetDisableGlobalKeyListener( true ); 01207 SetDisableOGLViewKeys( true ); 01208 SetDisableOGLViewMouse( true ); 01209 01210 SetBackground(oglWHITE); 01211 }
Here is the call graph for this function:
|