Forms within Forms

You need some new stunning features ? Tell us here.
tikidays
User
User
Posts: 35
Joined: Tue Oct 24, 2023 6:47 am
Location: New Zealand
Contact:

Forms within Forms

Post 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.
User avatar
STARGÅTE
Addict
Addict
Posts: 2042
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Forms within Forms

Post by STARGÅTE »

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 moreTypeface - Sprite-based font include/module
tikidays
User
User
Posts: 35
Joined: Tue Oct 24, 2023 6:47 am
Location: New Zealand
Contact:

Re: Forms within Forms

Post by tikidays »

Thanks, looks promising, any examples on how to achieve this with a form as opposed to a gadget?
Little John
Addict
Addict
Posts: 4514
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Forms within Forms

Post 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.
User avatar
spikey
Enthusiast
Enthusiast
Posts: 573
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: Forms within Forms

Post 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?
tikidays
User
User
Posts: 35
Joined: Tue Oct 24, 2023 6:47 am
Location: New Zealand
Contact:

Re: Forms within Forms

Post 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?
Last edited by tikidays on Wed Oct 25, 2023 7:07 pm, edited 1 time in total.
Little John
Addict
Addict
Posts: 4514
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Forms within Forms

Post 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.
Last edited by Little John on Wed Oct 25, 2023 6:55 pm, edited 1 time in total.
User avatar
mk-soft
Always Here
Always Here
Posts: 5236
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Forms within Forms

Post 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
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
tikidays
User
User
Posts: 35
Joined: Tue Oct 24, 2023 6:47 am
Location: New Zealand
Contact:

Re: Forms within Forms

Post by tikidays »

Not sure why the image is not showing, this better?

Image

Regardless thanks for the feedback! Ill tackle it another way.
User avatar
mk-soft
Always Here
Always Here
Posts: 5236
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Forms within Forms

Post 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.
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
Post Reply