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
 miScroll and miSelect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

860 Posts

Posted - Sep 30 2022 :  23:58:50  Show Profile  Reply
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?

PeterPanino

860 Posts

Posted - Oct 01 2022 :  00:56:56  Show Profile  Reply
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;
Go to Top of Page

xequte

38182 Posts

Posted - Oct 02 2022 :  22:03:18  Show Profile  Reply
Hi Peter

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

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