Home | Reviews | GUIpedia | Forum | Fun500
aguma | Problem with guiCan 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-08 | 5:39 PM |
Brandon | Re:Problem with gui1. 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-08 | 5:52 PM |
aguma | Re:Problem with guiwell in my opinion using different modules just makes it confusing.
BTW: How did you reply so quick!?!? | 2008-07-08 | 5:54 PM |
Brandon | Re:Problem with guiI 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-08 | 6:12 PM |
aguma | Re:Problem with guiwhy not dosbox? dosbox is cool. | 2008-07-08 | 6:59 PM |
Brandon | Re:Problem with guiI have both, I just prefer DOSEMU | 2008-07-08 | 7:04 PM |
MystikShadows | Re:Problem with guiMy 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-08 | 9:20 PM |
aguma | Re:Problem with guiI'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-08 | 10:59 PM |
MPNQB | Re:Problem with guiYou 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-08 | 11:03 PM |
Brandon | Re:Problem with guiYeah EZ Script is comma separated and works like MPNQB says, But EZ Script II will be very QB like. | 2008-07-08 | 11:30 PM |
aguma | Re:Problem with guiYeah 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-08 | 11:37 PM |
Todd | Re:Problem with guiReminds me of an Atari-based GUI. | 2008-07-08 | 11:44 PM |
Brandon | Re:Problem with guiHoly Shit!! I love it!! No, but I like the look its a dark retro type look, very cool. | 2008-07-09 | 8:47 AM |
MystikShadows | Re:Problem with guiVery 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-09 | 8:57 AM |
Todd | Re:Problem with guiIt kinda reminds me of something I'd see in a computer kiosk at some department store. ;) | 2008-07-09 | 9:12 AM |
jasonwoodland | Re:Problem with guiStylish 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-09 | 9:50 AM |
Brandon | Re:Problem with guiYep Jason, kill the grey! | 2008-07-09 | 10:04 AM |
aguma | Re:Problem with guiWhat should I put in it? | 2008-07-09 | 7:02 PM |
jasonwoodland | Re: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-10 | 3:15 AM |
Brandon | Re:Problem with guiThe windows in cobra are all that ugly grey. | 2008-07-10 | 8:47 AM |
Todd | Re:Problem with guiPersonally, I don't mind it. But maybe try something in blue. Like "aqua" windows with slightly darker blue borders and outlines. | 2008-07-10 | 9:15 AM |
Brandon | Re:Problem with guiWell M-OS is a Windows look alike, so you like anything. I prefer something elegant and new. | 2008-07-10 | 10:01 AM |
jasonwoodland | Re:Problem with guiI'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-10 | 10:15 AM |
Todd | Re:Problem with guiYes I'm boring. lol | 2008-07-10 | 10:48 AM |
aguma | Re:Problem with guiokay 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-22 | 12:06 PM |
Todd | Re:Problem with guiDo 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-22 | 12:12 PM |
aguma | Re:Problem with guiwell 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-22 | 12:21 PM |
Todd | Re:Problem with guiTry 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-22 | 12:28 PM |
aguma | Re:Problem with guiI guess that would work.
Thanks! :) | 2008-07-22 | 12:31 PM |
Todd | Re:Problem with guiSo 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-22 | 12:34 PM |
aguma | Re:Problem with guiwell 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-22 | 12:43 PM |
Brandon | Re:Problem with guiBasically when you make an object give it a windowID and then when you draw the window draw all its objects. | 2008-07-22 | 1:00 PM |
Todd | Re:Problem with guiExactly. In fact, for all window objects (edit boxes, memo boxes, radio buttons, check boxes, etc.) give them window IDs too. | 2008-07-22 | 1:06 PM |
Brandon | Re:Problem with gui[quote]an object[/quote] thats what I said. | 2008-07-22 | 1:08 PM |
Todd | Re:Problem with guiI thought you meant "button." But oh well. | 2008-07-22 | 1:44 PM |
aguma | Re:Problem with guiYay! 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-23 | 11:18 AM |
Brandon | Re:Problem with guimake the text be an object assigned to a window. Try it with its window. | 2008-07-23 | 11:25 AM |
Todd | Re:Problem with guiAlso 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-23 | 11:31 AM |
aguma | Re:Problem with guiYay 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-16 | 10:41 PM |
GUIs
2021 Brandon Cornell