forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Negative Zoom limiter for VDSobj.dll

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Mon Feb 28, 2005 1:11 pm    Post subject: Negative Zoom limiter for VDSobj.dll Reply with quote

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
View user's profile Send private message Send e-mail
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Mon Feb 28, 2005 1:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group