Recent

Author Topic: [SOLVED] Custom form  (Read 25252 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Custom form
« Reply #30 on: December 19, 2021, 02:17:39 am »
whats the url for 7e1fcc4033
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

dsiders

  • Hero Member
  • *****
  • Posts: 1677
Re: Custom form
« Reply #31 on: December 19, 2021, 04:15:00 am »

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Custom form
« Reply #32 on: December 19, 2021, 07:29:19 am »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4720
  • I like bugs.
Re: Custom form
« Reply #33 on: December 19, 2021, 11:34:45 am »
what next?
Assuming you have FPC installed, build the new sources with "make".
You can also copy the Project Templates package directory into your existing Lazarus installation and rebuild that.
In long-term I recommend you learn to use Git and build the sources. It is important for testing new features and for reporting bugs. Now trunk is so much ahead of 2.12 that you will be positively surprised.
Hint: TortoiseGit seems to work well on Windows.
« Last Edit: December 19, 2021, 11:50:55 am by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Custom form
« Reply #34 on: December 19, 2021, 12:00:23 pm »
isnt make a -nix thing?

what package templates directory? have i downloaded the right thing?

https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/main/lazarus-main.zip


How do I install \components\packagetemplates" into the IDE?

Ive got a clean install of 2.0.12

I overwrite c:\lazarus\components\packagetemplates with \components\packagetemplates from the zip

I try to rebuild the IDE and get the error

projtemplates.pas(11,3) Fatal: Cannot find LazarusPackageIntf used by ProjTemplates. Check if package FCL is in the dependencies of package ProjTemplates.
« Last Edit: December 19, 2021, 01:22:24 pm by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4720
  • I like bugs.
Re: Custom form
« Reply #35 on: December 19, 2021, 01:22:51 pm »
How do I install \components\packagetemplates" into the IDE?
Ive got a clean install of 2.0.12
I understood you have it installed already. How could you test it otherwise?
After replacing the packagetemplates directory, just rebuild the IDE.

When you get a compilation error, first try a clean build.
If it does not help, then you must build the trunk sources which I strongly recommend anyways.
It is super easy. FPC being installed, just run "make" (*) and then start lazarus.exe from its location. No installation is needed.
I am actually surprised you didn't try it during your 8+ years at this forum.

(*) Delphi comes with its own incompatible "make". You must delete or rename it if you have Delphi.
« Last Edit: December 19, 2021, 01:35:27 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Custom form
« Reply #36 on: December 19, 2021, 01:34:19 pm »
first must add FCL to project requirements, then it builds OK.

Where do I set the project templates directory?
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4720
  • I like bugs.
Re: Custom form
« Reply #37 on: December 19, 2021, 01:37:28 pm »
Where do I set the project templates directory?
Tools -> Project templates options ...
It should be moved under the global options window but that is not urgent.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Custom form
« Reply #38 on: December 19, 2021, 01:46:15 pm »
Menu not there
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Custom form
« Reply #39 on: December 19, 2021, 01:57:57 pm »
I am actually surprised you didn't try it during your 8+ years at this forum.

My iPad still has iOS 7. I'm not a person who must have the latest version. Just prefer a working version.
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Custom form
« Reply #40 on: December 19, 2021, 02:09:35 pm »
Menu not there

Hmm, did you build with "bigide" ?  If not, you can easily add it as a package, Package->Install/Uninstall and find "ProjTemplates 1.0" on the right hand side, select it, click "Install Selection" and do the rebuild thing.

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4720
  • I like bugs.
Re: Custom form
« Reply #41 on: December 19, 2021, 02:33:27 pm »
Hmm, did you build with "bigide" ?  If not, you can easily add it as a package, Package->Install/Uninstall and find "ProjTemplates 1.0" on the right hand side, select it, click "Install Selection" and do the rebuild thing.
Yes, that applies when building Lazarus trunk sources. I thought he is still building the old 2.0.12 with a new copy of ProjTemplates.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Custom form
« Reply #42 on: December 19, 2021, 02:39:55 pm »
I AM STILL USING 2.0.12

After doing what dbannon suggested I still dont get the menu item, and the package is installed.
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4720
  • I like bugs.
Re: Custom form
« Reply #43 on: December 19, 2021, 02:48:18 pm »
I AM STILL USING 2.0.12
After doing what dbannon suggested I still dont get the menu item, and the package is installed.
There must be a change in the menu registration system. Don't know.
Then you must build trunk sources (which I recommended many times).

I'm not a person who must have the latest version. Just prefer a working version.
That sounds funny after reading this whole forum thread.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

jamie

  • Hero Member
  • *****
  • Posts: 7891
Re: Custom form
« Reply #44 on: December 19, 2021, 03:39:25 pm »
After reviewing your post here it seems you are looking to use lazarus in a controlled environment where you can selectively force a default base project.

 Delphi has or had premade Dialog forms you could start with that had some buttons already on them and from there you could just add on to it.

 Years I took and made a Project manager tool where as you can select premade base projects as new projects and force the programmer to fill in some basic needs like company info, date info etc.

  In your case you could do the same, make a Project manager tool that would either select a new project from one of your own premade starters which would simply make a copy of all contents over to a new folder and then ask for a few details to fill in the blanks.

 Also This same tool preps a project and configures which fields need to be filled in on first time around so that each time a new project is started using one of these starters, these fields get filled out. This is all GUI interface stuff.

 The manager also allows you to simply start an existing project too of course. The manager from here on would simply start the IDE DEV system with the project to open on the command line , new or existing one..

 Is this what you are looking for ?


 
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018