diff options
author | Frank Schönheit <fs@openoffice.org> | 2002-04-11 15:01:30 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2002-04-11 15:01:30 +0000 |
commit | f48bda15e474576c30912369329eec3f2a6d22eb (patch) | |
tree | 4cb0e66ed9263497de3072aaed45bf60d8aae8c7 /svtools | |
parent | 3171496cdffb772d624b97668bfed7d6def9b39b (diff) |
#98483# BROWSER_SELECTCOLUMN
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 02ab076f9ec8..7326a4f0ca38 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: brwbox2.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: dr $ $Date: 2002-04-02 08:51:24 $ + * last change: $Author: fs $ $Date: 2002-04-11 16:01:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -406,15 +406,12 @@ void BrowseBox::DrawCursor() { short nCursorHideCount = GetCursorHideCount(); BOOL bHidden = bHideCursor || !bSelectionIsVisible || - !IsUpdateMode() || bScrolling || nCurRow < 0; + !IsUpdateMode() || bScrolling || nCurRow < 0; if (PaintCursorIfHiddenOnce()) bHidden |= ( GetCursorHideCount() > 1 ); else bHidden |= ( GetCursorHideCount() > 0 ); -// bHidden |= ( GetCursorHideCount() > 0 ) && !( ( !m_bFocusOnlyCursor && GetCursorHideCount() == 1 ) && !HasFocus() ); - // hidden if the hide count non-zero - // exception : we hided the cursor exactly once in LoseFocus and we have to show the cursor // keine Cursor auf Handle-Column if ( nCurColId == 0 ) @@ -1922,6 +1919,10 @@ void BrowseBox::Dispatch( USHORT nId ) switch ( nId ) { + case BROWSER_SELECTCOLUMN: + SelectColumnId( GetCurColumnId() ); + break; + case BROWSER_CURSORDOWN: if ( ( GetCurRow() + 1 ) < nRowCount ) bDone = GoToRow( GetCurRow() + 1, FALSE ); |