Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

2D canvas movement

20 views
Skip to first unread message

lex2...@gmail.com

unread,
Jan 17, 2016, 12:05:35 AM1/17/16
to
I'm wanting to use the windows API to move a canvas in an visual object,
I'm using Delphi but that should not be confusing but my wordage may be incorrect
I believe I need to be using SetWindowExtEx(Handle, X, Y, Nil);
SetViewPortOrgEx(Handle, 0, 0, Nil); and SetWindowOrgEx(Handle, NewX, NewY, Nil);

Can some one show a little code please

lex2...@gmail.com

unread,
Jan 17, 2016, 2:30:11 AM1/17/16
to
On Sunday, 17 January 2016 18:05:35 UTC+13, lex2...@gmail.com wrote:
> I'm wanting to use the windows API to move a canvas in an visual object,
> I'm using Delphi but that should not be confusing but my wordage may be incorrect
> I believe I need to be using SetWindowExtEx(Handle, X, Y, Nil);
> SetViewPortOrgEx(Handle, 0, 0, Nil); and SetWindowOrgEx(Handle, NewX, NewY, Nil);

Let me explain SetMapMode is set MM_ISOTROPIC
I have a canvas x = 1500 Y= 1500 with my object size x = 500 y = 500 all in pixels. I want to start my canvas displaying with topleft corner fully displayed in my object. Can some one show a little code or something please.
Message has been deleted
0 new messages