Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A question on using Inform-PE
#1
I'm wanting to use Inform-PE on a couple of projects, so I have a question about how to use it.

The project will need to have several UI's, for instance a menu screen, option screen, game play, inventory etc. So, to switch between these UI's, do I put everything on separate forms and somehow (?) switch forms, or cram all the controls on the same form and hide the controls I'm not using?

Using separate forms make the most sense, but I don't see a obvious way to do it. Have I missed something?
Reply
#2
(Yesterday, 11:43 PM)justsomeguy Wrote: I'm wanting to use Inform-PE on a couple of projects, so I have a question about how to use it.

The project will need to have several UI's, for instance a menu screen, option screen, game play, inventory etc. So, to switch between these UI's, do I put everything on separate forms and somehow (?) switch forms, or cram all the controls on the same form and hide the controls I'm not using?

Using separate forms make the most sense, but I don't see a obvious way to do it. Have I missed something?

No. You are right. Creating multiple forms is currently not possible due to the way QB64 works (i.e. you get only one main graphics window to work with). To work around this, you can:
  1. Cram all controls in the main form and hide the controls that are not being used (this is what the InForm UI Editor does as well).
  2. Write multiple InForm-PE apps (say one for the UI, options etc.) and have them "talk" to each other either using command line arguments or some kind of IPC.
Reply
#3
Yeah or divide and compile into different forms and Run them from central app.
b = b + ...
Reply




Users browsing this thread: 5 Guest(s)