Re: [Lazarus] GTK2 version and backspace key in Edit fields

2016-10-11 Thread Torsten Bonde Christiansen via Lazarus
I have no idea about the versioning with the glib2/gtk2 lib, but I can confirm that the patch works here: Free Pascal Compiler version 3.0.0 Compiler date : 2015/11/26 Compiler CPU target: x86_64 Lazarus trunk: r53093 glib2: 2.48.2 gtk2: 2.24.31 Torsten. On 2016-10-10 23:08, Juha Man

Re: [Lazarus] GTK2 version and backspace key in Edit fields

2016-10-11 Thread David Copeland via Lazarus
The bug is still present here. FPC 3.0, Lazarus r53093. OpenSuse 42.1 glib2 2.44.1 gtk2 2.24.31 Dave Copeland. > > On 2016-10-10 23:08, Juha Manninen via Lazarus wrote: >> Regarding issue: >> http://bugs.freepascal.org/view.php?id=30596 >> >> GTK2 users please test if there is any version that

Re: [Lazarus] GTK2 version and backspace key in Edit fields

2016-10-11 Thread David Copeland via Lazarus
Cancel that, not sure yet, didn't apply the patch yet. On 11/10/16 08:39 AM, David Copeland via Lazarus wrote: > The bug is still present here. > > FPC 3.0, Lazarus r53093. > OpenSuse 42.1 > glib2 2.44.1 > gtk2 2.24.31 > > Dave Copeland. > > -- David Copeland JSI Data Systems Limited 613-727-93

[Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-11 Thread Tony Whyman via Lazarus
An IBX user came to me with a problem and the problem seems to be a deep seated disconnect between multi-byte character sets, TStringField.Size and TDBEdit.MaxLength. Something needs to give - but I am not sure what should. Firstly documentation: If you go back to Delphi, TField.DataSize is t

Re: [Lazarus] GTK2 version and backspace key in Edit fields

2016-10-11 Thread David Copeland via Lazarus
Okay, applied the patch and the bug appears to be fixed. Sorry for the extra noise. On 11/10/16 08:46 AM, David Copeland via Lazarus wrote: > Cancel that, not sure yet, didn't apply the patch yet. > > On 11/10/16 08:39 AM, David Copeland via Lazarus wrote: >> The bug is still present here. >> >>

Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-11 Thread LacaK via Lazarus
An IBX user came to me with a problem and the problem seems to be a deep seated disconnect between multi-byte character sets, TStringField.Size and TDBEdit.MaxLength. Something needs to give - but I am not sure what should. Firstly documentation: If you go back to Delphi, TField.DataSize is

Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-11 Thread Tony Whyman via Lazarus
Please look at changes in TRUNK. May be that not all is perfect, but you will see there direction ... -Laco. Which FPC version is this likely to be released in? On a quick review of the code, all seems good. Just one point: GetDataSize seems to acknowledge CP_UTF8 as the only multibyte char

Re: [Lazarus] Wish, remove this GTK2 debug line

2016-10-11 Thread Mattias Gaertner via Lazarus
On Tue, 11 Oct 2016 04:31:58 +0300 Alexey via Lazarus wrote: > On 11.10.2016 04:29, Alexey via Lazarus wrote: > > remove that Debug line which prints error. > > I misread the subject: I mean that debug line- > > user@user-Notebook:~$ cudatext > WARNING: TGtk2WidgetSet.InvalidateRect refused i

Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-11 Thread Martin Schreiber via Lazarus
On Tuesday 11 October 2016 15:48:15 Tony Whyman via Lazarus wrote: > Please look at changes in TRUNK. > > > May be that not all is perfect, but you will see there direction ... > > > > -Laco. > > Which FPC version is this likely to be released in? > > On a quick review of the code, all seems good.

Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-11 Thread Tony Whyman via Lazarus
On 11/10/16 15:14, Martin Schreiber via Lazarus wrote: case i2 of 5,6,8,44,56,57,64: begin Agree with 5,6, 44, 56, 57 as two byte character sets. 8 doesn't seem to exist (at least in my version). 64 is KOI8U. According to Wikipedia "KOI8-U is an 8-bit character encoding,

Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-11 Thread Tony Whyman via Lazarus
On 11/10/16 15:14, Martin Schreiber via Lazarus wrote: MSEgui uses below code in order to guess the Firebird character size: " FYI, this is the table IBX uses to look up character sets and code pages: CharSetMap: array [0..69] of TCharsetMap = ( (CharsetID: 0; CharSetName: 'NONE'; CharSetWi

Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-11 Thread Martin Schreiber via Lazarus
On Tuesday 11 October 2016 16:19:18 Tony Whyman via Lazarus wrote: > On 11/10/16 15:14, Martin Schreiber via Lazarus wrote: > > case i2 of > > 5,6,8,44,56,57,64: begin > > Agree with 5,6, 44, 56, 57 as two byte character sets. > > 8 doesn't seem to exist (at least in my version)

Re: [Lazarus] TDBEdit, TStringField Size, DataSize, DisplayWidth and MaxLength

2016-10-11 Thread LacaK via Lazarus
> > Which FPC version is this likely to be released in?> 3.0.2 - no3.0.4 - ? 3.2.0 - yes> On a quick review of the code, all seems good. Just one point: >GetDataSize seems to acknowledge CP_UTF8 as the only multibyte >character set. The Firebird character set GB18030 (Chinese >characters) is multi-

Re: [Lazarus] Wish, remove this GTK2 debug line

2016-10-11 Thread Alexey via Lazarus
On 11.10.2016 16:59, Mattias Gaertner via Lazarus wrote: Please create bug report with an example to reproduce this. Hm, this is work to make an example; why not to comment this msg in GTK2 widget? -- Regards, Alex -- ___ Lazarus mailing list Laza

Re: [Lazarus] Wish, remove this GTK2 debug line

2016-10-11 Thread Juha Manninen via Lazarus
On Wed, Oct 12, 2016 at 1:41 AM, Alexey via Lazarus wrote: > Hm, this is work to make an example; why not to comment this msg in GTK2 > widget? You can comment it. You have the sources. However it must be kept in the public sources because it is a valid warning. Juha --