Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Button Function

Author
Message
Enclosed
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location: Colorado
Posted: 12th Aug 2004 06:28 Edited at: 12th Aug 2004 12:10
Uhh, I dont really know what to call this but I have a question(propably a noob one) that I cant seem to figure out. Since I don't know what to call this question I cant search for it on the forums, therefore I have to ask it myself.

Ok I'm making a button function for my program like this:



Where it says t$ how would I get darkbasic to process this as a command and use it in my program, for example.

button(0,0,100,12,"print "button pressed"")

Now I dont quite think I am going at this with the right aproach and any help would be apreciated.

Edit I shortened the function down to:

but I still dont have the solution to my problem
Enclosed
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location: Colorado
Posted: 12th Aug 2004 06:44 Edited at: 12th Aug 2004 12:12
Ok got the code posted successfuly in the right format. And my question is not answered.
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 13th Aug 2004 05:32
well i don't know if this will work as i've never used it before but you could try creating a file and then executing it, something a bit like this:

please don't take it personally if im wrong cos i've never had to do something like that before. Hope it works
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 13th Aug 2004 07:44
Or, you could simply put PRINT in front of t$ or TEXT 10,10, depending on how much control you need.
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1

Login to post a reply

Server time is: 2024-09-22 20:13:56
Your offset time is: 2024-09-22 20:13:56