Recent

Author Topic: fpGUI Toolkit v1.0 release for FPC 2.6.2  (Read 72258 times)

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
fpGUI Toolkit v1.0 release for FPC 2.6.2
« on: April 20, 2013, 08:13:47 pm »

fpGUI v1.0 is available
I'm glad to announce the 1.0 release of fpGUI. This has been over a
years worth of development, so a complete list of changes will be
to big to list here.

Here are just some highlights:
  • Improvements to the UI (forms) Designer
  • Lot of DocView improvements (Bookmark management, Image decoding support in INF files, RichView component improvements etc.)
  • AggPas integration as an experimental backend. AggPas is a 2D graphics library implemented in 100% Pascal, and includes some amazing features that really enhances the quality of fpGUI's canvas class.
  • New example apps, and improvements to existing demo apps like Maximus and Debug Server.
  • etc.

For more details, run any of the following commands:

 
Code: [Select]
git log --oneline v0.8..v1.0       (console viewer)or
 
Code: [Select]
gitk v0.8..v1.0                    (gui viewer)

Downloads
An archived source download of fpGUI, and pre-built binaries for
DocView (fpGUI's Documentation Viewer) can be found at the following
URL:

  http://sourceforge.net/projects/fpgui/files/fpGUI/1.0/

...or clone the source code repository by using any of the following
commands:

from SourceForge:
 
Code: [Select]
git clone git://fpgui.git.sourceforge.net/gitroot/fpgui/fpgui
from GitHub:
 
Code: [Select]
git clone git://github.com/graemeg/fpGUI.gitor
 
Code: [Select]
git clone https://github.com/graemeg/fpGUI.git 

The 'master' branch contains the latest released fpGUI (v1.0), and the
'develop' branch contains the latest development work on fpGUI.


Documentation
Pre-built documentation in the highly optimized INF file format
(for use with DocView) is also available for download in a single
archive, just 1.9MB in size. The documentation archive contains
the following help files:

 - Class documentation for fpGUI Toolkit
 - The Free Pascal Language Reference
 - FPC Runtime Library (rtl) help
 - FPC Free Component Library (fcl) help

The download URL is:

  http://sourceforge.net/projects/fpgui/files/fpGUI/Documentation/

If you want integrated help in your IDE or Programmer Editor of
choice, the following URL describes how to do it:

  http://fpgui.sourceforge.net/docview_ide_integration.shtml


For more details, please visit the fpGUI home page:

  http://fpgui.sourceforge.net


Regards,
  - Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #1 on: April 20, 2013, 10:27:20 pm »
Finally! Amazing work Graeme! :)

jmpessoa

  • Hero Member
  • *****
  • Posts: 1530
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #2 on: April 21, 2013, 04:12:46 am »
Hi There!

Can someone teach how to build a minimal integration between fpGUI-UIdesigner and Lazarus Editor?
There is any fpGUI project template?

Thanks in advance!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 1530
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #3 on: April 21, 2013, 06:18:59 am »
OK! There is a application template!

fpgui-1.0/extras/lazarus_ide/


"fpgui_ide.lpk
  This package adds a new project type in the Lazarus IDE.
  So you can then create a fpGUI based project by
  going: 'File | New' and selecting 'fpGUI Application'.

idefpguitestrunner.lpk
  This package adds a new project type in the Lazarus IDE.
  So you can new create FPCUnit test projects using the
  fpGUI toolkit as front-end."


Can someone teach how to build a minimal integration between fpGUI-UIdesigner and Lazarus IDE/Editor?

Thanks in advance!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #4 on: April 21, 2013, 11:03:03 am »
OK! There is a application template!
fpgui-1.0/extras/lazarus_ide/

Yes, that is one option. You can also use the "Project Templates" add-on of Lazarus, but there are serious bugs in that add-on.

Lately I don't bother with add-ons. I simply create code templates for everything. I can type 'fpguiapp' and hit Ctrl+J, and I have the program unit for a fpGUI based application. 'fpguiapp2' will generate a program unit with UI Designer managed form - ideal for quick test projects, were you only want a one file project.

