Recent

Author Topic: fpGUI Toolkit v1.2 release  (Read 11147 times)

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
fpGUI Toolkit v1.2 release
« on: August 20, 2014, 03:36:36 am »
fpGUI v1.2 is available
I'm glad to announce the 1.2 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.

For more details, run any of the following commands:

  git log --oneline v1.0..v1.2       (console viewer)
or
  gitk v1.0..v1.2                    (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.2/

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

from SourceForge:
  git clone git://git.code.sf.net/p/fpgui/code fpgui

from GitHub:
  git clone git://github.com/graemeg/fpGUI.git


The 'master' branch contains the latest released fpGUI (v1.2), 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) will be available for download shortly. A single
archive of around 2MB in size. The documentation archive will contain
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/
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: fpGUI Toolkit v1.2 release
« Reply #1 on: August 20, 2014, 02:15:38 pm »
Magnifique news.  ;D

Long life to fpGUI.

Many thanks for that fantastic project.

PS :
Quote
For more details, please visit the fpGUI home page:

  http://fpgui.sourceforge.net
=> recent news are not up-to-date  :-X

Fred
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

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

miquelmatas

  • Jr. Member
  • **
  • Posts: 98
  • Beginner forever.
Re: fpGUI Toolkit v1.2 release
« Reply #2 on: August 20, 2014, 05:34:50 pm »
I'll have a look at it!

Cheers,
--
Cheers.
Miquel.

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: fpGUI Toolkit v1.2 release
« Reply #3 on: August 20, 2014, 05:49:55 pm »
=> recent news are not up-to-date  :-X
Thanks, I'll update it right away. I really should keep a checklist of things to do for each release. ;)
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Harold.Tedder

  • Newbie
  • Posts: 1
Re: fpGUI Toolkit v1.2 release
« Reply #4 on: September 12, 2014, 12:09:45 am »
Currently using Delphi7.  I was using Lazarus but the company I work for installed "Digital Guardian Agent" causing application created with Lazarus using windows backin, fail to run.  I can use QT, customdrawn, fpgui widgetset and then the exe runs.

I would prefer to use fpGUI, but it is missing a component I need.  Treeview + ListView.  I currently use VirtualTreeView.

Do you have any plans to create (Treeview + ListView) component?

I saw fpg_nicegrid converted from  delphi.  Could BeniBela's treelistview be convert to fpGUI?

Good job on the new release.  I very much like the new plastic style.  Have not tried win8 style.

Included screen shot of program I want to convert to fpgui.

Harold 


Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: fpGUI Toolkit v1.2 release
« Reply #5 on: September 13, 2014, 08:58:19 pm »
I can use QT, customdrawn, fpgui widgetset and then the exe runs.
I'm glad to hear that fpGUI based apps still run! :-) Thank you for trying fpGUI Toolkit.

Quote
Do you have any plans to create (Treeview + ListView) component?
To be honest, I'm not a big fan of such composite components. eg: VirtualTreeview - sometimes a treeview, sometimes a listview, sometimes even a grid. TListView has the same issue. I much prefer a widget that dedicates itself to a specific purpose, and does that job very well.

Quote
I saw fpg_nicegrid converted from  delphi.  Could BeniBela's treelistview be convert to fpGUI?
I don't know that component, but if past experience taught me anything, it is normally pretty easy and painless to port Delphi/Lazarus components to fpGUI. fpg_nicegrid is just one of many such examples. So I'm sure if you have a little bit of time, you could port that treelistview in no time.

Quote
Good job on the new release.  I very much like the new plastic style.  Have not tried win8 style.
Many thanks. Most of the new styles were user contributions. I thought they were so good that I asked if I could include them as official themes. I like those plastic style themes too. As for the Win8 theme - that is something I started and still in the early stages, but should be completed soon.

If you need more detailed information about fpGUI or much quicker support, may I suggest you post fpGUI specific questions in the fpgui.support newsgroup. That way many more fpGUI developers could respond, and future users could learn from all the questions asked and answered. Details on connecting to the support news server: http://fpgui.sourceforge.net/support.shtml

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

vkhoa

  • New Member
  • *
  • Posts: 47
Re: fpGUI Toolkit v1.2 release
« Reply #6 on: October 07, 2014, 11:59:41 am »
is there a bitmap type that has 'canvas' property , so that I can draw line, drawrect to it
one more question, I tried 'agg_canvas_test' and it returned SIGSEGV error in"agg_vcgen_stroke.pas" at line 246 'm_width:=w*0.5;'. I also don't understand the line indeed  'ac := TAgg2D(Canvas);'

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: fpGUI Toolkit v1.2 release
« Reply #7 on: October 07, 2014, 02:32:23 pm »
Quote
one more question, I tried 'agg_canvas_test' and it returned SIGSEGV error in"agg_vcgen_stroke.pas" at line 246 'm_width:=w*0.5;'. I also don't understand the line indeed  'ac := TAgg2D(Canvas);'

