| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Mon Feb 28, 2005 1:11 pm Post subject: Negative Zoom limiter for VDSobj.dll |
|
|
I have created a zoom limiter for VDSobj.dll
I have problems with Negative Zoom limiter part
Positive its working fine
:BUTTON1BUTTON
%N = @sum(%N,1)
%D = @diff(%D,1)
%A = @sendmsg(@object(gethandle,richedit1),1249,%N,%D)
dialog set,sb,Zoom @diff(%N,%D)x
%%ZoomLimitPos = @diff(%N,%D)
IF @EQUAL(%%ZoomLimitPos,136)
%N = 63
%D = 65
end
goto loop
:BUTTON2BUTTON
%N = @diff(%N,1)
%D = @sum(%D,1)
%A = @sendmsg(@object(gethandle,richedit1),1249,%N,%D)
dialog set,sb,Zoom @diff(%N,%D)x
%%ZoomLimitNeg = @diff(%N,%D)
IF @EQUAL(%%ZoomLimitNeg,-136)
%N = -63
%D = -65
end
goto loop
My idea is that the zoom reset it self to zero when it comes to + 136 or -136
Last edited by filip on Mon Feb 28, 2005 1:26 pm; edited 1 time in total |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Mon Feb 28, 2005 1:22 pm Post subject: |
|
|
Reverse polarity solution
i can go work at NASA or what
:BUTTON1BUTTON
%N = @sum(%N,1)
%D = @diff(%D,1)
%A = @sendmsg(@object(gethandle,richedit1),1249,%N,%D)
dialog set,sb,Zoom @diff(%N,%D)x
%%ZoomLimitPos = @diff(%N,%D)
IF @EQUAL(%%ZoomLimitPos,136)
%N = 63
%D = 65
end
goto loop
:BUTTON2BUTTON
%N = @diff(%N,1)
%D = @sum(%D,1)
%A = @sendmsg(@object(gethandle,richedit1),1249,%N,%D)
dialog set,sb,Zoom @diff(%N,%D)x
%%ZoomLimitNeg = @diff(%N,%D)
IF @EQUAL(%%ZoomLimitNeg,-136)
%N = 65
%D = 63
end
goto loop
Mybe the negative zoom is set to high but hoo cares... |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|