Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
w2m
Posted - Dec 07 2012 : 07:02:15 With ImageEn Version 4.1.4, if you set SelectionOptions to [iesoAnimated,iesoSizeable,iesoMoveable,iesoCanScroll,iesoDisableOneClickDeselect] and set MouseInteract to [miSelect} after you make a selection a single click does not deselect. This is the expected result. However if you set MouseInteract to [miSelectCircle] or [miSelectPoly] after you make a selection a single click removes the selection... an unexpected result.
Is this a bug in imageEn or does iesoDisableOneClickDeselect designed only to function with [miSelect]?
I looked at the source and the iesoDisableOneClickDeselect only functions with ieMouseInteract = miSelect
In 4.1.4 - line 9043 in imageenview.pas:
else if (Button = mbLeft) and (miSelect in fMouseInteract) then
begin
if (fHSX1 = ix) and (fHSY1 = iy) and (fRectResizing = ieNone) and (fSelectMoving = -1) then
begin
if fSel and ((iesoDisableOneClickDeselect in fSelectionOptions) = False) then
begin
DeSelect;
callselectionchange := true;
end;
end