Author Topic: Multiple Forms  (Read 222 times)

Offline MLambert

  • Forum Regular
  • Posts: 101
Multiple Forms
« on: July 25, 2020, 10:30:24 PM »
Hi,

Does Inform create/support multiple forms ?

Mike

Offline TempodiBasic

  • Forum Resident
  • Posts: 1406
Re: Multiple Forms
« Reply #1 on: July 26, 2020, 03:13:04 AM »
Oh dear
read here
https://www.qb64.org/forum/index.php?topic=2519.0
and choose your way
Programming isn't difficult, only it's  consuming time and coffee

Offline MLambert

  • Forum Regular
  • Posts: 101
Re: Multiple Forms
« Reply #2 on: July 26, 2020, 04:34:40 AM »
Thank you for the fast response.

The recipe form was the first i tried.

It does not give me multiple forms ... just a box that I can move around the single form... or maybe I am missing something.

I want Form1 .... Form2 ... Form3 .. with their own individual properties.

Thanks,

Mike

Offline RhoSigma

  • Seasoned Forum Regular
  • Posts: 366
  • Use multiple Desktop windows with GuiTools.
Re: Multiple Forms
« Reply #3 on: July 26, 2020, 04:59:57 AM »
GuiTools does support several forms, each form in its own independend desktop window but still able to allow realtime cross-form interconnections (src_MultiWinDemo).
Interested in my QB64 Stuff?
GuiTools Framework, Blankers, QB64/Notepad++ setup ...
Libraries (MD5/SHA2 hashing, DES56 encryption, LZW packer, File/Data buffers, Image processing, C++ stdlib wrappers and more)
see here: https://www.qb64.org/forum/index.php?topic=809.msg100182#msg100182

Offline TempodiBasic

  • Forum Resident
  • Posts: 1406
Re: Multiple Forms
« Reply #4 on: July 26, 2020, 02:01:18 PM »
@MLambert
Ok your request is impossible for now using Inform... it seems (as you can read in my CookBook about Inform) that the issue is about the QB64 structure and not about Inform developing. More can tell you the Developer of Inform Fellippe Heitoir.
(until QB64 emulates QB45 It can do programs with one window... or you can handle by your own a multiple window system into your program... but you must build it as I build the skeleton of Child Windows into the main window of the program...search into the forum to see something about it.)
PostScriptum:
the second way (that showed by NiktorTheNat) let you use different forms one at time.
And as you can see there is the alternative of GuiTools system.
Programming isn't difficult, only it's  consuming time and coffee

Offline FellippeHeitor

  • QB64 Developer
  • Forum Resident
  • Posts: 2209
  • LET IT = BE
    • QB64.org
Re: Multiple Forms
« Reply #5 on: July 26, 2020, 02:05:08 PM »
Yeah, multiple forms being controlled by the same application are not possible without some sort of "hack" like I've done with InForm itself. The main editor interface is one program and the form you edit is another program, both running simultaneously and exchanging data through a local tcp/ip connection to each other.

RhoSigma's alternative with GuiTools does a similar trick, running the same binary twice and locking processes.

All of this is, as Tempodi said above, to circumvent QB64's own limitation of a single-window approach.

Offline RhoSigma

  • Seasoned Forum Regular
  • Posts: 366
  • Use multiple Desktop windows with GuiTools.
Re: Multiple Forms
« Reply #6 on: July 27, 2020, 03:02:51 AM »
... All of this is, as Tempodi said above, to circumvent QB64's own limitation of a single-window approach.

True, I just wonder why it shouldn't easily possible to implement real multi window support. I mean we already have all we need, we can have multiple images using _NEWIMAGE, _LOADIMAGE etc. and we can designate where to read/write from/to using _SOURCE and _DEST. All we need is another "canvas" (window) to display our images in.

Expanding the SCREEN command with another optional parameter wouldn't even break compatiblity with legacy code, which simply doesn't use the optional argument:
eg. SCREEN {mode%|imagehandle&} [, , active_page, visual_page] [, windownum%]

Although I've no idea how complicated it would be to manage multiple OpenGL surfaces internally regarding _DISPLAY, _AUTODISPLAY etc..
Interested in my QB64 Stuff?
GuiTools Framework, Blankers, QB64/Notepad++ setup ...
Libraries (MD5/SHA2 hashing, DES56 encryption, LZW packer, File/Data buffers, Image processing, C++ stdlib wrappers and more)
see here: https://www.qb64.org/forum/index.php?topic=809.msg100182#msg100182

Offline MLambert

  • Forum Regular
  • Posts: 101
Re: Multiple Forms
« Reply #7 on: July 27, 2020, 05:09:22 AM »
Thanks everyone..

Mike