I supplied some code templates for Lazarus IDE too, also in the 'extras' directory. Best you open both your profile lazarus.dci and the one supplied with fpGUI in a separate text editor. Then copy the content into your profile's lazarus.dci file.

ps:
Have I mentioned what a crap design the *.dci file is. Why can't Lazarus IDE use separate files for each code template - like MSEide does. It is much easier to manage.

Quote
Can someone teach how to build a minimal integration between fpGUI-UIdesigner and Lazarus IDE/Editor?

Do you mean the ability to press a keyboard shortcut to launch the fpGUI UI Designer? If so, it is pretty much identical to what you do for the DocView integration http://fpgui.sourceforge.net/docview_ide_integration.shtml. Create a new external tools entry and use the $EdFile macro as parameter. Here is a screenshot of my current setup.

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Fred vS

  • Hero Member
  • *****
  • Posts: 1794
    • StrumPract is the musicians best friend
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #5 on: April 21, 2013, 01:11:05 pm »
@ Graeme : thanks for your great work.

Could you explain, with simple words, to simple people (like me) what is the goal of fpGUI ?

Is it a new way to create applications without widgetset, with a minimum graphic lib ?

Thanks
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

Zoran

  • Hero Member
  • *****
  • Posts: 1574
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #6 on: April 21, 2013, 02:45:12 pm »
Many congratulations, Graeme! :D

jmpessoa

  • Hero Member
  • *****
  • Posts: 1530
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #7 on: April 21, 2013, 04:04:24 pm »
Now My Lazarus IDE/Editor is ready to play with fpGUI!

Now I want to install my components (GUI and NoGUI) in the UI Designer palette ... how to do this? There is a simple example?

Thank you Graeme!

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #8 on: April 21, 2013, 04:13:46 pm »
Now My Lazarus IDE/Editor is ready to play with fpGUI!

Now I want to install my components (GUI and NoGUI) in the UI Designer palette ... how to do this? There is a simple example?
Wiki search gives this:
http://wiki.lazarus.freepascal.org/fpGUI_Interface#Creating_your_first_LCL_application_with_fpGUI
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Fred vS

  • Hero Member
  • *****
  • Posts: 1794
    • StrumPract is the musicians best friend
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #9 on: April 21, 2013, 04:36:14 pm »
@ BigChimp  ;)
From Wiki :
Quote
fpGUI is a widgetset completely written in Object Pascal

Ooops, it is just what i suspected : fpGUI is a bomb.

With that real pascal widgetset, FPC becomes more and more totally independent.

Very, very, very nice shot Graeme.

I gonna study your bomb...
« Last Edit: April 21, 2013, 04:38:27 pm by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

jmpessoa

  • Hero Member
  • *****
  • Posts: 1530
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #10 on: April 21, 2013, 04:39:21 pm »
Thank you BigChimp....

Yes,  there is a work in progress to do a layer LCL-fpGUI....  My question is: put a new "fpGUI component"  in the UI Designer/fpGUI... any info about this?

Geetings!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Fred vS

  • Hero Member
  • *****
  • Posts: 1794
    • StrumPract is the musicians best friend
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #11 on: April 21, 2013, 04:55:37 pm »
Hello.

fpGUI is just installed and have loaded a existing project.

In Compiler Option > Build mode > LCLWidgetType
I choose fpgui ( usually i use qt )

But if i try to compile, i get that error :
Quote
fpgui/fpguiwsdialogs.pp(39,3) Fatal: Can not find unit fpg_base used by FpGuiWSDialogs.

 %)

[edit] Is the roadmap of wiki up-to-date for fpGUI ?
http://wiki.lazarus.freepascal.org/Roadmap#Widgetset_dependent_components
« Last Edit: April 21, 2013, 05:11:43 pm by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