Hello. Have you enabled the AggPas powered Canvas ?
To do that, edit fpg_main.pas and uncomment the line 25 =>
Code: [Select]
{$define AGGCanvas}
Fred.
« Last Edit: October 07, 2014, 02:40:09 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

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

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: fpGUI Toolkit v1.2 release
« Reply #8 on: October 07, 2014, 02:44:20 pm »
... or presumably pass
Code: [Select]
-dAGGCanvas
in your project options/other in Lazarus or via your favourite IDE that supports FPC...

Avoids having to edit the source code which may be easier due to git pulls not conflicting etc.
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

vkhoa

  • New Member
  • *
  • Posts: 47
Re: fpGUI Toolkit v1.2 release
« Reply #9 on: October 08, 2014, 12:32:33 pm »
Thanks both replies
@BigChimp, I opened that option in Lazarus and the '-dAggCanvas' is already there
@Fred Vs, great! it worked!

vkhoa

  • New Member
  • *
  • Posts: 47
Re: fpGUI Toolkit v1.2 release
« Reply #10 on: October 12, 2014, 04:50:37 pm »
when enable the AggPas powered canvas, a problem appeared
in other project, the menutest example, at the edit, the caret do not display at the the right position, the figure 1 is showed when the caret at the end, the figure 2 is when selected. And the memo text can't be selected, the button icon  also do not have the transparent effect (does anyone get this problem?)
I mean the error caused by AggPas because when disabling aggpas, the error disapeared
now I can satisfy by enabling and disabling the aggPas when switching project, but in project has both edit memo and aggpas drawing, what can I do
« Last Edit: October 12, 2014, 05:00:17 pm by vkhoa »

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: fpGUI Toolkit v1.2 release
« Reply #11 on: October 12, 2014, 05:01:29 pm »
@ vkhoa =>
Quote
when enable the AggPas powered canvas, a problem appeared

Could you give a link of this topic (or re-explain it) to fpGUI GitHub issues  =>
https://github.com/graemeg/fpgui/issues

or to fpGUI forum =>
http://opensoft.homeip.net:8080/webnews/

Thanks.

I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

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

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: fpGUI Toolkit v1.2 release
« Reply #12 on: October 12, 2014, 09:06:42 pm »
is there a bitmap type that has 'canvas' property , so that I can draw line, drawrect to it
You can use the TAgg2D and call .Attach(bitmap:TfpgImage...). This means you attached a TfpgImage to the Agg2D canvas. Now all TAgg2D drawing routines will paint to the bitmap image.

For documentation on TAgg2D take a look at <fpgui>/docs/aggpas/agg2d.html

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

vkhoa

  • New Member
  • *
  • Posts: 47
Re: fpGUI Toolkit v1.2 release
« Reply #13 on: November 11, 2014, 12:58:59 pm »
thanks, I will try it later.

vkhoa

  • New Member
  • *
  • Posts: 47
Re: fpGUI Toolkit v1.2 release
« Reply #14 on: November 21, 2014, 01:06:05 pm »
when enable the AggPas powered canvas, a problem appeared
in other project, the menutest example, at the edit, the caret do not display at the the right position, the figure 1 is showed when the caret at the end, the figure 2 is when selected. And the memo text can't be selected, the button icon  also do not have the transparent effect (does anyone get this problem?)
I mean the error caused by AggPas because when disabling aggpas, the error disapeared
now I can satisfy by enabling and disabling the aggPas when switching project, but in project has both edit memo and aggpas drawing, what can I do

Bravo! I have found the solution for my problem
it is because of the code in fpg_main
Code: [Select]
initialization
{$ifdef AGGCanvas}
  DefaultCanvasClass := TAgg2D;
{$else}
  DefaultCanvasClass := TfpgCanvas;
{$endif}
when enable the aggcanvas, it change all the descendant of tfpgwidget's canvas to TAgg2D so that it calculated the text metric wrongly, then I want to have these tfpgwidget's canvas to be tfpgcanvas so I change the fpg_widget unit (or otherwise fpg_base unit), I add a override function to it
Code: [Select]
function    TfpgWidget.CreateCanvas: TfpgCanvasBase;
begin
  result:=TfpgCanvas.create(self);
end;
then in my project I create a class
Code: [Select]
type
KfpgWidget =class(TfpgWidget)
  protected
   function    CreateCanvas: TfpgCanvasBase;override;
end;
Code: [Select]
function    KfpgWidget.CreateCanvas: TfpgCanvasBase;
    begin
      result:=TAgg2D.create(self);
    end;
now I can use aggpas drawing on my custom widget! :))
« Last Edit: November 21, 2014, 01:19:56 pm by vkhoa »

 

TinyPortal © 2005-2018