FreeBasic Games Directory Forum

FreeBASIC Game Development => Work In Progress => Topic started by: neo on March 29, 2013, 04:14:51 PM

Title: how would i make a window from scratch in FB
Post by: neo on March 29, 2013, 04:14:51 PM
how would i make a window from scratch in FB  ?
Title: Re: how would i make a window from scratch in FB
Post by: BadMrBox on March 29, 2013, 06:37:28 PM
What do you mean exactly?
Title: Re: how would i make a window from scratch in FB
Post by: neo on March 29, 2013, 07:52:09 PM


well take a look what i have now

http://www.youtube.com/watch?v=ToYaPQYmhNE&feature=youtu.be

watch in 720p or looks like crap ...
Title: Re: how would i make a window from scratch in FB
Post by: BadMrBox on March 30, 2013, 02:42:43 AM
Oh, I see. I have never dwelled into the matter myself so I cant really help.
I did however find this on FB's forum http://www.freebasic.net/forum/viewtopic.php?f=7&t=2861&p=21649&hilit=+fbgx#p21649
I'm unable to test the example myself as I dont have SDL installed. Check it out. It might help you.
Title: Re: how would i make a window from scratch in FB
Post by: ecxjoe on March 30, 2013, 09:06:02 PM
You've asked a very broad question. What do you want your window to do? Do you want a basic container or something more feature-rich?

It looks like you have most of the functionality there already, with the buttons and start bar. In a Windows program, everything is a window -- buttons and input boxes are just subsets of windows. This makes sense, because they share many of the same properties: location, size, events, etc. So a "window" contains windows that contain windows, and so on. I'd suggest going with this approach. So a window would have the basic properties -- location, size -- and a list of sub-windows (buttons, input-boxes, more windows). When rendering, you cascade down this pyramid of windows.
Title: Re: how would i make a window from scratch in FB
Post by: neo on July 07, 2013, 07:04:09 PM
ps if u know any who wishes to add programs to this interface let me know ?
Title: Re: how would i make a window from scratch in FB
Post by: neo on February 04, 2014, 01:06:42 PM
i think i got the window to work
Title: Re: how would i make a window from scratch in FB
Post by: neo on February 05, 2014, 07:13:30 AM
if i had program 1 running and 1 runs 2 but dont want to close 1
how do i do this ?
Title: Re: how would i make a window from scratch in FB
Post by: neo on July 26, 2014, 11:09:09 AM
i have the starting to the window done now it works well
now i have to make the file menu soon for the windows or box ...