From: Andy D. <kha...@us...> - 2003-08-05 14:54:06
|
Update of /cvsroot/planeshift/planeshift/src/client/paws In directory sc8-pr-cvs1:/tmp/cvs-serv25655/src/client/paws Modified Files: shortcutwindow.cpp Log Message: Fixed position and size of scrollbar Index: shortcutwindow.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/paws/shortcutwindow.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** shortcutwindow.cpp 1 Aug 2003 17:30:17 -0000 1.6 --- shortcutwindow.cpp 5 Aug 2003 14:54:03 -0000 1.7 *************** *** 69,81 **** } ! // Create the scroll bar here as well but hidden. scrollBar = (pawsScrollBar*) windowManager->CreateWidget ( "pawsScrollBar" ); AddChild( scrollBar ); ! scrollBar->SetRelativeFrame( 0, screenFrame.Height()-24, screenFrame.Width(), 24 ); ! int attach = ATTACH_BOTTOM | ATTACH_RIGHT | ATTACH_LEFT; scrollBar->SetAttachFlags( attach ); scrollBar->UseBorder(); - scrollBar->SetHorizontal(true); scrollBar->PostSetup(); scrollBar->SetTickValue( 1.0 ); scrollBar->SetMaxValue(MAX_SHORTCUT_SETS-1); --- 69,83 ---- } ! // Create the scroll bar scrollBar = (pawsScrollBar*) windowManager->CreateWidget ( "pawsScrollBar" ); AddChild( scrollBar ); ! scrollBar->SetHorizontal(true); ! int attach = ATTACH_BOTTOM | ATTACH_LEFT | ATTACH_RIGHT; scrollBar->SetAttachFlags( attach ); + scrollBar->SetRelativeFrame( 0, defaultFrame.Height()-15, defaultFrame.Width()-8, 15); scrollBar->UseBorder(); scrollBar->PostSetup(); + // Make the scrollbar in the correct place + scrollBar->Resize(); scrollBar->SetTickValue( 1.0 ); scrollBar->SetMaxValue(MAX_SHORTCUT_SETS-1); |