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
 Resize images in TImageEnMView on CTRL+MouseWhell

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
haya Posted - Sep 15 2019 : 02:01:11
hello
how to increase or decrease the sizes of thumbnails in TImageEnMView by pressed CTRL and mouse wheel?
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 18 2019 : 17:04:26
Yes, sorry.

Please email me for an update. You can use the OnViewChange event as follows:

procedure TMyForm.ImageEnMViewOnViewChange(Sender: TObject; Change: integer);
begin
  // Restrict zoom to range of 50 - 200
  if ( Change = 1 ) and ( Zoom < 50 ) then
    Zoom := 50
  else
  if ( Change = 1 ) and ( Zoom > 200 ) then
    Zoom := 200;
end;


Nigel
Xequte Software
www.imageen.com
haya Posted - Sep 18 2019 : 15:11:38
But OnZoomIn/OnZoomOut events available only in TImageEnView
The question is about TImageEnMView
xequte Posted - Sep 18 2019 : 03:24:14
Hi

Use the OnZoomIn/OnZoomOut events, and change the NewZoom value if it is invalid.

https://www.imageen.com/help/TImageEnView.OnZoomIn.html
https://www.imageen.com/help/TImageEnView.OnZoomOut.html

Nigel
Xequte Software
www.imageen.com
haya Posted - Sep 17 2019 : 17:00:16
Thanks, I will do so. One more question: how to set maximum (and minimum) allowed zoom sizing?
xequte Posted - Sep 16 2019 : 16:54:39
Hi

MouseWheelParamsAlt was added in a recent version. What version of ImageEn do you have?

You may want to extend at:

https://www.imageen.com/order/

Nigel
Xequte Software
www.imageen.com
haya Posted - Sep 16 2019 : 05:48:40
Thanks for answer! I trying to use this code:

ImageEnMView1.MouseWheelParams.Action:= iemwVScroll;
ImageEnMView1.MouseWheelParamsAlt.Action:= iemwZoomView;

But got this error messages:

[dcc32 Error] E2003 Undeclared identifier: 'iemwZoomView'
[dcc32 Error] E2003 Undeclared identifier: 'MouseWheelParamsAlt'

Which modules should I add in "uses" section?
xequte Posted - Sep 15 2019 : 17:17:00
Hi

Please set ImageEnMView1.MouseWheelParams.Action or ImageEnMView1.MouseWheelParamsAlt.Action to iemwZoom.

https://www.imageen.com/help/TImageEnMView.MouseWheelParams.html

Nigel
Xequte Software
www.imageen.com