Apache OpenOffice (AOO) Bugzilla – Issue 17182
list-box click ergnonomics ...
Last modified: 2004-04-26 21:16:55 UTC
If you have a really short string in a list box; you have to be annoyingly precise in clicking on it; this patch makes the whole row sensitive, and these lists easier to use. --- svtools/source/contnr/svimpbox.cxx Fri Dec 7 09:40:39 2001 +++ svtools/source/contnr/svimpbox.cxx Wed Jan 8 16:40:55 2003 @@ -676,6 +676,7 @@ return TRUE; Rectangle aRect( pView->GetFocusRect( pEntry, nLine )); + aRect.Right () = GetOutputSize().Width() - pView->GetMapMode().GetOrigin().X(); if( pView->IsA() == SV_LISTBOX_ID_TREEBOX ) { SvLBoxContextBmp* pBmp = (SvLBoxContextBmp*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXCONTEXTBMP)); may I commit ?
cp->mmeeks: svtools belongs to utilities project (don't ask me why) cp->gt: hi gunnar, could you or frank have a look at the patch ? cvs blames you for being familiar with the code.
gt->mmeeks: It's not yet clear, how this affects the handling of the scroll bar. But this should work because the mouse event of the scroll bar is handled before the entire control. Additionally the move of the bitmap afterwards could cause some glidges. Another thing is that there should be an area from the boundary of the entry / scroll bar, where the entry is not hit. Don't know the size of this distance at moment. I've set the target to 2.0 because it's simply the next after the RC... ;-)
Hi Gunnar, it seems we have more milestones now - any chance of this in 1.1.1 ? I'm happy to add a fudge factor to protect the scroll-bar; presumably that will be a small number of pixels though (?)
CWS gt03
.
SBA: Verified in CWS gt05.
SBA: Marked verified.
SBA: OK in Build 680m34. Closed.