void BrowserHeader::EndDrag()
{ // call before other actions, it looks more nice in most cases
HeaderBar::EndDrag();
PaintImmediately();
// not aborted?
sal_uInt16 nId = GetCurItemId(); if ( !nId ) return;
// handle column? if ( nId == USHRT_MAX-1 )
nId = 0;
if ( !IsItemMode() )
{ // column resize
_pBrowseBox->SetColumnWidth( nId, GetItemSize( nId ) );
_pBrowseBox->ColumnResized( nId );
SetItemSize( nId, _pBrowseBox->GetColumnWidth( nId ) );
} else
{ // column drag // did the position actually change? // take the handle column into account
sal_uInt16 nOldPos = _pBrowseBox->GetColumnPos(nId),
nNewPos = GetItemPos( nId );
if (_pBrowseBox->GetColumnId(0) == BrowseBox::HandleColumnId)
nNewPos++;
if (nOldPos != nNewPos)
{
_pBrowseBox->SetColumnPos( nId, nNewPos );
_pBrowseBox->ColumnMoved( nId );
}
}
}
¤ 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.0.11Bemerkung:
(vorverarbeitet am 2026-09-28)
¤
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.