Home | Reviews | GUIpedia | Forum | Fun500


agumaProblem with gui
Can somebody plz check the code in FAROSB.BAS and see what's wrong with the button code? Thanks! Link because for some reason it won't let me upload: [url=http://uppit.com/SD9AVQ]http://uppit.com/SD9AVQ[/url]
2008-07-085:39 PM

BrandonRe:Problem with gui
1. I recommend breaking the code into separate BASIC files and including them, it makes for shorter code, and short code is nicer to look at. 2. I couldn't get the thing to run, and I tried to fix it some but I give up, and looking at the code I have no idea where to look.
2008-07-085:52 PM

agumaRe:Problem with gui
well in my opinion using different modules just makes it confusing. BTW: How did you reply so quick!?!?
2008-07-085:54 PM

BrandonRe:Problem with gui
I have DOSEMU, A decent connection, and QB with future lib so all I had to do was download (I have no life. If you see all the computers I have you'll understand)
2008-07-086:12 PM

agumaRe:Problem with gui
why not dosbox? dosbox is cool.
2008-07-086:59 PM

BrandonRe:Problem with gui
I have both, I just prefer DOSEMU
2008-07-087:04 PM

MystikShadowsRe:Problem with gui
My first question about your code, why are you recursing DrawBtn? What is the purpose in the big picture? It doesn't look like you need that there. What happens if you take the call to drawbtn between the mouseoff and mouse on (at the end of the DrawBtn sub) I don't have the future lib setup and all so I can't test that myself right now. Let me know if it's really needed and what happens when you take that out (comment it out for now).
2008-07-089:20 PM

agumaRe:Problem with gui
I've decided to release the beta, even though it's terrible right now. You code it like you do in GIMI. Example: #PAINT DRAWWIN FONT 20 20 I'm bored. G: GOTO G
2008-07-0810:59 PM

MPNQBRe:Problem with gui
You don't need to do things like that. RealScript, the scripter I designed for my GUIs, is comma-separated. This: #PAINT DRAWWIN FONT 20 20 I'm bored. G: GOTO G Can also be this: #PAINT DRAWWIN FONT,20,20,"I'm bored." G: GOTO,G That looks better and does the same thing. In fact, if you copied and pasted that into a script, it would run on your existing kernel in the same manner, without modification.
2008-07-0811:03 PM

BrandonRe:Problem with gui
Yeah EZ Script is comma separated and works like MPNQB says, But EZ Script II will be very QB like.
2008-07-0811:30 PM

agumaRe:Problem with gui
Yeah I figured someone would note that :P Here's the link: [url=http://uppit.com/R93DI2]http://uppit.com/R93DI2[/url] And a (bad) snapshot: [img size=640]http://qbguiblog.xetaspace.net/images/fbfiles/images/SNAPSHOT.GIF[/img]
2008-07-0811:37 PM

ToddRe:Problem with gui
Reminds me of an Atari-based GUI.
2008-07-0811:44 PM

BrandonRe:Problem with gui
Holy Shit!! I love it!! No, but I like the look its a dark retro type look, very cool.
2008-07-098:47 AM

MystikShadowsRe:Problem with gui
Very nice, there's somethign about the dark gray over the cyan background I really like. ANd yeah it does look like the GEN user interface (as can be seen on the Atari ST) and I loved that GEM GUI too. I can't wait to see more.
2008-07-098:57 AM

ToddRe:Problem with gui
It kinda reminds me of something I'd see in a computer kiosk at some department store. ;)
2008-07-099:12 AM

jasonwoodlandRe:Problem with gui
Stylish to the MAX! Cobra looks really wierd now. Mine looks really bland. [img size=150]http://kigon07.googlepages.com/screenshotofcobra.PNG/screenshotofcobra-full;init:.PNG[/img] I only got task swapping!
2008-07-099:50 AM

BrandonRe:Problem with gui
Yep Jason, kill the grey!
2008-07-0910:04 AM

agumaRe:Problem with gui
What should I put in it?
2008-07-097:02 PM

jasonwoodlandRe:Problem with gui
[b]Brandon wrote:[/b] [quote]Yep Jason, kill the grey![/quote] What Grey? A Paint program, notepad and a Edit would be good. I go for simple stuff.
2008-07-103:15 AM

BrandonRe:Problem with gui
The windows in cobra are all that ugly grey.
2008-07-108:47 AM

ToddRe:Problem with gui
Personally, I don't mind it. But maybe try something in blue. Like "aqua" windows with slightly darker blue borders and outlines.
2008-07-109:15 AM

BrandonRe:Problem with gui
Well M-OS is a Windows look alike, so you like anything. I prefer something elegant and new.
2008-07-1010:01 AM

jasonwoodlandRe:Problem with gui
I'm Going for thr Red-tinged window. Blue makes you calm and it's not working condidions. Green is slime. Red is an alert, angry color. But it ain't uber red is it?
2008-07-1010:15 AM

ToddRe:Problem with gui
Yes I'm boring. lol
2008-07-1010:48 AM

agumaRe:Problem with gui
okay now i got another problem: the window z-ordering works fine, but the buttons always are on top of everything else!!! Does anybody know why this is happening???
2008-07-2212:06 PM

ToddRe:Problem with gui
Do your buttons have a property assigned to them with the value of the window ID they were created on? Just tell it to display buttons from each window (in Z-order) so the window on top will have buttons that will display and not the ones on the other windows.
2008-07-2212:12 PM

agumaRe:Problem with gui
well theres code to make a button, and it just draws it. nothing else happens. so basically it goes like this: 1. DRAWWIN for program 1 2. DRAWWIN for program 2 3. BTN for program 1 4. BTN for program 2
2008-07-2212:21 PM

ToddRe:Problem with gui
Try something like this: [code] TYPE TWin x AS INTEGER y AS INTEGER x2 AS INTEGER y2 AS INTEGER active AS INTEGER END TYPE TYPE TBtn x AS INTEGER y AS INTEGER w AS INTEGER h AS INTEGER win AS INTEGER 'WINDOW ASSIGNMENT (WINDOW ID) END TYPE DIM wins(100) AS TWin DIM btns(100) AS TBtn DIM cbtns(100) AS STRING 'BUTTON CAPTIONS DIM cwins(100) AS STRING 'WINDOW CAPTIONS [/code]
2008-07-2212:28 PM

agumaRe:Problem with gui
I guess that would work. Thanks! :)
2008-07-2212:31 PM

ToddRe:Problem with gui
So when a button is created, you would put in a value for the window for which the button will exist. Then tell it to draw all buttons where the "win" property is the ID of the window you wish to draw.
2008-07-2212:34 PM

agumaRe:Problem with gui
well actually i messed all the code up doing that, but i somehow got it to work while doing that. Weird, but thanks! :P
2008-07-2212:43 PM

BrandonRe:Problem with gui
Basically when you make an object give it a windowID and then when you draw the window draw all its objects.
2008-07-221:00 PM

ToddRe:Problem with gui
Exactly. In fact, for all window objects (edit boxes, memo boxes, radio buttons, check boxes, etc.) give them window IDs too.
2008-07-221:06 PM

BrandonRe:Problem with gui
[quote]an object[/quote] thats what I said.
2008-07-221:08 PM

ToddRe:Problem with gui
I thought you meant "button." But oh well.
2008-07-221:44 PM

agumaRe:Problem with gui
Yay! Well, maybe, not so yay-ish. Well, I found another bug in the Z-ordering: the TEXT is on top of everything else! Same problem, but obviously I'm gonna need a different solution. Can anybody help?
2008-07-2311:18 AM

BrandonRe:Problem with gui
make the text be an object assigned to a window. Try it with its window.
2008-07-2311:25 AM

ToddRe:Problem with gui
Also tell the text to be drawn the same time as the buttons and other objects, AND IN ORDER BY THEIR WINDOW'S Z-ORDER.
2008-07-2311:31 AM

agumaRe:Problem with gui
Yay for problems with GUIs! Anyway I got a problem with Spark. Since the buttons are single scripted (DIM SHARED Buttons(1 to 50) as ObjType), it'll be hard to, well, do that in my scripting language. I could double it like DIM SHARED Buttons(1 to 50,Progs) but that would take up too much memory and I'd have to change everything around. Whaddo I do!?
2008-09-1610:41 PM

GUIs


2021 Brandon Cornell