He, I'm having some problems with the GadgetClicked command. Here's my code:
IF BLOCKB = GADGETCLICKED() Then SETFORMATION =1
IF WEDGEB = GADGETCLICKED() Then SETFORMATION =2
IF CULUMNB = GADGETCLICKED() Then SETFORMATION =3
IF ROWB = GADGETCLICKED() Then SETFORMATION =4
TEXT 5,5,STR$(SETFORMATION)
Here is the code where the actual gadgets were created:
BLOCKB=createButton(0,743,75,25,"BLOCK",0,0)
WEDGEB=createButton(76,743,75,25,"WEDGE",0,0)
CULUMNB=createButton(152,743,75,25,"CULUMN",0,0)
ROWB=createButton(228,743,75,25,"ROW",0,0)
The prblem is that no matter what, SetFormation always equals 0.
Also, the SetFormation variable is global for those wondering.
So can someone spot what I'm doing wrong? Thanks,
-Sunflash
With all the FPSC media packs, and the DBPro DLLs, and every single TGC product, how does one manage not going broke? Register here, it's awesome:
http://www.surfjunky.com/?r=sunflash