FreeBasic Games Directory Forum
FreeBASIC Game Development => Work In Progress => Topic started by: neo on March 29, 2013, 04:14:51 PM
-
how would i make a window from scratch in FB ?
-
What do you mean exactly?
-
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 ...
-
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.
-
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.
-
ps if u know any who wishes to add programs to this interface let me know ?
-
i think i got the window to work
-
if i had program 1 running and 1 runs 2 but dont want to close 1
how do i do this ?
-
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 ...