FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Aug 16, 2003 5:09 pm Post subject: Highlight BITBTN Images |
|
|
This isn't really something extraordinary but rather something I wanted to
point out. If you've ever wanted to make those BITBTN elements change
to a slightly different image (ex. make it brighter or darker) on mouseover,
just use the MOUSEOVER style in VDS 5, like the following:
Code: | TITLE By FreezingFire
DIALOG CREATE,BITBTN Test,-1,0,151,69,NOMIN
DIALOG ADD,BITBTN,BITBTN1,10,14,56,48,@windir()\winhelp.exe,,,MOUSEOVER
DIALOG ADD,TEXT,TEXT1,12,82,,,Mouse-over@cr()the BITBTN
DIALOG SHOW
:Evloop
wait event
goto @event()
:BITBTN1ENTER
dialog set,BITBTN1,@windir()\winhlp32.exe
goto evloop
:BITBTN1LEAVE
dialog set,BITBTN1,@windir()\winhelp.exe
goto evloop
:BITBTN1BUTTON
warn You clicked the button
goto evloop
:Close
exit |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|