// No mirroring for horizontal scrollbars if (bHoriz)
m_xScrollBar->set_direction(false);
}
// Will be called after a change of the document size // to refresh the range of the scrollbars. void SwScrollbar::DocSzChgd( const Size &rSize )
{
m_aDocSz = rSize;
SetRange( Range( 0, m_bHori ? rSize.Width() : rSize.Height()) ); const tools::Long nVisSize = GetVisibleSize();
SetLineSize( SCROLL_LINE_SIZE );
SetPageSize( nVisSize * 77 / 100 );
}
// Will be called after a change of the visible view section. void SwScrollbar::ViewPortChgd( const tools::Rectangle &rRect )
{
tools::Long nThumb, nVisible; if( m_bHori )
{
nThumb = rRect.Left();
nVisible = rRect.GetWidth();
} else
{
nThumb = rRect.Top();
nVisible = rRect.GetHeight();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.