From 6dc3b656a1a2ce568caa6e151ef3f556d63c90e3 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Tue, 29 Mar 2005 13:35:04 +0000 Subject: INTEGRATION: CWS perform02 (1.8.8); FILE MERGED 2005/02/23 16:14:48 ssa 1.8.8.1: keep drop down open after releasing the mouse button --- sd/source/ui/toolpanel/TaskPaneViewShell.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sd/source/ui/toolpanel/TaskPaneViewShell.cxx') diff --git a/sd/source/ui/toolpanel/TaskPaneViewShell.cxx b/sd/source/ui/toolpanel/TaskPaneViewShell.cxx index 955262bb30a2..c761d8172ce2 100644 --- a/sd/source/ui/toolpanel/TaskPaneViewShell.cxx +++ b/sd/source/ui/toolpanel/TaskPaneViewShell.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TaskPaneViewShell.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: kz $ $Date: 2005-03-18 16:57:39 $ + * last change: $Author: rt $ $Date: 2005-03-29 14:35:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -447,9 +447,10 @@ IMPL_LINK(TaskPaneViewShell, ToolboxClickHandler, ToolBox*, pToolBox) pMenu->SetSelectHdl ( LINK(this, TaskPaneViewShell, MenuSelectHandler)); - Point aMenuPosition = pToolBox->GetItemRect(mnMenuId).BottomLeft(); - aMenuPosition += pToolBox->GetPosPixel(); - pMenu->Execute (pDockingWindow, aMenuPosition); + // pass toolbox button rect so the menu can stay open on button up + Rectangle aRect = pToolBox->GetItemRect(mnMenuId); + aRect.SetPos(pToolBox->GetPosPixel() ); + pMenu->Execute (pDockingWindow, aRect, POPUPMENU_EXECUTE_DOWN); } return 0; -- cgit