Home | Reviews | GUIpedia | Forum | Fun500
jasonwoodland | Crystal ScriptsI was just wondering if it's easy to write in this type of scripting language;
INIT
$WINX=100
$WINY=100
$WINW=600
$WINH=400
$WINT="Test window"
ENDINIT
VIEWPORT $WINX, $WINY, $WINW, $WINH
MERGE $GEO_WINDOW
$GEO_X=$WINX
$GEO_Y=$WINY
$GEO_W=$WINW
$GEO_H=$WINH
$GEO_T=$WINT 'TITLE
$GEO_D="TRUE" 'TRUE DRAGGING
$GEO_S="FALSE" 'NO RESIZE
ENDMERGE
$PI = 22/7
GPRINT 0,0,"Pi is" + $PI,&hffffff,&h0
Oh, and when's the date of the GUI Awards? I set the bar higher than my last release, Cobra, yeah! | 2009-10-16 | 8:58 AM |
Brandon | Re:Crystal ScriptsSign-ups will begin Dec. 1.
I have a feeling that entering all those variable names is not going to be a lot of fun, it would be a lot easier if you could just pass them as arguements. | 2009-10-16 | 10:57 AM |
Todd | Re:Crystal ScriptsI agree. One convention of writing code is always to make it neat and with as few lines as possible. ;) Again it's up to you but for ease of coding, I'd suggest doing as Brandon said. | 2009-10-16 | 12:54 PM |
jasonwoodland | Re:Crystal Scriptscan i have an example? please? | 2009-10-16 | 6:58 PM |
Brandon | Re:Crystal ScriptsInstead of:
INIT
$WINX=100
$WINY=100
$WINW=600
$WINH=400
$WINT="Test window"
ENDINIT
VIEWPORT $WINX, $WINY, $WINW, $WINH
Should be:
VIEWPORT 100,100,600,400,"Test Window" | 2009-10-16 | 7:31 PM |
jasonwoodland | Re:Crystal ScriptsIt can do both, i set window locations in INIT so i can drag the window. | 2009-10-16 | 7:34 PM |
Brandon | Re:Crystal ScriptsWell the second way is the way people will use probably. | 2009-10-16 | 7:35 PM |
jasonwoodland | Re:Crystal Scriptswhen i release the documentation itll make proper sence, oh, jw, can fun500 make a paint app? | 2009-10-16 | 7:45 PM |
Brandon | Re:Crystal ScriptsWhat do you mean? | 2009-10-16 | 8:57 PM |
jasonwoodland | Re:Crystal ScriptsCrystal, its much more flexible, it handles Hardcode( "hello" ) as well as Memory Stored Data( $Hello ) and numbers in hardcode( 22/7 100 ^2 -54 etc.. ) and numbers can be stored in MSD aswell. ( $twentytwo / 7 * 100 ) is called a formula. | 2009-10-16 | 9:13 PM |
Brandon | Re:Crystal ScriptsBasically you are saying that any parameter for a function in your script can be a variable or even contain math? | 2009-10-17 | 9:39 AM |
jasonwoodland | Re:Crystal ScriptsWell, . yeah, why? | 2009-10-17 | 10:12 AM |
Brandon | Re:Crystal ScriptsThat's a good thing. | 2009-10-17 | 10:18 AM |
jasonwoodland | Re:Crystal Scriptsdoes fun500? | 2009-10-17 | 10:20 AM |
Brandon | Re:Crystal ScriptsWell 5 can use anything because apps are made in BASIC itself. 4 didn't have that functionality. | 2009-10-17 | 11:54 AM |
jasonwoodland | Re:Crystal ScriptsHow can you DIM SHARE something inside a SUB?
Im still working on a ton of documentation. btw | 2009-10-21 | 4:44 AM |
aguma | Re:Crystal ScriptsYou can't DIM SHARE something in a SUB, dim share it in the global scope. I don't see any reason whatsoever that you'd need to do it in a SUB. | 2009-10-21 | 7:14 PM |
jasonwoodland | Re:Crystal ScriptsFor parsing, read how many tokens there are, dimension, then write the tokens. | 2009-10-22 | 12:51 AM |
Brandon | Re:Crystal ScriptsUse REDIM. | 2009-10-22 | 5:37 PM |
GUIs
2021 Brandon Cornell