Recent

Author Topic: SelectAll Linux error  (Read 3171 times)

Igor Antić

  • Newbie
  • Posts: 4
SelectAll Linux error
« on: July 03, 2016, 09:20:58 pm »
I use Lazarus 1.4.4 on Windows 7 and Linux Mint 17.3 Rosa all graphic environments (CINNAMON, MATE, etc.).
I have a simple project with one Unit1 and two components TJLabeledIntegerEdit and TLabeledEdit on the same project. On TJLabeledIntegerEdit I have OnExit event following structures

Tfrm_1.JLabeledIntegerEdit1Exit procedure (Sender: TObject);
begin
  If (JLabeledIntegerEdit1.Text = '') or (JLabeledIntegerEdit1.Text = '0')
  then begin
    JLabeledIntegerEdit1.SetFocus;
    JLabeledIntegerEdit1.SelectAll;
  end;
end;

When  I press TAB and value of TJLabeledIntegerEdit is 0, same procedure in Windows give me:

https://s31.postimg.org/q0gdh89bf/slika_1.jpg

Linux:

https://s32.postimg.org/ov68hulh1/Slika2.png

In fact, in Linux when i continue entering the numbers 0 remains at the end, and I get number 1230

https://s32.postimg.org/6zjue5j11/Slika3.jpg

while Windows overwritten 0 and get the number 123

https://s32.postimg.org/77m6i966t/Slika4.png

I managed to get to solutions in Linux, by chance, in a somewhat unusual way. If I add ShowMessage in procedure and code looks like this

Tfrm_1.JLabeledIntegerEdit1Exit procedure (Sender: TObject);
begin
  If (JLabeledIntegerEdit1.Text = '') or (JLabeledIntegerEdit1.Text = '0')
  then begin
    ShowMessage ( 'Heloo!');
    JLabeledIntegerEdit1.SetFocus;
    JLabeledIntegerEdit1.SelectAll;
  end;
end;
after show message

https://s31.postimg.org/tui532zl7/Slika5.png

I press Enter or click the mouse get:

https://s31.postimg.org/k4cbzuwvf/slika_6.jpg

which is identical as in Windows.
How can i achieve in Linux the same result as in Windows without ShowMessage.

Another problem I noticed is that when I entered the TJLabeledIntegerEdit fact i am in EDIT mode with the cursor blinking at the end or beginning of the value

https://s32.postimg.org/lyiqayeyt/slika_7.jpg

and press CTRL + A

https://s31.postimg.org/5gpbo8snf/slika_8.jpg

not select me all TJLabeledIntegerEdit in Linux while in Windows selects all

https://s32.postimg.org/i13ltnab9/slika_9.jpg

https://s32.postimg.org/utrptklx1/slika_10.jpg

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: SelectAll Linux error
« Reply #1 on: July 03, 2016, 09:46:46 pm »
Please try 1.6.

Bart

Igor Antić

  • Newbie
  • Posts: 4
Re: SelectAll Linux error
« Reply #2 on: July 04, 2016, 09:17:10 am »
I tried it with 1.6, but without success, boasting the same.

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: SelectAll Linux error
« Reply #3 on: July 04, 2016, 01:13:23 pm »
Please report it in the bugtracker.
Make sure to attach a sample project demonstrating the issue (sources only, zipped) and relevant screenshots (not a link, attach upload them to the bugtracker, preferrably as .png).

Bart

 

TinyPortal © 2005-2018