Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-27 Thread Bart
This was caused by a wrong patch of me.
It has been reverted, so it should work again.
Sorry...

Bart

On 4/26/11, Alexsander Rosa alexsander.r...@gmail.com wrote:
 http://mantis.freepascal.org/view.php?id=19239
 0019239: TEdit with CharCase = ecUpperCase causes alpha text to be typed in
 reverse
 It only happens with alpha text; numbers are ok. The caret is always moved
 to the 2nd position, so if you type ALEXSANDER the Edit ends with
 AREDNASXEL.

 An example project is attached.

 --
 Atenciosamente,
 Alexsander da Rosa
 http://rednaxel.com


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-26 Thread Alexsander Rosa
http://mantis.freepascal.org/view.php?id=19239
0019239: TEdit with CharCase = ecUpperCase causes alpha text to be typed in
reverse
It only happens with alpha text; numbers are ok. The caret is always moved
to the 2nd position, so if you type ALEXSANDER the Edit ends with
AREDNASXEL.

An example project is attached.

-- 
Atenciosamente,
Alexsander da Rosa
http://rednaxel.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Vladimir Zhirov
Bernd wrote:

 Before I file a bug, please somebody try and confirm:

I can reproduce it using Lazarus 0.9.31 r30441.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Bart
Is the value of SelStart correct when you type over the selection?
There were some changes handling this (for GTK2) in r26253 (issue #16678).

Bart

On 4/24/11, Vladimir Zhirov vvzh.li...@gmail.com wrote:
 Bernd wrote:

 Before I file a bug, please somebody try and confirm:

 I can reproduce it using Lazarus 0.9.31 r30441.

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Juha (gmail)
Bernd kirjoitti sunnuntai, 24. huhtikuuta 2011 02:01:55:
 Linux GTK2
 Before I file a bug, please somebody try and confirm:

Can't reproduce here. 64-bit Sabayon Linux, GTK2 2.0 (?)

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread ik
Can't reproduce it on Arch Linux with Lazarus 0.9.31 r30440M FPC 2.5.1
x86_64-linux-gtk 2 (2.22.0)

Ido


On Sun, Apr 24, 2011 at 02:01, Bernd prof7...@googlemail.com wrote:

 Linux GTK2

 Before I file a bug, please somebody try and confirm:

 Steps to reproduce:
 1: put a TEdit onto a form and compile and run the application
 (or alternatively just open one of the IDE's dialogs which contains a
 TEdit like for example refactor - rename)

 2. write some text into it and then select a few characters in the
 middle of the word. For example I will write the text
 TFooBar into the TEdit and then select the three letters Foo.
 Then press any (printable) key.

 3: I expect it to look like this (I have pressed X and the | marks the
 position of the caret), this is what I expect:
 TX|Bar

 4. And this is what happens:
 TBX|ar

 It removes the Foo as expected but then jumps over the B and inserts
 after it.

 This is very annoying, its already slowly starting to influence the
 way I edit text in all other applications. Can somebody confirm this
 or is this again due to my old GTK2 version (GTK2 itself and pure GTK2
 applications behave correctly). It does not happen in a combobox and
 also not in a TMemo, only in a TEdit. It used to work some months ago
 with the same GTK version, unfortunately I cannot say exactly which
 revision broke it, I did not update and use it for a few months, only
 started updating last few days again.

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Juha (gmail)
Juha (gmail) kirjoitti sunnuntai, 24. huhtikuuta 2011 12:00:15:
 Bernd kirjoitti sunnuntai, 24. huhtikuuta 2011 02:01:55:
  Linux GTK2
 
  Before I file a bug, please somebody try and confirm:
 Can't reproduce here. 64-bit Sabayon Linux, GTK2 2.0 (?)

I again forgot how to check the version of GTK2.

$ ldconfig -p | grep gtk
 shows (among other things):

  libgtk-1.2.so.0 (libc6) = /usr/lib32/libgtk-1.2.so.0
  libgtk-x11-2.0.so.0 (libc6,x86-64) = /usr/lib/libgtk-x11-2.0.so.0
  libgtk-x11-2.0.so.0 (libc6) = /usr/lib32/libgtk-x11-2.0.so.0
  libgtk-x11-2.0.so (libc6,x86-64) = /usr/lib/libgtk-x11-2.0.so
  libgtk-x11-2.0.so (libc6) = /usr/lib32/libgtk-x11-2.0.so

It can't be 2.0.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Sven Barth
It's not reproduceable on ArchLinux i386 with GTK+ 2.22.1 using Lazarus 
0.9.31 r30449 (compiled with 2.4.2).


On 24.04.2011 01:01, Bernd wrote:

Linux GTK2

Before I file a bug, please somebody try and confirm:

Steps to reproduce:
1: put a TEdit onto a form and compile and run the application
(or alternatively just open one of the IDE's dialogs which contains a
TEdit like for example refactor -  rename)

2. write some text into it and then select a few characters in the
middle of the word. For example I will write the text
TFooBar into the TEdit and then select the three letters Foo.
Then press any (printable) key.

3: I expect it to look like this (I have pressed X and the | marks the
position of the caret), this is what I expect:
TX|Bar

4. And this is what happens:
TBX|ar

It removes the Foo as expected but then jumps over the B and inserts after it.

This is very annoying, its already slowly starting to influence the
way I edit text in all other applications. Can somebody confirm this
or is this again due to my old GTK2 version (GTK2 itself and pure GTK2
applications behave correctly). It does not happen in a combobox and
also not in a TMemo, only in a TEdit. It used to work some months ago
with the same GTK version, unfortunately I cannot say exactly which
revision broke it, I did not update and use it for a few months, only
started updating last few days again.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Bernd
2011/4/24 Juha (gmail) juha.mannine...@gmail.com:

 I again forgot how to check the version of GTK2.

pkg-config --modversion gtk+-2.0
2.12.9

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Bernd
I have filed a bug report:

http://bugs.freepascal.org/view.php?id=19220

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Juha (gmail)
Bernd kirjoitti sunnuntai, 24. huhtikuuta 2011 14:03:08:
 2011/4/24 Juha (gmail) juha.mannine...@gmail.com:
  I again forgot how to check the version of GTK2.
 
 pkg-config --modversion gtk+-2.0
 2.12.9

Ok, it is 2.24.3 here. That makes the difference for the bug also I guess.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Bart
Posted a possible fix in Mantis.

Bart

On 4/24/11, Juha (gmail) juha.mannine...@gmail.com wrote:
 Bernd kirjoitti sunnuntai, 24. huhtikuuta 2011 14:03:08:
 2011/4/24 Juha (gmail) juha.mannine...@gmail.com:
  I again forgot how to check the version of GTK2.

 pkg-config --modversion gtk+-2.0
 2.12.9

 Ok, it is 2.24.3 here. That makes the difference for the bug also I guess.

 Juha

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-24 Thread Vladimir Zhirov
 Is the value of SelStart correct when you type over the
 selection? There were some changes handling this (for GTK2) in
 r26253 (issue #16678).

Yes, it looks correct (i.e. corresponds to visual cursor
position). Given TFooBar example:

(selecting Foo)
T[Foo]Bar   SelStart = 1
(pressing X)
TBX|ar  SelStart = 3

(Tested with GTK 2.16.6)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-23 Thread Bernd
Linux GTK2

Before I file a bug, please somebody try and confirm:

Steps to reproduce:
1: put a TEdit onto a form and compile and run the application
(or alternatively just open one of the IDE's dialogs which contains a
TEdit like for example refactor - rename)

2. write some text into it and then select a few characters in the
middle of the word. For example I will write the text
TFooBar into the TEdit and then select the three letters Foo.
Then press any (printable) key.

3: I expect it to look like this (I have pressed X and the | marks the
position of the caret), this is what I expect:
TX|Bar

4. And this is what happens:
TBX|ar

It removes the Foo as expected but then jumps over the B and inserts after it.

This is very annoying, its already slowly starting to influence the
way I edit text in all other applications. Can somebody confirm this
or is this again due to my old GTK2 version (GTK2 itself and pure GTK2
applications behave correctly). It does not happen in a combobox and
also not in a TMemo, only in a TEdit. It used to work some months ago
with the same GTK version, unfortunately I cannot say exactly which
revision broke it, I did not update and use it for a few months, only
started updating last few days again.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-23 Thread Luiz Americo Pereira Camara

On 23/4/2011 20:01, Bernd wrote:

Linux GTK2

Before I file a bug, please somebody try and confirm:

Steps to reproduce:
1: put a TEdit onto a form and compile and run the application
(or alternatively just open one of the IDE's dialogs which contains a
TEdit like for example refactor -  rename)

2. write some text into it and then select a few characters in the
middle of the word. For example I will write the text
TFooBar into the TEdit and then select the three letters Foo.
Then press any (printable) key.

3: I expect it to look like this (I have pressed X and the | marks the
position of the caret), this is what I expect:
TX|Bar

4. And this is what happens:
TBX|ar

It removes the Foo as expected but then jumps over the B and inserts after it.

This is very annoying, its already slowly starting to influence the
way I edit text in all other applications. Can somebody confirm this


I can confirm

Luiz


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-23 Thread Mattias Gaertner
On Sat, 23 Apr 2011 20:20:22 -0300
Luiz Americo Pereira Camara luiz...@oi.com.br wrote:

 On 23/4/2011 20:01, Bernd wrote:
  Linux GTK2
 
  Before I file a bug, please somebody try and confirm:
 
  Steps to reproduce:
  1: put a TEdit onto a form and compile and run the application
  (or alternatively just open one of the IDE's dialogs which contains a
  TEdit like for example refactor -  rename)
 
  2. write some text into it and then select a few characters in the
  middle of the word. For example I will write the text
  TFooBar into the TEdit and then select the three letters Foo.
  Then press any (printable) key.
 
  3: I expect it to look like this (I have pressed X and the | marks the
  position of the caret), this is what I expect:
  TX|Bar
 
  4. And this is what happens:
  TBX|ar
 
  It removes the Foo as expected but then jumps over the B and inserts 
  after it.
 
  This is very annoying, its already slowly starting to influence the
  way I edit text in all other applications. Can somebody confirm this
 
 I can confirm

Can you find the svn revision number that introduced this regression?
That would help fixing the bug.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-23 Thread Peter E Williams
Hi,

On 24 April 2011 09:33, Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Sat, 23 Apr 2011 20:20:22 -0300
 Luiz Americo Pereira Camara luiz...@oi.com.br wrote:

  On 23/4/2011 20:01, Bernd wrote:
   Linux GTK2
  
   Before I file a bug, please somebody try and confirm:
  
   Steps to reproduce:
   1: put a TEdit onto a form and compile and run the application
   (or alternatively just open one of the IDE's dialogs which contains a
   TEdit like for example refactor -  rename)
  
   2. write some text into it and then select a few characters in the
   middle of the word. For example I will write the text
   TFooBar into the TEdit and then select the three letters Foo.
   Then press any (printable) key.
  
   3: I expect it to look like this (I have pressed X and the | marks the
   position of the caret), this is what I expect:
   TX|Bar
  
   4. And this is what happens:
   TBX|ar
  
   It removes the Foo as expected but then jumps over the B and inserts
 after it.
  
   This is very annoying, its already slowly starting to influence the
   way I edit text in all other applications. Can somebody confirm this
 
  I can confirm

 Can you find the svn revision number that introduced this regression?
 That would help fixing the bug.


This bug does NOT occur in my Linux installation of Lazarus 0.9.31 with FPC
2.4.2 SVN rvn 30099.



  Mattias

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-23 Thread Peter E Williams
Hi,

On 24 April 2011 09:33, Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Sat, 23 Apr 2011 20:20:22 -0300
 Luiz Americo Pereira Camara luiz...@oi.com.br wrote:

  On 23/4/2011 20:01, Bernd wrote:
   Linux GTK2
  
   Before I file a bug, please somebody try and confirm:
  
   Steps to reproduce:
   1: put a TEdit onto a form and compile and run the application
   (or alternatively just open one of the IDE's dialogs which contains a
   TEdit like for example refactor -  rename)
  
   2. write some text into it and then select a few characters in the
   middle of the word. For example I will write the text
   TFooBar into the TEdit and then select the three letters Foo.
   Then press any (printable) key.
  
   3: I expect it to look like this (I have pressed X and the | marks the
   position of the caret), this is what I expect:
   TX|Bar
  
   4. And this is what happens:
   TBX|ar
  
   It removes the Foo as expected but then jumps over the B and inserts
 after it.
  
   This is very annoying, its already slowly starting to influence the
   way I edit text in all other applications. Can somebody confirm this
 
  I can confirm

 Can you find the svn revision number that introduced this regression?
 That would help fixing the bug.


This bug does NOT occur in my Linux installation of Lazarus 0.9.31 with FPC
2.4.2 SVN rvn 30099.



  Mattias

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-23 Thread Luiz Americo Pereira Camara

On 23/4/2011 20:33, Mattias Gaertner wrote:

On Sat, 23 Apr 2011 20:20:22 -0300
Luiz Americo Pereira Camaraluiz...@oi.com.br  wrote:


On 23/4/2011 20:01, Bernd wrote:



This is very annoying, its already slowly starting to influence the
way I edit text in all other applications. Can somebody confirm this
I can confirm

Can you find the svn revision number that introduced this regression?
That would help fixing the bug.



No. I'm using Linux seldom. I first noticed this bug in the rename 
identifier dialog few weeks ago after a long time not updating lazarus 
in linux


Luiz

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Possible bug in TEdit, can somebody reproduce this?

2011-04-23 Thread Marcos Douglas
On Sat, Apr 23, 2011 at 8:33 PM, Mattias Gaertner
nc-gaert...@netcologne.de wrote:
 On Sat, 23 Apr 2011 20:20:22 -0300
 Luiz Americo Pereira Camara luiz...@oi.com.br wrote:
 I can confirm

 Can you find the svn revision number that introduced this regression?
 That would help fixing the bug.

This bug does not occur in my WinXP installation of Lazarus 0.9.30.1
r29237 FPC 2.4.3 i386-win32-win32/win64


Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus