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 


Attaching/Docking two windows?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 28, 2005 3:59 am    Post subject: Reply with quote

No problem and you're welcome Wink
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Mon Feb 28, 2005 5:00 am    Post subject: Reply with quote

Yeppers, thanks. Cool
Back to top
View user's profile Send private message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Mon Feb 28, 2005 3:01 pm    Post subject: Reply with quote

Try this one...

Cheers,

- Boo

Code:

title Boo's Docking Example
RUNH notepad.exe
repeat
wait
until @winexists(Untitled - Notepad)
dialog CREATE,Boo's Docking Example,-1,0,560,390,class MyApp,notitle
DIALOG ADD,STYLE,Title,ms sans serif,6,b,,WHITE
DIALOG ADD,line,line1,-1,0,560,390
DIALOG ADD,GROUP,window,0,0,559,19
DIALOG ADD,GRADIENT,WinTop,0,0,559,19,BLACK,BLUE,,LEFTTORIGHT
DIALOG ADD,TEXT,wintitle,2,1,559,17," Boo's Docking Example",,Title
DIALOG ADD,BUTTON,BUTTON1,82,231,,,close
dialog SHOW
Window ontop,Boo's Docking Example
Window ontop,Untitled - Notepad
LOADLIB USER32
%%parenty = @diff(@mousepos(Y),@dlgpos(,T))
%%parentx = @diff(@mousepos(X),@dlgpos(,L))
window position,Untitled - Notepad,@fadd(@diff(@mousepos(Y),%%parentY),200),@diff(@mousepos(X),%%parentX),560,190
window normal,Untitled - Notepad
window ontop,Untitled - Notepad
:Evloop
window activate,Untitled - Notepad
%E = @event()
if @not(@null(%E))
goto %E
end
if @mousedown(L)
%B = @strdel(@WINEXISTS(#MyApp),1,1)
if %B
%B = @lib(user32,SetWindowPos,BOOL:,%B,-2,0,0,0,0,3)
else
ERROR -1
end
%%parenty = @diff(@mousepos(Y),@dlgpos(,T))
%%parentx = @diff(@mousepos(X),@dlgpos(,L))
repeat
dialog setpos,,@diff(@mousepos(Y),%%parentY),@diff(@mousepos(X),%%parentX)
window position,Untitled - Notepad,@fadd(@diff(@mousepos(Y),%%parentY),200),@diff(@mousepos(X),%%parentX)
until @not(@mousedown(L))
dialog setpos,,@diff(@mousepos(Y),%%parentY),@diff(@mousepos(X),%%parentX)
window position,Untitled - Notepad,@fadd(@diff(@mousepos(Y),%%parentY),200),@diff(@mousepos(X),%%parentX)
window ontop,Boo's Docking Example
end
goto evloop
:Button1button
:close
FREELIB USER32
window close,Untitled - Notepad
exit
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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