Page 1 of 1

Forms within Forms

Posted: Tue Oct 24, 2023 7:01 am
by tikidays
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

Posted: Tue Oct 24, 2023 7:33 am
by STARGÅTE

Re: Forms within Forms

Posted: Wed Oct 25, 2023 9:05 am
by tikidays
Thanks, looks promising, any examples on how to achieve this with a form as opposed to a gadget?

Re: Forms within Forms

Posted: Wed Oct 25, 2023 1:14 pm
by Little John
What do you mean with
a form as opposed to a gadget
?
I never have read the word "form" in the PureBasic documentation.

Re: Forms within Forms

Posted: Wed Oct 25, 2023 5:50 pm
by spikey
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

Posted: Wed Oct 25, 2023 6:28 pm
by tikidays
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:

Image

So each line is a PBF (form?) Can a PBF be a gadget?

Re: Forms within Forms

Posted: Wed Oct 25, 2023 6:50 pm
by Little John
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:

Image
The image is not visible here.
tikidays wrote: So each line is a PBF (form?) Can a PBF be a gadget?
I actually wasn't aware of the fact that those things in PureBasic are called "forms". My mistake, sorry!
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.

Re: Forms within Forms

Posted: Wed Oct 25, 2023 6:54 pm
by mk-soft
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

Re: Forms within Forms

Posted: Wed Oct 25, 2023 7:08 pm
by tikidays
Not sure why the image is not showing, this better?

Image

Regardless thanks for the feedback! Ill tackle it another way.

Re: Forms within Forms

Posted: Wed Oct 25, 2023 7:24 pm
by mk-soft
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.