[patch] ObjectInspector: double-click wrongly triggered when trying to expand ComboBox quickly
Original Reporter info from Mantis: etrusco
-
Reporter name: Flávio Etrusco
Original Reporter info from Mantis: etrusco
- Reporter name: Flávio Etrusco
Description:
Trying to pop up the ComboBox quickly after selecting the value/property triggers a double-click.
The following code works for me, but I'm not sure this is the best fix.
The same patch is attached for convenience.
-------------------------- ideintf/objectinspector.pp -------------------------- index 240aa45..4542563 100644 @@ -2012,7 +2012,6 @@ begin end; end; - SetItemIndexAndFocus(Index); SetCaptureControl(Self); Column := oipgcValue; end; @@ -2103,6 +2102,8 @@ procedure TOICustomPropertyGrid.MouseUp(Button:TMouseButton; Shift:TShiftState; begin if FDragging then EndDragSplitter; SetCaptureControl(nil); + if Button = mbLeft then + SetItemIndexAndFocus(MouseToIndex(Y,false)); inherited MouseUp(Button,Shift,X,Y);
end;
Mantis conversion info:
- Mantis ID: 19918
- Version: 0.9.31 (SVN)
- Fixed in revision: r43642 (#dfd98366)
- Target version: 1.2