Reimplemented from OglGui::Window. Definition at line 344 of file ScrollBar.h. References cSbW, OglGui::OglWindow::GetBorderBackground(), OglGui::Window::GetState(), OglGui::Window::InitDisplayFunc(), mButDecr, mButIncr, mButThumb, mHorizontal, OglGui::OglWindow::mOglWnd, mOldBorderBg, mPixelPage, mPixelPos, mPixelRange, mScrollPage, mScrollPos, mScrollRange, OglGui::Window::mStateFeedbackColor, RepositionViewports(), OglGui::OglWindow::SetBorderBackground(), and SetRange(). 00345 { 00346 #ifdef ORG_STATEFEEDBACK 00347 if (GetState()==2 || mButThumb->GetState()==2 || 00348 mButIncr->GetState()==2 || mButDecr->GetState()==2) 00349 { 00350 mOldBorderBg = GetBorderBackground(); 00351 SetBorderBackground(mStateFeedbackColor); 00352 } 00353 #endif 00354 // RvB: Added to make sure sizes are correct 00355 // Bespreken met Michiel, hoe het misschien anders kan 00356 if (mHorizontal) 00357 mPixelRange = mOglWnd->width - (2*cSbW); 00358 else 00359 mPixelRange = mOglWnd->height - (2*cSbW); 00360 SetRange(mScrollRange, mScrollPage); 00361 00362 if (mScrollRange == mScrollPage){ 00363 // oglSys.ErrorBox("Error", "Division by zero mScrollRange==mScrollPage"); 00364 mScrollPage--;// Provisorisch 00365 } 00366 // RvB: Introduced double cast to prevent overflow 00367 mPixelPos = (mPixelRange - mPixelPage) * (double) mScrollPos / 00368 (mScrollRange - mScrollPage); 00369 00370 RepositionViewports(); 00371 00372 Window::InitDisplayFunc(); 00373 }
Here is the call graph for this function:
|