Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-07

LCL-fpGUI widgetset support

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hello Giuliano,

[I started a new thread for this]

Giuliano Colla wrote
Following the instructions, I've tested. Lazarus = 1.6 Fpc=3.0.0 platform linux. A blank form compiles and runs ok. The form shows the FPGUI icon. Adding a TButton, it fails with: "Class TButton not found"

That is strange. I just testing with FreeBSD, FPC 2.6.4 (3.0.0 works too) and Lazarus v1.7 (trunk from about 2 months ago).

Here is the exact instructions to follow:

<lazarus>/lcl/interfaces/fpgui/README.txt

Please note that you must use fpGUI v1.4.1 or the “maint” branch. You cannot use the fpGUI “develop” branch at this stage.

I've also attached some screenshots to show a few of the components that already work. Even specifying one of the built-in themes work with a LCL-fpGUI application (demo ran with command line parameter: --style "plastic medium gray")

I've also attached a screenshot of the Project Options to show where I specify the LCL-fpGUI widgetset.

Please excuse the slight color tint in the screenshots. I used Gimp to reduce the colors to 256 to make them smaller for email purposes.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot1.png Type: image/png Size: 6885 bytes Desc: not available URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160720/ce94be10/attachment-0003.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot2-styled.png Type: image/png Size: 6989 bytes Desc: not available URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160720/ce94be10/attachment-0004.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot3-project_settings.png Type: image/png Size: 19866 bytes Desc: not available URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160720/ce94be10/attachment-0005.png>

Reply by email

Giuliano Colla
to Graeme Geldenhuys

Hi Graeme,
I think that there is some issue with the unit search path of Lazarus. I just opened in the editor fpg_button.pas and now it works! Currently I'm abroad with limited facilities. ASAP I'll be in better conditions I'll investigate more in detail. Thank you for your assistance,
Giuliano

Inviato da iPhone

Show quoted text 49 lines
Il giorno 20 lug 2016, alle ore 08:16, Graeme Geldenhuys ha scritto: Hello Giuliano, [I started a new thread for this] > On 2016-07-19 09:28, Giuliano Colla wrote: > Following the instructions, I've tested. Lazarus = 1.6 Fpc=3.0.0 > platform linux. > A blank form compiles and runs ok. The form shows the FPGUI icon. > Adding a TButton, it fails with: "Class TButton not found" That is strange. I just testing with FreeBSD, FPC 2.6.4 (3.0.0 works too) and Lazarus v1.7 (trunk from about 2 months ago). Here is the exact instructions to follow: <lazarus>/lcl/interfaces/fpgui/README.txt Please note that you must use fpGUI v1.4.1 or the “maint” branch. You cannot use the fpGUI “develop” branch at this stage. I've also attached some screenshots to show a few of the components that already work. Even specifying one of the built-in themes work with a LCL-fpGUI application (demo ran with command line parameter: --style "plastic medium gray") I've also attached a screenshot of the Project Options to show where I specify the LCL-fpGUI widgetset. Please excuse the slight color tint in the screenshots. I used Gimp to reduce the colors to 256 to make them smaller for email purposes. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp <Screenshot1.png> <Screenshot2-styled.png> <Screenshot3-project_settings.png> -- _______________________________________________ Lazarus mailing list http://lists.lazarus-ide.org/listinfo/lazarus

Reply by email

Giuliano Colla
to Graeme Geldenhuys: [I started a new thread for this] That is strange. I just testing with FreeBSD, FPC 2.6.4…

Il 20/07/2016 08:16, Graeme Geldenhuys ha scritto:

That is strange.

Sorry for the noise. It was a Lazarus/fpcup issue. Nothing to do with fpgui. It shows the same error also with gtk WS.

The full story is that I tested fpgui with a Lazarus 1.6 downloaded via fpcup, and for some obscure reasons it turns out that that damn thing when you drop a widget to a form, updates properly the .lfm file, adds the required unit in the uses section of the source file, but it doesn't add e.g. "Button1: TButton;" where appropriate.

I tested fpgui again both with a Lazarus 1.4.4 (installed via rpm) and with a Lazarus trunk (installed via svn), and everything works as expected. I put in a form the same widgets you provided in your example, and I got exactly the same result.

Did you ever stumble into a similar issue with Lazarus? Some wrong setting in the myriad of options?

Thank you for your time,

Giuliano

Reply by email

Graeme Geldenhuys
to Giuliano Colla

Hello Giuliano,

Very glad to here you resolved your issue.

Giuliano Colla wrote
I put in a form the same widgets you provided in your example, and I got exactly the same result.

Fantastic! There are quite a few things that work already. Other than widgets there are various dialogs, Win32 API calls like ShowMessage() etc work too. It's not actually that hard adding widget support. My hope is that somebody would eventually take the reins on this and fully implement it. The TLabel support would also be much welcomed - I struggled with that one.

Did you ever stumble into a similar issue with Lazarus? Some wrong setting in the myriad of options?

Now that you described the issue, I have actually experienced that with Lazarus before (or maybe it could have been CodeTyhpon). It was a few months back. Unfortunately I can't remember what I did to resolve the issue.

I normally don't use any fancy scripts, update tools or binary packages (eg: RPM, DEB etc). I simply install FPC using the official binary release. Then use Git to get the latest Lazarus code and do a 'make big ide'. This method has worked for years and I've used it under FreeBSD, Linux, Windows and Haiku (though Lazarus was not supported under Haiku - last time I checked).

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Giuliano Colla
to Graeme Geldenhuys

Il 22/07/2016 23:57, Graeme Geldenhuys ha scritto:

Show quoted text 5 lines
> Did you ever stumble into a similar issue with Lazarus? Some wrong > >setting in the myriad of options? Now that you described the issue, I have actually experienced that with Lazarus before (or maybe it could have been CodeTyhpon). It was a few months back. Unfortunately I can't remember what I did to resolve the issue.

For the record: after struggling a bit, I realized that the IDE editor/codetool didn't have access to the fpc units: it claimed that it couldn't even find the "Classes" unit!
"Rescan FPC source directory" did the trick. Now everything works even with fpcup.

I wanted to test fpcup, because it provides an installation of both Lazarus and FPC fully isolated from the rest, so that I could play in a sandbox with Lazarus and fpc 3.0.0, without affecting production projects which are based on fpc 2.6.4.

I can't promise too much, because I happen to be a bit overcharged, but if I manage to squeeze some time I might attempt to see if I can provide some manpower for the fpgui TLabel.

Giuliano

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160723/64a47486/attachment.html>

Reply by email