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
 TImagenEnView Scrollbar Position

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 - May 03 2015 : 12:41:36
How do you get the TImageEnView horizontal or vertical scrollbar position? I can not seem to find a way to get this.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
4   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - May 04 2015 : 18:58:09
Thanks Nigel,

I tried something like that but I must have messed it up somehow.



Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
xequte Posted - May 04 2015 : 18:33:59
Here is an example:

procedure TMDIChild.Button1Click(Sender: TObject);
var
  ScrInfo: TScrollInfo;
begin
  fillchar( ScrInfo, SizeOf( ScrInfo ), 0 );
  With ScrInfo do
  begin
    cbsize := SizeOf( ScrInfo );
    fmask  := SIF_ALL;
    GetScrollInfo( ImageEnView1.handle, SB_VERT, ScrInfo );
    ShowMessage( IntToStr( nPos ));
  end;
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
xequte Posted - May 04 2015 : 00:02:45
Hi Bill

Access to the scrollbar position is not available as a TImageEnView property but you can use ViewX and ViewY.

You should be able to use the Windows function GetScrollInfo to return the current position of the scrollbars.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Uwe Posted - May 03 2015 : 21:14:43
Bill, does TIEAnimation.MoveScrollbarSliderTo help?

-Uwe