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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Bug in Selection Options?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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]?

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 10 2012 : 22:12:37
Thanks Bill,

I have fixed this in the current dev source.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Dec 10 2012 : 15:18:01
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
xequte Posted - Dec 10 2012 : 00:53:19
Hi Bill

I'll come back to you on this tomorrow.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com