Recent

Author Topic: splashabout component  (Read 4245 times)

lawman

  • New Member
  • *
  • Posts: 43
splashabout component
« on: January 23, 2020, 10:02:50 pm »
Hi,

Complete newbie here.

trying to create first app with splashform.

There's 2 components I can see which do this..

1. splashform https://wiki.freepascal.org/SplashAbout#Installation
2. powered by

When I download splashabout and open/compile the lpk file i get following errors

Quote
Compile package splashabout 1.4.3: Exit code 1, Errors: 20
uversion.pas(111,5) Error: Identifier not found "lpGtk"
uversion.pas(111,10) Error: Constant Expression expected
uversion.pas(112,5) Error: Identifier not found "lpGtk2"
uversion.pas(112,11) Error: Constant Expression expected
uversion.pas(112,11) Error: duplicate case label
uversion.pas(113,5) Error: Identifier not found "lpWin32"
uversion.pas(113,12) Error: Constant Expression expected
uversion.pas(113,12) Error: duplicate case label
uversion.pas(114,5) Error: Identifier not found "lpWinCE"
uversion.pas(114,12) Error: Constant Expression expected
uversion.pas(114,12) Error: duplicate case label
uversion.pas(115,5) Error: Identifier not found "lpCarbon"
uversion.pas(115,13) Error: Constant Expression expected
uversion.pas(115,13) Error: duplicate case label
uversion.pas(116,5) Error: Identifier not found "lpQT"
uversion.pas(116,9) Error: Constant Expression expected
uversion.pas(116,9) Error: duplicate case label
uversion.pas(117,5) Error: Identifier not found "lpfpGUI"
uversion.pas(117,12) Error: Constant Expression expected
uversion.pas(117,12) Error: duplicate case label

I'm using manjaro linux 64bit, but compatibility doesn't seem to include 64 bit linux

Quote
Compatability

    Lazarus 0.9x/1.x/fpc 2.x
    Windows and Linux
    Tested on Windows 7 (32-bit and 64-bit builds) and Linux 32-bit

How do I resolve this or any other way to have a splash form.

Thanks

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: splashabout component
« Reply #1 on: January 23, 2020, 10:51:19 pm »
I reworked the component to remove "PoweredBy" and made a few other changes.

The code is still rather messy, but the attached folder has the necessary files, and a .lpk which you can use to install a working splash screen component on the component palette (it registers the new component on the Additional page).
Drop a TSplashAbout on your main form, set its properties as desired, double-click the main form to generate an OnCreate handler and complete the skeleton code as follows:
Code: Pascal  [Select][+][-]
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. begin
  3.   SplashAbout1.ShowSplash;
  4. end;



lawman

  • New Member
  • *
  • Posts: 43
Re: splashabout component
« Reply #2 on: January 23, 2020, 11:35:19 pm »
I'll try that thanks

Ps.  What's the advantage of splashform over powered by?

I couldn't get poweredby to compile either.

Powered by seems to be used on double commander program

lawman

  • New Member
  • *
  • Posts: 43
Re: splashabout component
« Reply #3 on: January 24, 2020, 12:31:06 am »
silly question i'm sure but tried adding your package and no new icon in additional widgets

i opened lpk and pressed compile then restarted.  nothing.

tried 'add' to project.  nothing

what am I doing wrong?

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: splashabout component
« Reply #4 on: January 24, 2020, 08:57:13 am »
To put a new component in the component palette you need to install the package containing it, and recompile the IDE.


Or you can just compile the package using the package editor, so the IDE knows about the component. Then you have to manually add the package as a dependency in your project and create an instance of TSplashAbout manually in your main form's OnCreate handler.

minesadorada

  • Sr. Member
  • ****
  • Posts: 452
  • Retired
Re: splashabout component
« Reply #5 on: January 24, 2020, 04:14:12 pm »
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

jcmontherock

  • Full Member
  • ***
  • Posts: 234
Re: splashabout component
« Reply #6 on: January 24, 2020, 05:53:03 pm »
seems missing uPoweredby unit...
Windows 11 UTF8-64 - Lazarus 3.2-64 - FPC 3.2.2

minesadorada

  • Sr. Member
  • ****
  • Posts: 452
  • Retired
Re: splashabout component
« Reply #7 on: January 24, 2020, 06:15:52 pm »
seems missing uPoweredby unit...
Yes it was (my error in the lpk)  Poweredby component is now a requirement of the SplashAbout package. PoweredBy is in OPM.

https://svn.code.sf.net/p/lazarus-ccr/svn/components/splashabout/splashabout.lpk
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

