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
 TImagenEnView Scrollbar Position
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - May 03 2015 :  12:41:36  Show Profile  Reply
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

Uwe

284 Posts

Posted - May 03 2015 :  21:14:43  Show Profile  Reply
Bill, does TIEAnimation.MoveScrollbarSliderTo help?

-Uwe
Go to Top of Page

xequte

38616 Posts

Posted - May 04 2015 :  00:02:45  Show Profile  Reply
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
Go to Top of Page

xequte

38616 Posts

Posted - May 04 2015 :  18:33:59  Show Profile  Reply
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
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 04 2015 :  18:58:09  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: