ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Bug in Selection Options?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - Dec 07 2012 :  07:02:15  Show Profile  Reply
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]?

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html

xequte

38615 Posts

Posted - Dec 10 2012 :  00:53:19  Show Profile  Reply
Hi Bill

I'll come back to you on this tomorrow.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Dec 10 2012 :  15:18:01  Show Profile  Reply
Nigel,

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

William Miller
Go to Top of Page

xequte

38615 Posts

Posted - Dec 10 2012 :  22:12:37  Show Profile  Reply
Thanks Bill,

I have fixed this in the current dev source.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: