[Lazarus] Possible bug?

2013-09-11 Thread Richard Mace
If you put a TPairSplitter on a form, then in the right sire add a TNotebook, then add a page, then add a memo that is anchored Top,Left and Right. When you resize the main form in design, the memo correctly wraps, but at runtime it doesn't. Is this a bug? Richard --

Re: [Lazarus] Extended Feature, inactive IFDEF: Quick fold all inactive ifdef

2013-09-11 Thread Mattias Gaertner
On Tue, 10 Sep 2013 22:31:55 +0100 Martin laza...@mfriebe.de wrote: Just right click the foldgutter (the small vertical space containing the [+] and [-]) And select Fold inactive IFdef I only see one menu item Hide comments. The inactive IFDEFs have no folder icon in the gutter. Note:

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Antonio Fortuny
Le 11/09/2013 07:51, Richard Mace a écrit : Hi, Can anyone give me an example of adding and retrieving an integer value to a TTreenode via it's data property please? I've tried the below, but it doesn't seem to work. Set: with

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Howard Page-Clark
On 11/09/2013 09:24, Antonio Fortuny wrote: Le 11/09/2013 07:51, Richard Mace a écrit : procedure TfrmMain.tvMainChange(Sender: TObject; Node: TTreeNode); begin ShowMessage('Node ' + IntToStr(Integer(Node.Data))); change to: ShowMessage('Node ' + IntToStr(*PtrInt***(Node.Data))); Also

Re: [Lazarus] Extended Feature, inactive IFDEF: Quick fold all inactive ifdef

2013-09-11 Thread Martin
On 11/09/2013 09:18, Mattias Gaertner wrote: On Tue, 10 Sep 2013 22:31:55 +0100 Martin laza...@mfriebe.de wrote: Just right click the foldgutter (the small vertical space containing the [+] and [-]) And select Fold inactive IFdef I only see one menu item Hide comments. The inactive IFDEFs

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Graeme Geldenhuys
On 2013-09-11 06:51, Richard Mace wrote: Can anyone give me an example of adding and retrieving an integer value to a TTreenode via it's data property please? The Data property holds a pointer value, so don't assign an Integer directly. Rather define a Record structure (or a Class) that holds

Re: [Lazarus] IDE - SynEdit not accept accented characters

2013-09-11 Thread Martin
On 08/09/2013 13:14, Junior wrote: Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) (É - é - Ã - ã - Â - â ...) ShowMessage('É Á'); appears ShowMessage('E A'); I can confirm this on Fedora 18 gnome 3.6.3 dead keys to not work german key layout: - pressing the key for any

Re: [Lazarus] Extended Feature, inactive IFDEF: Quick fold all inactive ifdef

2013-09-11 Thread Mattias Gaertner
Martin laza...@mfriebe.de hat am 11. September 2013 um 11:12 geschrieben: On 11/09/2013 09:18, Mattias Gaertner wrote: On Tue, 10 Sep 2013 22:31:55 +0100 Martin laza...@mfriebe.de wrote: Just right click the foldgutter (the small vertical space containing the [+] and [-]) And

Re: [Lazarus] IDE - SynEdit not accept accented characters / revision found

2013-09-11 Thread Martin
On 11/09/2013 11:45, Martin wrote: On 08/09/2013 13:14, Junior wrote: Lazarus 1.1 r42677M FPC 2.6.2 i386-linux-gtk 2 (Ubuntu 12.04) (É - é - Ã - ã - Â - â ...) ShowMessage('É Á'); appears ShowMessage('E A'); I can confirm this on Fedora 18 gnome 3.6.3 It was introduced in Revision:

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Richard Mace
Thanks for the reply. Can't it be type casted because both a pointer and integer are 4 bytes? On 11 Sep 2013 10:46, Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 2013-09-11 06:51, Richard Mace wrote: Can anyone give me an example of adding and retrieving an integer value to a

