Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / is using a seperate exe a bad idea?

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 12th Mar 2009 18:41 Edited at: 12th Mar 2009 18:44
well i was messing around with my paint program and i added settings but as a seperate program that i run (its a 400x300 screen with a grey background so it looks like another window) is this a good or a bad idea? lol just wondering?


i know i said before i didn't want to use seperate exes but i couldn't find anything that looked really windowsey lol and my forms arn't done yet
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 12th Mar 2009 22:10 Edited at: 12th Mar 2009 22:11
Quote: "my forms arn't done yet"


SOLUTION: Finish them!

[/smartass]

Anyways, what's in the separate window? What does it do? Why is it important? Do you like jellybeans? Why does it need to be in a separate window? Why does it have to look like windows forms? What's your favorite flavor? And finally...

[img]
http://s690.photobucket.com/albums/vv261/quirkyjim/arbiterchewbacca.png[/img]

~QJ
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 12th Mar 2009 23:50
Quote: "http://s690.photobucket.com/albums/vv261/quirkyjim/arbiterchewbacca.png"


FAIL!

And to answer your question, I don't think this would be a good idea. A better way would be to simply finish your forms (I think there is some problem with running multiple DB programs at once, but I may be wrong). Are you having trouble with them? Or are you just running out of steam?

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 13th Mar 2009 01:10
@quirkyjim

This is temerary till i finish them.

1. Settings
2. Changes settings lol
3. ummm i like user input lol
4. YES!
5. I like the look of the windows forms
6. ^
7. Dr. Pepper/Purple

The Code is simple. And my question isn't about the code it's your oppinion on if i should do something a certain way lol


@BN2

Fail? lol

Thats what i figured. Like i said its a fill in i was just wondering what people though.

Well I just realized my forms need to be completely re-done cuz the way i was doing it is going to use literaly hundreds of images :/ whoops so i'm in the process and its going to be a little while and i just need a fill in that will look ok because everything else is pretty much done on my paint program.

I am actually having a little problem. Latch suggested using one image for all the forms but how would i do that if the forms are all different sizes????? thats whats stumping me.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 13th Mar 2009 03:00
Perhaps 1 image which would be the main part. One for the top bar. Then one for the button set. The first one can be scaled in both directions, while the second is only scaled in the x direction. The buttons would just be placed at the top right (for the X button and the _ button).

Add text and you have a form.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 13th Mar 2009 04:19
ok so let me be sure i have this right?

use one image with just the title and scale it for my needs.
use a image for the button(i would say 640 wide haha just to be sure) and scale it for use
And of course use one for the exit button.


what about the form itself(the window part)

or did you mean have the title one have that in it?
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 13th Mar 2009 10:42
No, I mean:

Image 1 is pre-made as a square and is the window (minus any top bar)
Image 2 is the title bar without the title (just the bar colors to be scaled in the x direction to fit the window)
Image 3 is the buttons in the corner for X,_,etc

You can then just use TEXT to place the text above the Title Bar

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 13th Mar 2009 16:03
oh ok i get it sorry lol.


Thanks i'll beging trying this method now

New Site! Check it out \/
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 13th Mar 2009 17:26
Pretty much like BN2 outlined. You have functions or stored images of the controls that can make up any form. You add and recombine these components to create your forms. The more dynamic your app (the more all the forms and buttons change) the more redrawing it will take. That is why I said before to store the main "look" of your app as it's own bitmap, and copy it to bitmap 0. If there are 4 or 5 windows overlayed, there's no point in redrawing all of them so you just copy a bitmap of the whole window with them already drawn. If you have to change the order of the windows, then you redraw and save the new screen to the offscreen bitmap. Whenever you want to write in a text box, or click on a button, that is when you redraw (on bitmap 0) that single component. The following example draws a form and lets you click on a button.

It's not pretty, but get's the idea across. Of course you would have to manage a system of keeping track of forms, buttons, text boxes, etc. and have return values when something is clicked or when the mouse hovers over it.



Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 13th Mar 2009 17:41 Edited at: 13th Mar 2009 19:07
Thanks to both of you

I will Keep working on this.


!!Edit!!

ok i have worked with this and heres what i have. you can create more than one window. color the title. color the window. make button(s) and i started working on a priority type thing where when you call window you can say weather its infront or not. but it only works with window 1 i don't know why though. next i'm going to work on moving the window.


i think this is good for a hours worth of work lol


New Site! Check it out \/
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 13th Mar 2009 21:51
Two things:

1) YES! Working buttons! Well done, Caleb.

2) Checking out the new site...oh, it doesn't seem to be there...

~QJ
That's what they WANT you to think...
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 14th Mar 2009 00:25 Edited at: 14th Mar 2009 18:27
haaha thanks. not that impressive but its getting there.

oh thats odd. i put it in my info. stupid technoligy lololol



edit:

fixed the site thing(btw i just got it so its not the best yet lol)


Edit2:

Ok I have been trying to use a saved image and just scale it but it won't work. this is how i'm trying to do it. take a sprite of the image. size the sprite to how much i need then paste the sprite and get the image of it then paste that image to the bitmap.
is that right? its not working

New Site! Check it out \/

Login to post a reply

Server time is: 2025-05-16 20:59:23
Your offset time is: 2025-05-16 20:59:23