lawman

  • New Member
  • *
  • Posts: 43
Re: splashabout component
« Reply #8 on: January 25, 2020, 12:03:41 pm »
seems missing uPoweredby unit...
Yes it was (my error in the lpk)  Poweredby component is now a requirement of the SplashAbout package. PoweredBy is in OPM.

https://svn.code.sf.net/p/lazarus-ccr/svn/components/splashabout/splashabout.lpk

how can i download from svn?

when i click on link it takes me to web directory but i can only download individual files?

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: splashabout component
« Reply #9 on: January 25, 2020, 12:22:22 pm »
You need the svn tool for it. Or you go to this site (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/splashabout/) and click the "Download snapshot" button at the top - it will get you a zipped file with all the files of the splashabout subfolder of ccr. Unzip all files to some folder. Then, in Lazarus, go to "Package" > "Load Package File", navigate to the unzipped folder and open the splashabout.lpk file. In the package editor which opens click on "Compile" and then "Use" > "Install". After a while Lazarus restarts and you find the icon for the SplashAbout component on the "Additional" component palette.

lawman

  • New Member
  • *
  • Posts: 43
Re: splashabout component
« Reply #10 on: January 25, 2020, 01:03:14 pm »
tried that and when compiling it said it couldn't find poweredby component.

downloaded and compiled poweredby with no errors.   when i try to install and rebuild lazarus it gives below error and stops

Quote
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2019/05/13] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2019/05/13] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling lclextensions_package.pas
(3104) Compiling delphicompat.pas
/usr/lib/lazarus/components/lclextensions/delphicompat.pas(137,2) Fatal: (2013) Cannot open include file "uses.inc"
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: splashabout component
« Reply #11 on: January 25, 2020, 01:25:31 pm »
There was an update in svn for the poweredby component recently. Download poweredby in the same way as you did with splashform (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/poweredby/), compile (I think it is not necesssary to install) and then compile and install the splashform package.

lawman

  • New Member
  • *
  • Posts: 43
Re: splashabout component
« Reply #12 on: January 25, 2020, 01:42:48 pm »
installed and compiled.    no messages.   not even completed.

looked at install and it showed uninstall option, so assumed it was installed.

restarted lazarus but couldn't see powerby in additional components.

opened splashabout and compiled.   no messages.

looked at install and it showed uninstall so assumed it may have installed

restarted lazarus.  no splashabout in additional.

tried again but clicked install to rebuild lazarus.

errors below.    not sure if my lazarus build was corrupted due to previous error above and I need to re-install lazarus first?

Quote
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2019/05/13] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2019/05/13] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling lclextensions_package.pas
(3104) Compiling delphicompat.pas
/usr/lib/lazarus/components/lclextensions/delphicompat.pas(137,2) Fatal: (2013) Cannot open include file "uses.inc"
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: splashabout component
« Reply #13 on: January 25, 2020, 03:31:40 pm »
Slowly...

In "Tools" > "Load package file (*.lpk)" go to the folder into which you extracted the "poweredby" download, open poweredby.lpk, click "Compile". Does it complete? There must be a green line "Compiled packed Poweredby 1.2. Success" in the message windows. Do no do "Use" > "Install" (unless you absolutely want the PoweredBy component on the component palette).
Now, still in the package editor dialog, go to the folder into which you extracted the "splashabout" download, open splashabout.lpk. Again: Click "Compile". Does ist complete? Click "Use" > "Install", but now do not confirm the question to rebuild the IDE and simply close the dialog. This way the splashabout component is marked for installation, but not yet installed.
Go to "Tools" > "Configure 'Build Lazarus'". In the "Cleanup" box, check "Clean all" and "Switch after building to automatically". Click "Build". This erases all compiled units and rebuilds the IDE from the start.

If this "clean build" does not resolve your issue there is something wrong with your installation. Which Lazarus version are you using? With Lazarus closed, you could rename the Lazarus config folder (*) which forces Lazarus to reset all settings to default - of course all your user defined settings will be lost and components will have to be reinstalled when you do this.

(*) You can determine the Lazarus config folder when you go to "View" > "IDE Internals" > "About ID" > "Global IDE options". Find the directory under "Primary config directory"

If this does not work it is probably easiest to reinstall Lazarus. Delete the config folder before the installation (or confirm to delete it when prompted during the installation).

lawman

  • New Member
  • *
  • Posts: 43
Re: splashabout component
« Reply #14 on: January 25, 2020, 11:02:51 pm »
Hi,

I  can't see any option under tools for 'load package file' ?

screenshot attached of options available.

 

TinyPortal © 2005-2018