Re: [Lazarus] IDE - SynEdit not accept accented characters / revision found

2013-09-11 Thread Juha Manninen
On Wed, Sep 11, 2013 at 2:42 PM, Martin laza...@mfriebe.de wrote: It was introduced in Revision: 42581 Author: juha Date: 04 September 2013 01:06:33 Message: LCL: Fix accent chars in GTK2. Remove Gtk2LatinAccents define after testing. Issues #24750 and #22507. Original patch from Éderson

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Juha Manninen
On Wed, Sep 11, 2013 at 3:24 PM, Richard Mace richard.m...@gmail.com wrote: Can't it be type casted because both a pointer and integer are 4 bytes? They are both 4 bytes only in 32-bit computers. Juha -- ___ Lazarus mailing list

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Graeme Geldenhuys
On 2013-09-11 14:02, Juha Manninen wrote: They are both 4 bytes only in 32-bit computers. +1 Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Hans-Peter Diettrich
Richard Mace schrieb: Thanks for the reply. Can't it be type casted because both a pointer and integer are 4 bytes? Dunno about Lazarus, but casts work in Delphi. Hint: pointers may be longer than integers, but never shorter. So you won't loose information when e.g. storing an 32 bit integer

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Hans-Peter Diettrich
Antonio Fortuny schrieb: Le 11/09/2013 07:51, Richard Mace a écrit : Hi, Can anyone give me an example of adding and retrieving an integer value to a TTreenode via it's data property please? I've tried the below, but it doesn't seem to work. Set: with

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Lukasz Sokol
On 11/09/13 14:02, Juha Manninen wrote: On Wed, Sep 11, 2013 at 3:24 PM, Richard Mace richard.m...@gmail.com wrote: Can't it be type casted because both a pointer and integer are 4 bytes? They are both 4 bytes only in 32-bit computers. Juha And if your program is compiled to 32bit

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Howard Page-Clark
On 11/09/2013 18:03, Flávio Etrusco wrote: On Wed, Sep 11, 2013 at 5:41 AM, Howard Page-Clark h...@talktalk.net wrote: Also unless you want the treeview to behave as if it were fully initialised with Data integer values of zero, you would need to add: procedure

[Lazarus] Web Services Toolkit designtime package doesn't compile with fpc 2.6.2

2013-09-11 Thread Dimitrios Chr. Ioannidis
Hi, is it possible, someone, to resolve the http://bugs.freepascal.org/view.php?id=24091 ticket so i can close it ? regards, -- Dimitrios Chr. Ioannidis Nephelae - http://www.nephelae.eu -- ___ Lazarus mailing list

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Flávio Etrusco
On Wed, Sep 11, 2013 at 5:41 AM, Howard Page-Clark h...@talktalk.net wrote: Also unless you want the treeview to behave as if it were fully initialised with Data integer values of zero, you would need to add: procedure TfrmMain.tvMainChange(Sender: TObject; Node: TTreeNode); begin if

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Hans-Peter Diettrich
Howard Page-Clark schrieb: On 11/09/2013 18:03, Flávio Etrusco wrote: On Wed, Sep 11, 2013 at 5:41 AM, Howard Page-Clark h...@talktalk.net procedure TfrmMain.tvMainChange(Sender: TObject; Node: TTreeNode); begin if Assigned(Node) then ShowMessage('Node ' +

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Flávio Etrusco
On Wed, Sep 11, 2013 at 6:19 AM, Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 2013-09-11 06:51, Richard Mace wrote: Can anyone give me an example of adding and retrieving an integer value to a TTreenode via it's data property please? The Data property holds a pointer value, so don't

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Richard Mace
On 11 September 2013 10:19, Graeme Geldenhuys gra...@geldenhuys.co.ukwrote: On 2013-09-11 06:51, Richard Mace wrote: Can anyone give me an example of adding and retrieving an integer value to a TTreenode via it's data property please? The Data property holds a pointer value, so don't