Forms within Forms
Forms within Forms
Hi, new to PureBasic, was wondering if there was a way to have a list of forms (Child forms) in a scrolling area on a parent form. I wasn't sure how to search for this and was hoping someone could point me in the right direction.
Re: Forms within Forms
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: Forms within Forms
Thanks, looks promising, any examples on how to achieve this with a form as opposed to a gadget?
-
- Addict
- Posts: 4527
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Forms within Forms
What do you mean with
I never have read the word "form" in the PureBasic documentation.
?a form as opposed to a gadget
I never have read the word "form" in the PureBasic documentation.
Re: Forms within Forms
I think we're struggling to understand what it is that you're trying to achieve. Can you suggest an example of a program that already has a design similar to what you're trying to achieve? Or can you post a link to an image that shows something like it?
Re: Forms within Forms
Sorry guys, yes I'm attempting to re-program my older application so it can be run on modern OSs , what Im after is this:
So each line is a PBF (form?) Can a PBF be a gadget?
So each line is a PBF (form?) Can a PBF be a gadget?
Last edited by tikidays on Wed Oct 25, 2023 7:07 pm, edited 1 time in total.
-
- Addict
- Posts: 4527
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Forms within Forms
The image is not visible here.tikidays wrote: Sorry guys, yes I'm attempting to re-program my older application so it can be run on modern OSs , what Im after is this:
I actually wasn't aware of the fact that those things in PureBasic are called "forms". My mistake, sorry!tikidays wrote: So each line is a PBF (form?) Can a PBF be a gadget?
A "form" is just a window that may contain several gadgets. You can create it with the built-in "form designer", or you can achieve the same result by writing the respective code by hand.
So no, a PBF file contains gadgets, but it cannot be a gadget.
Last edited by Little John on Wed Oct 25, 2023 6:55 pm, edited 1 time in total.
Re: Forms within Forms
The simple form designer from Purebasic creates a code with a window and gadget controls.
This is recreated each time it is edited with the Form Designer.
In another file, for example Main.pb, include the file for example FormMain.pbf and call the procedure OpenFormMain to open the window (form).
See Purebasic help: https://www.purebasic.com/documentation ... _form.html
This is recreated each time it is edited with the Form Designer.
In another file, for example Main.pb, include the file for example FormMain.pbf and call the procedure OpenFormMain to open the window (form).
See Purebasic help: https://www.purebasic.com/documentation ... _form.html
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Forms within Forms
Not sure why the image is not showing, this better?
Regardless thanks for the feedback! Ill tackle it another way.
Regardless thanks for the feedback! Ill tackle it another way.
Re: Forms within Forms
403. That’s an error.
Your client does not have permission to get URL /2NK5kGzKSqryDYiy96QY1XMuHg-cC3DX-fqjedLXVu0uaZJPRfDGnnyrZYbepBmt3YmRbmFDmMJ9WwPezH1aKOrIfJ6UcqUabghZhfrvySyRZN6jHvpGIu-RQ9U6jIU99A=w1280 from this server. (Client IP address: 91.38.150.14)
Forbidden That’s all we know.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive