[fpc-pascal] fpGUI Toolkit v0.8 release for FPC 2.4.4 & 2.6.0-rc

2011-12-02 Thread Graeme Geldenhuys
Hi,

I'm glad to announce the next release of fpGUI Toolkit.

fpGUI v0.8
--

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

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

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

  from SourceForge:
 git clone git://fpgui.git.sourceforge.net/gitroot/fpgui/fpgui

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


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.7MB in side. The archive contains the fpGUI Toolkit API
documentation, and for your convenience, I also included the Free
Pascal Language Reference, FPC Runtime Library and the FPC Free
Component Library.

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

For more details, please visit the fpGUI home page:

  http://fpgui.sourceforge.net


The v0.8 release contains a lot of added features and enhancements.
Below is just a small list of things that added or changed.

v0.8 (2011-11-02)
  - New widget demos and many improvements to existing demos.
  - New application examples
* Spinning Globe, show some graphics support with zooming.
* An experimental IDE called Maximus, which supports project
  management, compiler settings management, macro management,
  multi-threading enabled, fast procedure list searching,
  syntax-highlighting enabled text editor, OS independent
  file monitor support etc.
  - PDF reporting engine and preview support. Thanks to
Jean-Marc Levecque for this awesome contribution.
  - Huge improvements and enhancements to the Treeview widget.
* massive speed improvement
* improved painting support
* extended treeview and node method calls
* state image support (eg: having checkboxes next to nodes)
widget.
  - Many Docview (fpGUI documentation viewer) improvements
* Bookmark support
* Improved annotation support
* Improved the text rendering and text wrapping
* Rewrote the font handling which gave a massive 200+% speed
  increase in startup times (depending on the amount of fonts you
  have installed on your system), and reduced memory usage by 50%.
  - Added image support to RichView, the text viewer used by Docview.
  - Two new supported platforms: OpenSolaris and MacOSX (with X11
support).
  - Global keyboard shortcut support for menu items and actions.
  - fpGUI API documentation has been extended and improved.
  - OS independent DND (drag-n-drop) support has been implemented. This
supports external application-to-application and internal
widget-to-widget drag-n-drop.
  - Improved the workings of implementing context sensitive help inside
your applications.
  - Improved fpGUI project templates for use with Lazarus IDE or MSEide.
  - Included the WIPFC (OpenWatcom IPF Compiler) binaries to allow you
to compile your own IPF help files into binary INF help files.
  - UI Designer (the visual forms designer for fpGUI) has seen many
improvements:
* new components on the component palette.
* new properties accessible in the Object Inspector
* improved dialogs for "tab order" and "widget order" changes.
* code generated can now use spaces or tab characters for
  indentation.
* improved File menu layout and new options.
  - Improved themes support
  - Experimental MDI (multi-document interface) support
  - Extended the Unicode wrapper functions for the FPC's RTL file
handing
functions.
  - New built-in code page conversion functions have been added.
  - Grid widgets have improved scrolling support options.
  - Improved fpGUI language translations.
  - Many, many more bug fixes and improvements. For a full list run:
  git log v0.8...v0.7



-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] How to read TDOMNode attributes

2011-12-02 Thread Frank Church
Is there a way of knowning the attribute count of a TDOMNode as well as
reading the value of an attribute if it exists?

-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-02 Thread Mattias Gaertner
On Fri, 2 Dec 2011 18:59:25 +
Frank Church  wrote:

> Is there a way of knowning the attribute count of a TDOMNode as well as
> reading the value of an attribute if it exists?

HasAttribute:=(Node is TDOMElement) and
(TDOMElement.hasAttribute('Name')); 

Attribute value:

if Node is TDOMElement then
  Value:=TDOMElement(Node).GetAttribute('Name')
else
  Value:='';


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-02 Thread Frank Church
On 2 December 2011 19:09, Mattias Gaertner wrote:

> On Fri, 2 Dec 2011 18:59:25 +
> Frank Church  wrote:
>
> > Is there a way of knowning the attribute count of a TDOMNode as well as
> > reading the value of an attribute if it exists?
>
> HasAttribute:=(Node is TDOMElement) and
> (TDOMElement.hasAttribute('Name'));
>
> Attribute value:
>
> if Node is TDOMElement then
>  Value:=TDOMElement(Node).GetAttribute('Name')
> else
>  Value:='';
>
>
> Mattias
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>

Is there a way of counting the attributes and listing them out if you don't
know what they are in advance, or some kind of iteration which will tell
you when you are on the last item or there are none at all?



-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-02 Thread Mattias Gaertner
On Fri, 2 Dec 2011 19:30:17 +
Frank Church  wrote:

> On 2 December 2011 19:09, Mattias Gaertner wrote:
> 
> > On Fri, 2 Dec 2011 18:59:25 +
> > Frank Church  wrote:
> >
> > > Is there a way of knowning the attribute count of a TDOMNode as well as
> > > reading the value of an attribute if it exists?
> >
> > HasAttribute:=(Node is TDOMElement) and
> > (TDOMElement.hasAttribute('Name'));
> >
> > Attribute value:
> >
> > if Node is TDOMElement then
> >  Value:=TDOMElement(Node).GetAttribute('Name')
> > else
> >  Value:='';
> >
> >
> > Mattias
> > ___
> > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> 
> Is there a way of counting the attributes and listing them out if you don't
> know what they are in advance, or some kind of iteration which will tell
> you when you are on the last item or there are none at all?

You may want to read the fpc xml tutorial:
http://wiki.freepascal.org/XML_Tutorial#Printing_the_names_of_nodes_and_attributes

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-02 Thread Frank Church
On 2 December 2011 19:45, Mattias Gaertner wrote:

> On Fri, 2 Dec 2011 19:30:17 +
> Frank Church  wrote:
>
> > On 2 December 2011 19:09, Mattias Gaertner  >wrote:
> >
> > > On Fri, 2 Dec 2011 18:59:25 +
> > > Frank Church  wrote:
> > >
> > > > Is there a way of knowning the attribute count of a TDOMNode as well
> as
> > > > reading the value of an attribute if it exists?
> > >
> > > HasAttribute:=(Node is TDOMElement) and
> > > (TDOMElement.hasAttribute('Name'));
> > >
> > > Attribute value:
> > >
> > > if Node is TDOMElement then
> > >  Value:=TDOMElement(Node).GetAttribute('Name')
> > > else
> > >  Value:='';
> > >
> > >
> > > Mattias
> > > ___
> > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > >
> >
> > Is there a way of counting the attributes and listing them out if you
> don't
> > know what they are in advance, or some kind of iteration which will tell
> > you when you are on the last item or there are none at all?
>
> You may want to read the fpc xml tutorial:
>
> http://wiki.freepascal.org/XML_Tutorial#Printing_the_names_of_nodes_and_attributes
>
> Mattias
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>


The example you pointed doesn't show what I am looking for, but it led me
to one that does -
http://wiki.freepascal.org/XML_Tutorial#Populating_a_TreeView_with_XML.

The method in question is the TDomNode.Attributes.Length property. I
thought something like that shoud exist but I was looking for a Count
property. Shouldn't it be count instead?

-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-02 Thread Sven Barth

On 02.12.2011 21:26, Frank Church wrote:



On 2 December 2011 19:45, Mattias Gaertner mailto:nc-gaert...@netcologne.de>> wrote:

On Fri, 2 Dec 2011 19:30:17 +
Frank Church mailto:vfcli...@gmail.com>> wrote:

 > On 2 December 2011 19:09, Mattias Gaertner
mailto:nc-gaert...@netcologne.de>>wrote:
 >
 > > On Fri, 2 Dec 2011 18:59:25 +
 > > Frank Church mailto:vfcli...@gmail.com>>
wrote:
 > >
 > > > Is there a way of knowning the attribute count of a TDOMNode
as well as
 > > > reading the value of an attribute if it exists?
 > >
 > > HasAttribute:=(Node is TDOMElement) and
 > > (TDOMElement.hasAttribute('Name'));
 > >
 > > Attribute value:
 > >
 > > if Node is TDOMElement then
 > >  Value:=TDOMElement(Node).GetAttribute('Name')
 > > else
 > >  Value:='';
 > >
 > >
 > > Mattias
 > > ___
 > > fpc-pascal maillist  - fpc-pascal@lists.freepascal.org

 > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
 > >
 >
 > Is there a way of counting the attributes and listing them out if
you don't
 > know what they are in advance, or some kind of iteration which
will tell
 > you when you are on the last item or there are none at all?

You may want to read the fpc xml tutorial:

http://wiki.freepascal.org/XML_Tutorial#Printing_the_names_of_nodes_and_attributes

Mattias
___
fpc-pascal maillist  - fpc-pascal@lists.freepascal.org

http://lists.freepascal.org/mailman/listinfo/fpc-pascal



The example you pointed doesn't show what I am looking for, but it led
me to one that does -
http://wiki.freepascal.org/XML_Tutorial#Populating_a_TreeView_with_XML.

The method in question is the TDomNode.Attributes.Length property. I
thought something like that shoud exist but I was looking for a Count
property. Shouldn't it be count instead?


FPC's XML implementation is based on the DOM specification by W3C. And 
there it defined as "length". Also changing it to "count" would break 
existing code.


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-02 Thread Frank Church
On 2 December 2011 20:43, Sven Barth  wrote:

> On 02.12.2011 21:26, Frank Church wrote:
>
>>
>>
>> On 2 December 2011 19:45, Mattias Gaertner >
>> > wrote:
>>
>>On Fri, 2 Dec 2011 19:30:17 +
>>Frank Church mailto:vfcli...@gmail.com>> wrote:
>>
>> > On 2 December 2011 19:09, Mattias Gaertner
>>> > >>wrote:
>>
>> >
>> > > On Fri, 2 Dec 2011 18:59:25 +
>> > > Frank Church mailto:vfcli...@gmail.com>>
>>
>>wrote:
>> > >
>> > > > Is there a way of knowning the attribute count of a TDOMNode
>>as well as
>> > > > reading the value of an attribute if it exists?
>> > >
>> > > HasAttribute:=(Node is TDOMElement) and
>> > > (TDOMElement.hasAttribute('**Name'));
>> > >
>> > > Attribute value:
>> > >
>> > > if Node is TDOMElement then
>> > >  Value:=TDOMElement(Node).**GetAttribute('Name')
>> > > else
>> > >  Value:='';
>> > >
>> > >
>> > > Mattias
>> > > __**_
>> > > fpc-pascal maillist  - 
>> fpc-pascal@lists.freepascal.**org
>>> >
>>
>> > > 
>> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal
>> > >
>> >
>> > Is there a way of counting the attributes and listing them out if
>>you don't
>> > know what they are in advance, or some kind of iteration which
>>will tell
>> > you when you are on the last item or there are none at all?
>>
>>You may want to read the fpc xml tutorial:
>>http://wiki.freepascal.org/**XML_Tutorial#Printing_the_**
>> names_of_nodes_and_attributes
>>
>>Mattias
>>__**_
>>fpc-pascal maillist  - 
>> fpc-pascal@lists.freepascal.**org
>>> >
>>
>>
>> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal
>>
>>
>>
>> The example you pointed doesn't show what I am looking for, but it led
>> me to one that does -
>> http://wiki.freepascal.org/**XML_Tutorial#Populating_a_**
>> TreeView_with_XML
>> .
>>
>> The method in question is the TDomNode.Attributes.Length property. I
>> thought something like that shoud exist but I was looking for a Count
>> property. Shouldn't it be count instead?
>>
>
> FPC's XML implementation is based on the DOM specification by W3C. And
> there it defined as "length". Also changing it to "count" would break
> existing code.
>
>
I am now familiarizing myself with XML. I suspect anyway that there had to
be a reason for it.


> Regards,
> Sven
>
> __**_
> fpc-pascal maillist  -  
> fpc-pascal@lists.freepascal.**org
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal
>



-- 
Frank Church

===
http://devblog.brahmancreations.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal