Author Topic: Option screen before main screen  (Read 2523 times)

0 Members and 1 Guest are viewing this topic.

Offline Xalthorn

  • Amiga 1200
  • ****
  • Posts: 331
  • Karma: 100
    • View Profile
Option screen before main screen
« 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.
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Option screen before main screen
« Reply #1 on: April 01, 2010 »
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.
« Last Edit: April 01, 2010 by Clyde »
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Xalthorn

  • Amiga 1200
  • ****
  • Posts: 331
  • Karma: 100
    • View Profile
Re: Option screen before main screen
« Reply #2 on: April 01, 2010 »
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 :)
Challenge Trophies Won: