Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: Xalthorn on April 01, 2010
-
I might be missing something obvious (it wouldn't be the first time) but does anyone know if Freebasic can open and close screens as it needs them through the execution of the program?
What I want to do is have an initial option screen open when the program runs, and based on those options, the main screen will vary.
I could drop into the windows api to do some stuff with windows, but it would be nice if freebasic could do it already.
-
I've done this in the past with some stuff that hasn't been released. And that is to open a graphics window be it tiny ptc or fb gfx, and using the area or regions of your rectangles based on the position of images used for your required option.
And then check wever the mouse is over one and if a clicks been made the selection changes for that particular options variable.
When start has been clicked on that then takes you to the main event, obviously you'd need to close the gfx window session for the options and make a new one, you probably could resize it in fbgfx.
hope that helps and makes sense,
Clyde.
-
That helps a lot, thanks. I wasn't actually using tinyptc in this one, but adding that simply for the open and close window control is worth it :)