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 


Is the @BOTH command buggy, or am I buggy?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Feb 25, 2005 11:33 pm    Post subject: Is the @BOTH command buggy, or am I buggy? Reply with quote

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
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Feb 25, 2005 11:50 pm    Post subject: Re: Is the @BOTH command buggy, or am I buggy? Reply with quote

_______________________________________________________________
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 Smile

_________________
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
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sat Feb 26, 2005 12:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Feb 26, 2005 12:19 am    Post subject: Reply with quote

You can go here:

http://www.vdsworld.com/index.php

and search for "vdsobj". Wink

Sorry but I have no clue how to emulate a mouseover
on elements from the VDSGUI.DLL. Confused

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sat Feb 26, 2005 12:20 am    Post subject: Reply with quote

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
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sat Feb 26, 2005 12:30 am    Post subject: Reply with quote

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.. Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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