Home | Reviews | GUIpedia | Forum | Fun500


Brandon100 Line GUI Contest 2009
The 100 line GUI contest last year was pretty successful, and the concept is good, it doesn't take much time, and you get that good feeling from making a GUI. To quote last year:[quote]Since this is so restricted, your entry probably won't (and shouldn't) be a fork of your main GUI project. Instead, go ahead and play around a little.[/quote] Parameters: 100 lines or less Open Source (as if I had to write that) QB or FB No Libraries No Colons White Spaces and Whole line comments counted as lines Comments at the end of lines are ok Tips: [quote]2 things I thought of to save lines, for people who are still interested in trying this contest: 1. Use DRAW statements to make windows, etc... They can be scaled and are still only 1 line per statement. Beats using LINEs and PSETs 2. In Qbasic, you can use GOSUB RETURN instead of CALL, SUB, END SUB. It saves one line and doesn't require you to dim shared variables (more lines saved). Just be careful with variable use and you'll be fine. EDIT- For the gosub thing, you'd put a line number at the beginning of the first line of your "sub". Also, it saves another line I hadn't thought about (DECLARES are lines, too)[/quote] Do not enter the same code as you entered last time, if nothing else revise it and make it better. I expect you all to enter, how long will it take you to whip up 100 lines of code? And its summer, most of you are out of or are almost out of school. Contest Deadline: Friday June 26, 12PM EST. Anyone can judge, on the 27th try all the GUIs and rank them best to worst in a PM to me. (I will be away the week of the 29th to the 2nd, and most likely not able to check up on things, so I want to get the contest done.) So go code!!! Multiple entries welcome!
2009-06-136:00 PM

ksrRe:100 Line GUI Contest 2009
OK cool, I'm in. (haven't posted in a while because of exams) edit: Are external files allowed? Such as images or scripts?
2009-06-137:48 PM

Re:100 Line GUI Contest 2009
Can colons be on line numbers for gosub?j
2009-06-142:54 AM

BrandonRe:100 Line GUI Contest 2009
You just can't use them to "cheat" for example: [code]DO:LOOP WHILE INKEY$=""[/code] That is really 2 lines, and isn't allowed.
2009-06-148:17 AM

jasonwoodlandRe:100 Line GUI Contest 2009
ah, ok... can i use data files that include colour schemes and so forth?
2009-06-149:42 AM

BrandonRe:100 Line GUI Contest 2009
Yeah, scripts and config files are ok.
2009-06-141:36 PM

ksrRe:100 Line GUI Contest 2009
For reference, last year's competition: http://theguiblog.com/index.php?option=com_kunena&Itemid=44&func=view&catid=3&id=1537
2009-06-152:01 PM

agumaRe:100 Line GUI Contest 2009
My submission: http://www.filefactory.com/file/ag7a8aa/n/100line_zip
2009-06-166:01 PM

ksrRe:100 Line GUI Contest 2009
This was fun. I used DRAW to draw the windows - thanks for that tip! I also used a little trick to get the windowing code down to about 20 lines. The DOS prompt is pretty useless, only good for things like dir and time /t. But it looks good :P http://file-pasta.com/file/ksr-100lines.zip
2009-06-177:49 PM

agumaRe:100 Line GUI Contest 2009
aw man, that's so much better than my cheap one...:P
2009-06-186:45 PM

