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
 miScroll and miSelect

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
PeterPanino Posted - Sep 30 2022 : 23:58:50
In ImageEnView, the properties MouseInteractGeneral.miScroll and MouseInteractGeneral.miSelect are mutually exclusive.

Is there a built-in configuration to make them coexist with the help of the CTRL key? For example:

- miScroll is active when the CTRL key is pressed
- miSelect is active when no modifier key is pressed

Or do I have to manually check the status of the CTRL key?
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 02 2022 : 22:03:18
Hi Peter

I'm afraid that is the only way to do it at this time.

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Oct 01 2022 : 00:56:56
This code does what I want:

procedure TForm1.ImageEnView1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  if (Winapi.Windows.GetKeyState(VK_CONTROL) < 0) then { if the CTRL key is pressed }
    ImageEnView1.MouseInteractGeneral := [miScroll]
  else
    ImageEnView1.MouseInteractGeneral := [miSelect];
end;