jmpessoa

  • Hero Member
  • *****
  • Posts: 1530
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #12 on: April 21, 2013, 05:13:51 pm »
@Fred vS

   Just from INSTALL.TXT

   Lazarus MainMenu: "Package ->Open Package File (*.lpk)  and select the
    src/corelib/<your platform>/fpgui_toolkit.lpk
   Under Linux/FreeBSD the .lpk file will be in the 'x11' directory.
   Under Windows the .lpk file will be in the 'gdi' directory.
   A new dialog will appear - click Compile.
 * Lazarus has now compiled the package and will keep track of
   all the compiled units and paths.
 * Now lets open a project. Select Project->Open Project and select
   any project in the examples/gui directory. Select the *.lpi file.
 * Now select Run->Build and Lazarus will compile the project for
   you. The executable will be located in the same directory as the
   source. The compiled units will be placed in the <project>/units
   directory.

   When you create you own project, all you need to do is tell Lazarus to
associate the 'fpgui_toolkit.lpk' with your project and it will automatically
find all the fpGUI compiled units and source for you.

 * Creating a new project. Select Project->New Project.  Select
   Program and click the Create button.
 * Save the project in your preferred directory.
 * Associate fpGUI with your project. Select Project->Project Inspector.
   An new dialog will appear. Select Add then New Requirements. In the
   Package Name combobox, select the 'fpgui_toolkit' package and
   click OK.
 * You can now write your program and use any fpGUI units. Lazarus will
   automatically include the paths to the fpGUI compiled units for you."

Thanks!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Fred vS

  • Hero Member
  • *****
  • Posts: 1794
    • StrumPract is the musicians best friend
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #13 on: April 21, 2013, 05:30:45 pm »
@ jmpessoa : many thanks.

I have follow everything of that INSTALL.txt.

Everything works ok (compiling new package, via Project Inspector, Added the New Requirements...) but, still when trying to compile :

Quote
fpgui/fpguiwsdialogs.pp(39,3) Fatal: Can not find unit fpg_base used by FpGuiWSDialogs. Check if package fpgui_toolkit is in the dependencies.

 :'(
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 1794
    • StrumPract is the musicians best friend
Re: fpGUI Toolkit v1.0 release for FPC 2.6.2
« Reply #14 on: April 21, 2013, 06:04:41 pm »
OK,
Quote
<fpGUI dir>/src/gui ⇒ lazarus/lcl/interfaces/fpgui/gui
<fpGUI dir>/src/corelib ⇒ lazarus/lcl/interfaces/fpgui/corelib
<fpGUI dir>/src/VERSION_FILE.inc ⇒ lazarus/lcl/interfaces/fpgui/VERSION_FILE.inc
does the trick... ;D

Nice, the program has compile but if i run it i get :
( application works ok with qt and gtk2 and windows and carbon )

Quote
TApplication.HandleException Resource "cur_19" not found
  Stack trace:
  $00000000004CE5A2
  $00000000004CE707
  $00000000004991AF
  $0000000000496880
  $0000000000435160
  $00000000004FA066
  $000000000042C3BF
  $00000000004F98A8
  $000000000042821D
  $0000000000430E6A
  $00000000004328AD
  $00000000004F7C1A
  $00000000004FA88D
  $00000000004F5D75
  $0000000000737073
  $000000000042BD52
  $0000000000429C14
[FORMS.PP] ExceptionOccurred
  Sender=Exception
  Exception=Window doesn't have a Handle
  Stack trace:
  $00000000005B0787
  $00000000005754C9
  $000000000057E652
  $00000000004DD997
  $00000000004B7CFB
  $00000000004FBB9C
  $00000000004E2AFD
  $00000000004AC6BD
  $00000000004AC462
  $000000000052743D
  $00000000005271EB
  $0000000000527E86
  $0000000000449803
  $00000000004BC1F2
  $000000000052621C
  $00000000005208C6
  $00000000004370D1
TApplication.HandleException: there was another exception during showing the first exception
  Stack trace:
  $00000000005B0787
  $00000000005754C9
  $000000000057E652
  $00000000004DD997
  $00000000004B7CFB
  $00000000004FBB9C
  $00000000004E2AFD
  $00000000004AC6BD
  $00000000004AC462
  $000000000052743D
  $00000000005271EB
  $0000000000527E86
  $0000000000449803
  $00000000004BC1F2
  $000000000052621C
  $00000000005208C6
  $00000000004370D1

 :-[
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

 

TinyPortal © 2005-2018