LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Dec 17, 2002 4:18 pm Post subject: |
|
|
Here ya go.
| Code: |
DIALOG CREATE,Mouse Over Dialog,-1,0,240,160
DIALOG ADD,STYLE,STYLE1,,18,B,,0000A0
DIALOG ADD,TEXT,TEXT1,36,62,112,13,Pass mouse over dialog
DIALOG ADD,TEXT,TEXT2,70,76,84,29,TEXT2,,STYLE1
DIALOG SHOW
:evloop
wait event,0
%e = @event()
goto %e
rem here starts the mouseover code
:timer
%%top = @sum(@Winpos(@Winexist(Mouse Over Dialog),T),4)
%%left = @Winpos(@Winexist(Mouse Over Dialog),L)
%%wide = @diff(@Winpos(@Winexist(Mouse Over Dialog),W),3)
%%high = @Winpos(@Winexist(Mouse Over Dialog),H)
%y = @mousepos(y)
%x = @mousepos(x)
if @equal(1111,@greater(%x,@sum(%%left,0))@greater(@sum(@sum(%%left,%%wide),0),%x)@greater(%y,@sum(%%top,0))@greater(@sum(@sum(%%top,%%high),0),%y))
dialog set,text2,OVER
else
dialog set,text2,OUT
end
goto evloop
:Close
|
_________________ Chris
Http://theblindhouse.com |
|