Recent

Author Topic: Gridlayout  (Read 9307 times)

dirkgraf40

  • New member
  • *
  • Posts: 8
Gridlayout
« on: January 03, 2022, 12:55:09 pm »
I have added a GridLayout component under the visual components.  :)
see -> https://wiki.freepascal.org/Components_and_Code_examples

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Gridlayout
« Reply #1 on: January 03, 2022, 01:33:58 pm »
What is the difference to what can be achieved with the standard ChildSizing property built into every container control such as TPanel, TForm, TGroupbox, TFrame etc.? https://wiki.lazarus.freepascal.org/Autosize_/_Layout#Layout

AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: Gridlayout
« Reply #2 on: January 03, 2022, 02:59:04 pm »
I moved all info about the component here: https://wiki.freepascal.org/GridLayout (and fixed the wiki link).

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Gridlayout
« Reply #3 on: January 03, 2022, 04:01:01 pm »
The component is available only as a zipped file. Hmmm.... Firefox warns me that this might be a security issue because of the unsafe connection. I would feel better if you'd distribute the component as source in github / gitlab / sourceforge or similar.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • Former Delphi 1-7, 10.2 user
Re: Gridlayout
« Reply #4 on: January 03, 2022, 09:46:45 pm »
Hmmm.... Firefox warns me that this might be a security issue because of the unsafe connection.

I changed the Wiki download link to https so FireFox will feel safe :)

dirkgraf40

  • New member
  • *
  • Posts: 8
Re: Gridlayout
« Reply #5 on: January 04, 2022, 04:27:28 pm »
I only need to specify row, column, span and span height for each component and do not need to specify neighbours, etc. The change in width can be locked. (e.g. navigation panel).

I will take some screenshots tomorrow and post them.


dirkgraf40

  • New member
  • *
  • Posts: 8
Re: Gridlayout
« Reply #6 on: January 05, 2022, 09:00:27 am »
Gridlayout, just have a look here (youtube)

https://www.youtube.com/watch?v=XoTzL3rw3O4  8)

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: Gridlayout
« Reply #7 on: January 05, 2022, 09:22:14 am »
What is the difference to what can be achieved with the standard ChildSizing property built into every container control such as TPanel, TForm, TGroupbox, TFrame etc.? https://wiki.lazarus.freepascal.org/Autosize_/_Layout#Layout

It looks a bit more compatible to Delphi's TGridPanel (something that we're still missing), though not completely (e.g. some properties are named differently, the control collection is TControlItem instead of TGridPanelControl, and I think the later misses some properties as well).


dirkgraf40

  • New member
  • *
  • Posts: 8
Re: Gridlayout
« Reply #8 on: January 05, 2022, 12:21:00 pm »
I don't know gridlayout from delphi, I only work under lazarus. But for me the positioning of the components in some cases (especially with windows with many tedit) was too cumbersome.  ::)

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Gridlayout
« Reply #9 on: January 05, 2022, 08:18:47 pm »
Gridlayout, just have a look here (youtube)

https://www.youtube.com/watch?v=XoTzL3rw3O4  8)

Congratulations. This looks very interesting.

It reminds me of JavaFX's GridPane container.

I look forward to trying your control. Thanks for your efforts.

Cheers,

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Soner

  • Sr. Member
  • ****
  • Posts: 305
Re: Gridlayout
« Reply #10 on: January 05, 2022, 10:44:45 pm »
I looked your homepage and I think you chose wrong license for your program.
When your program has gpl licensem, then you must publish source code. Only for LGPL you don't need publish source code of your program.

---
Same in German(because his site is in german):
Ich habe deine Seite angeschaut. Ich glaube, du hast falsche Lizenz für dein Programm gewählt. Wenn du irgend eine Version von GPL wählst, dann musst du die Quelltexte für dein Programm zum Download anbieten. Nur bei GNU Lesser General Public License (LGPL), wie bei Lazarus- und Freepascal-Bibliotheken, muss man Quelltexte nicht freigeben.
Also überlege genau welche Lizenz du wählst, bevor deine Seite bzw. Programm herumspricht. Jemand, das sind meistens Abmahnanwälte, könnte dich zwingen erst Geld zu zahlen, dann Programmquelltext freigeben.
Viel Erfolg mit dein Programm.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4474
  • I like bugs.
Re: Gridlayout
« Reply #11 on: January 06, 2022, 03:12:38 pm »
I looked your homepage and I think you chose wrong license for your program.
When your program has gpl licensem, then you must publish source code. Only for LGPL you don't need publish source code of your program.
The homepage gives an error for me. However there is a 7z archive with source code. No problems there.
You clearly misunderstood LGPL. Source code for an LGPL components must also be published. The rules are identical to GPL in this regard.
The difference is that an LGPL component can be linked to a program that uses a different license, for example a commercial closed license.
GPL code instead "taints" any code it links to, thus forcing all that code to be GPL.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Soner

  • Sr. Member
  • ****
  • Posts: 305
Re: Gridlayout
« Reply #12 on: January 06, 2022, 04:59:02 pm »
I looked your homepage and I think you chose wrong license for your program.
When your program has gpl licensem, then you must publish source code. Only for LGPL you don't need publish source code of your program.
The homepage gives an error for me. However there is a 7z archive with source code. No problems there.
You clearly misunderstood LGPL. Source code for an LGPL components must also be published. The rules are identical to GPL in this regard.
The difference is that an LGPL component can be linked to a program that uses a different license, for example a commercial closed license.
GPL code instead "taints" any code it links to, thus forcing all that code to be GPL.

Juha, I am talking about his program,  not about his component.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4474
  • I like bugs.
Re: Gridlayout
« Reply #13 on: January 06, 2022, 05:17:07 pm »
Juha, I am talking about his program,  not about his component.
Ah, OK.
I didn't see a program. The home page gives an error:
---
Error 403: your request was denied
Possible causes for this error are:

No index page (e.g. index.php or index.html) was found
Your request was denied by our web application firewall. In case you are the operator of this website, you are able customize or disable the Web Application Firewall in our control panel.
---
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dirkgraf40

  • New member
  • *
  • Posts: 8
Re: Gridlayout
« Reply #14 on: January 06, 2022, 05:27:04 pm »
I think, the licence is correct. But thank you for the tip Soner  :).

The program is intended only for dental laboratories located or billing in Germany.

The source code has been published here.
On the main page under the heading "Quelltext".

https://www.lz-dent.de/de/doku.php?id=source.source

I will also publish it on Github soon.
« Last Edit: January 06, 2022, 05:53:29 pm by dirkgraf40 »

 

TinyPortal © 2005-2018