| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Feb 25, 2005 11:33 pm Post subject: Is the @BOTH command buggy, or am I buggy? |
|
|
Is the @BOTH command buggy, or am I buggy?
| Code: |
%%test1 = 5
%%test2 = 7
%%both_test = @BOTH(@equal(%%test2,7),(@equal(%%test1,7))
IF @equal(%%both_test,1)
info hmm
END
|
Or am I trying to do this wrong?
Thanks for your help..[/code] |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Feb 25, 2005 11:50 pm Post subject: Re: Is the @BOTH command buggy, or am I buggy? |
|
|
_______________________________________________________________
| vtol wrote: | Is the @BOTH command buggy, or am I buggy?
| Code: |
%%test1 = 5
%%test2 = 7
%%both_test = @BOTH(@equal(%%test2,7),(@equal(%%test1,7))
IF @equal(%%both_test,1)
info hmm
END
|
Or am I trying to do this wrong?
Thanks for your help..[/code] |
You have an extra "(" before the second @equal in this line:
%%both_test = @BOTH(@equal(%%test2,7),(@equal(%%test1,7))
Also, ya can just use:
| Code: |
if @BOTH(@equal(%%test2,7), @equal(%%test1,7))
info hmm
end
|
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Feb 26, 2005 12:15 am Post subject: |
|
|
Thanks Mac
hey, do you have a link for the VDSOBJ.DLL handy?
And also your just the man to ask how to emulate mouse over on the VDSGUI Tranparent BMP?
cheers.. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 26, 2005 12:19 am Post subject: |
|
|
You can go here:
http://www.vdsworld.com/index.php
and search for "vdsobj".
Sorry but I have no clue how to emulate a mouseover
on elements from the VDSGUI.DLL.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Sat Feb 26, 2005 12:20 am Post subject: |
|
|
vdsobj can be found at www.vdsworld.com, just do a search and you'll find it quickly.
vdsobj also has a GRAPHIC control allowing you to use transparent bitmaps, gifs, jpegs, wmf and emf files and has the ability for mouseover events. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Feb 26, 2005 12:30 am Post subject: |
|
|
I think I have a way just about tweaked below, it works now:
| Code: |
DIALOG CREATE,v2deluxe,-1,0,259,325,SAVEPOS,CLASS v2deluxe
#RESOURCE ADD,BINARY,C:\VDS5\vRESOURCE\vloader2deluxe\we.bmp,we.bmp
External VDSGUI.DLL,Demo
#DEFINE COMMAND,GUI
#DEFINE FUNCTION,GUI
GUI SUBCLASS,#v2deluxe
GUI ADD,TRANSPIMAGE,TRANSPIMAGE1,#v2deluxe,#we.bmp,$00FFFFFF,74,249
DIALOG ADD,LIST,mods,50,86,148,61,,MULTI
DIALOG ADD,LIST,custommaps,125,86,148,111,,MULTI
# below should have the original BMP size and location as above
DIALOG ADD,aniicon,mapeditor,249,74,55,55
:evloop
WAIT EVENT,0.01
goto @event()
:TIMER
WAIT "0.02"
dialog clear,mods
%%mapeditor_identifier_name = @WINEXISTS(~mapeditor)
%x = @MOUSEPOS(x)
%y = @MOUSEPOS(y)
%%mouse_reading_identifiers = @WINATPOINT(%x,%y)
IF @equal(%%mouse_reading_identifiers,%%mapeditor_identifier_name)
dialog cursor,HAND
dialog set,statis,Loads up the Map Editor "("Edit World")"".."
%%transparent_vdsgui_statis = active
list assign,mods,HAND should be SEEN"!"
wait "0.4"
END
%%filter_mapeditor = @BOTH(@unequal(%%mouse_reading_identifiers,%%mapeditor_identifier_name),@equal(%%transparent_vdsgui_statis,active))
IF @equal(%%filter_mapeditor,1)
dialog cursor,
dialog set,statis,Loads up the Map Editor "("Edit World")"".."
%%transparent_vdsgui_statis = neutral
list assign,mods,HAND should be gone
wait "0.4"
END
%E = @event()
IF @equal(%E,CLOSE)
info close
goto close
END
|
I'm gonna reduce the WAIT time when I'm done testing..  |
|
| Back to top |
|
 |
|
|
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
|
|