Share

wxWidgets

Tracker: Bugs

5 Bad mouse cursor over gripper in floating pane wt caption - ID: 1606167
Last Update: Comment added ( ninjanl )

When a pane is defined with CaptionVisible(false).Gripper().GripperTop()
it can be dragged either by the gripper (when it is docked), or by the
caption of its popup window (when it is floating).

When the mouse cursor is positioned over the gripper its shape always
changes to indicate that dragging is possible, even if the pane is floating
and dragging must be done using the caption only.

Error found in version 2.8.0-rc1.


JanusD ( janusd ) - 2006-11-30 15:59

5

Open

None

Benjamin I. Williams

AUI

Must fix

Public


Comments ( 2 )

Date: 2007-12-03 18:13
Sender: ninjanl


If not being able to move the floating frame by ANY gripper is required,
then changing framemanager.cpp lines 3833 onwards from

else if (part->type == wxAuiDockUIPart::typeGripper)
{
cursor = wxCursor(wxCURSOR_SIZING);
}


to

else if (part->type == wxAuiDockUIPart::typeGripper)
{

if(!part->cont_sizer->GetContainingWindow()->IsKindOf(CLASSINFO(wxAuiFloatingFrame)))
cursor = wxCursor(wxCURSOR_SIZING);
}
should probably fix it.

However if you only want to prevent a top gripper from allowing the
dragging, you will need to detect whether the gripper is a Top gripper as
well as the above test.

Hope this helps
Mal


Date: 2007-03-22 20:42
Sender: jason_m_harper


This also happens on wxPython 2.8.0.1 on Windows XP.


Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
assigned_to nobody 2007-03-22 20:50 robind