Re:100 Line GUI Contest 2009
:( Aguma's does not work at all for me, and KSR's only shows a mouse. ?
2009-06-188:56 PM

BrandonRe:100 Line GUI Contest 2009
Please test in real MS-DOS. I haven't tested to know if they work, but DOSBox isn't the same.
2009-06-1912:08 PM

ksrRe:100 Line GUI Contest 2009
We are both using FB for windows :P I'm not sure why it's not working, but I forgot to mention if you are compiling the source use -lang deprecated.
2009-06-192:05 PM

BrandonRe:100 Line GUI Contest 2009
Well I'm testing in DOS, as this is a DOS GUI site, and considering the GUI must be open source, I should be able to compile in FBDOS just fine.
2009-06-193:17 PM

BrandonRe:100 Line GUI Contest 2009
My Entry (#1): [file name=KGUI.zip size=61165]http://theguiblog.com/images/fbfiles/files/KGUI.zip[/file] Its compiled for Windows :P
2009-06-224:35 PM

Re:100 Line GUI Contest 2009
KGUI is already taken :laugh:
2009-06-228:56 PM

BrandonRe:100 Line GUI Contest 2009
IDK I don't see another GUI called KGUI, I'm assuming if there was that It would be on DataComponents.
2009-06-229:12 PM

Brandon1 More Day in 100 Line GUI Contest 2009
3 Entries? Come on! So I am pushing the deadline back to tonight at 12PM EST and we'll judge tomorrow. People who should enter :P :Todd,Trolly,Jason not to name names or anything :P
2009-06-278:28 AM

pharoahRe:1 More Day in 100 Line GUI Contest 2009
Well, here's the code for my scripter so far. It works pretty well, I've tested most of the commands. Unfortunately it'll take me at least another day to get the compiler done and some interesting demo scripts working, but I figured I'd submit my code now. I might add more features (I have a couple of lines still) but this is the essence of it. The scripter has these commands BTW: [code] Command Action ------- ------ "" Push literal j Conditional jump b Conditional branch J Jump B Branch r Return d Display k Get key buffer M Get click from mouse queue @ Set window location and size x Execute script C Copy X Cut h Heap allot s Heap store f Heap fetch D Drop . Concatenate + Add - Subtract * Multiply / Divide & And | Or ~ Not > Greater than < Less than = Equal to c Ascii code to character a Character to ascii code m Mid l String length S Save L Load $ Shell q Quantitative equality ) Greater or equal ( Less or equal v Return contents of disp buffer[/code] EDIT - Damn forum wouldn't let me post this as a .bas file so you'll have to rename it. [file name=tinygui.txt size=9349]http://theguiblog.com/images/fbfiles/files/tinygui.txt[/file]
2009-06-2711:48 PM

BrandonRe:1 More Day in 100 Line GUI Contest 2009
Entry is now locked. Please rank the GUI's best to worst, once I have 3 other opinions, I'll release the results.
2009-06-2810:11 AM

ksrRe:1 More Day in 100 Line GUI Contest 2009
Are we voting now? Pharaoh said that's not his final entry.
2009-06-2812:45 PM

BrandonRe:1 More Day in 100 Line GUI Contest 2009
A deadline is a deadline, I even extended it. So we'll have to go based on what he entered.
2009-06-281:41 PM

pharoahRe:1 More Day in 100 Line GUI Contest 2009
Fair enough... I'm still working on this GUI anyway though b/c it's fun to do. Basically all I did is fix a bug with the branch instruction and I'm writing a script compiler and graphical UI toolkit.
2009-06-283:07 PM

BrandonRe:1 More Day in 100 Line GUI Contest 2009
Come on guys, try the entries and rank them, so I can compile the results.
2009-06-306:20 PM

SonicBritRe:1 More Day in 100 Line GUI Contest 2009
1. KSR 2. Brandon 3. Aguma 1. KSR - Had 3 windows, 1st window inverted what was behind it, 2nd allowed you to type into it, 3 was a dos prompt that displayed output from a command. 2. Brandon - Had 1 window, a button, 2 options and a text box. 3. Aguma - Had a scripting language, displayed a window with 3 command buttons.
2009-06-308:55 PM

Brandon100 Line GUI Contest 2009 Results
After counting up the ballots, KSR 100 Line wins.
2009-07-034:07 PM

ksrRe:100 Line GUI Contest 2009 Results
Yay :P Although only 1 person voted? :P I don't know if anyone looked at my code, but to get a fairly decent windowing engine in that amount of space, I used a dirty little trick :P The title bar of each window is a slightly different shade to the others. When the mouse is clicked, point(mx,my) gets the colour under the mouse pointer and straight away that tells you what window is being clicked. A cleaner, though slower way to do this on a full GUI would be to use a separate 'mask' buffer.
2009-07-036:12 PM

BrandonRe:100 Line GUI Contest 2009 Results
Actually 3 people did, Sonicbrit was the only to publicly announce his vote.
2009-07-036:34 PM

Blog


2021 Brandon Cornell