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 


Single Monitor Dual Screen Behavior

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code
View previous topic :: View next topic  
Author Message
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Sun Jul 04, 2010 8:08 pm    Post subject: Single Monitor Dual Screen Behavior Reply with quote

For those of us with very widescreen monitors.

Side maximized to dependent on mouse position.


Code:

rem Errortrap for VDS 5/6 compatibility.
option errortrap,loop
title Single Dual Screen
DIALOG CREATE,Single Dual Screen,-1,0,240,160
dialog add,taskicon,Control

:loop
%%event = @event()
if %%event
goto %%event
end
wait .1
if @equal(%%dual,false)
goto loop
end
if @greater(@mousepos(X),@fdiv(@sysinfo(screenwidth),2))
%%side = right
else
%%side = left
end

if @equal(@winpos(@winactive(),S),3)
gosub maximize
else
end
goto loop

:maximize
window normal,@winactive()
if @equal(%%side,left)
window position,@winactive(),0,0,@name(@fdiv(@sysinfo(screenwidth),2)),@diff(@sysinfo(screenheight),@winpos(#shell_traywnd,H))
else
window position,@winactive(),0,@name(@fdiv(@sysinfo(screenwidth),2)),@name(@fdiv(@sysinfo(screenwidth),2)),@diff(@sysinfo(screenheight),@winpos(#shell_traywnd,H))
end
exit

:controlclick
dialog popup,Dual Screen Mode|Single Screen Mode|Help|About|Exit
goto loop

:dual screen modemenu
%%dual = true
goto loop

:single screen modemenu
%%dual = false
goto loop

:helpmenu
info Not Implemented
goto loop

:aboutmenu
info Program by Brandon Cunningham
goto loop


:exitmenu
:close
exit
Code:
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code 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