Home | Reviews | GUIpedia | Forum | Fun500


agumaSpark core release w/ documentation!
The not-so-long awaited Spark 0.1 core has been released! You can download it here: [url=http://exhale.theguiblog.com/?Download]http://exhale.theguiblog.com/?Download[/url] Also, don't post until I post again, cause I'm gonna type the documentation. :laugh: Thanks!
2008-09-116:19 PM

agumaRe:Spark core release w/ documentation!
Spark basic documentation- Your first program Okay, what on earth should we do first!? Well, we need the actual SDK, (http://exhale.theguiblog.com/?Download) and Qbasic 7.1 PDS (search it on Google if you don't have it). All set? Let's go! What do we do first? Okay, open up a command prompt or DOSBox if you have it. Type the following: CD [the-directory-where-you-unzipped-the-sdk] QBX /L SDK /AH /ES (Stop typing) If you set everything up correctly, you should have Qbasic's interface in front of you. First we need to include the .BI, so we can use things like InitSDK instead of CALL InitSDK (). So type this in: '$INCLUDE: 'SDK.BI' Now we need it to DO something. So type in this main block of code: InitSDK 'Initializes stuff & sets wintitleclr CreateWindow 50,50,300,300,"My first Spark program" MakeButton 20,20,100,"Click me!",1 DO UNTIL CurClick 0 'Wait until the user clicks something DoCHK 'Make a call to the engine LOOP FONT 0,0,"You clicked me!",1 END (Stop typing) If you have any questions, post now. I'm going to start typing the next section in 10 mins, so hurry!
2008-09-116:28 PM

agumaRe:Spark core release w/ documentation!
Okay, but you'll be sorry if you have a question later! Now for more objects! There are 4 objects in Spark: Button, Label, Text Box, and Check Box. Here are their prototypes (that's what you call DECLARE in C I think): DECLARE SUB MakeButton (x1,y,x2,label as string,num) DECLARE SUB MakeLabel (x,y,text as string,num) DECLARE SUB MakeTextBox (x1,y,x2,text as string,num) DECLARE SUB MakeCheckBox (x,y,num) num is the Object number, same as Fun500 and all those other scripting engines. So for example: MakeButton 20,20,100,"Button 1",1 would make a button from 20,20 (relative to window) to 100,20 + 10 (30). Again, if you have any questions, say them now.
2008-09-116:55 PM

agumaRe:Spark core release w/ documentation!
Check exhale.theguiblog.com for extra stuff!
2008-09-117:04 PM

jasonwoodlandRe:Spark core release w/ documentation!
I don't have QBX, could you compile it for me? Thanks:)
2008-09-124:32 AM

BrandonRe:Spark core release w/ documentation!
4 posts in a row? come on guys! thats unexceptable.
2008-09-124:09 PM

ToddRe:Spark core release w/ documentation!
At least they're posting. ;)
2008-09-124:14 PM

agumaRe:Spark core release w/ documentation!
I'm just doing what most people do on big forums when they type documentation or things like that. :laugh:
2008-09-125:46 PM

GUIs


2021 Brandon Cornell