Lazarus

Programming => Widgetset => GTK => Topic started by: benohb on January 10, 2017, 05:11:06 am

Title: ListView bug
Post by: benohb on January 10, 2017, 05:11:06 am
Code: Pascal  [Select][+][-]
  1. ListView1.ViewStyle:=vsIcon;
  2.  ListView1.MultiSelect:=true;


Then try to Select the elements with Square-[/size]Select
All controls in form freeze

Title: Re: ListView bug
Post by: Remy Lebeau on January 10, 2017, 11:13:05 pm
Then try to Select the elements with Square-Select

I don't understand what you are trying to say, or why you felt the need to set Select to 2px in size!!
Title: Re: ListView bug
Post by: benohb on January 17, 2017, 10:46:43 am

There is a problem in ListView with GTK .


try this


ListView1.ViewStyle:=vsIcon;
ListView1.MultiSelect:=true;


The program will freeze when you want to select multiple icons
Title: Re: ListView bug
Post by: wp on January 17, 2017, 10:54:42 am
Using gtk2 in Linux Mint 18, Laz trunk, fpc 3.0 I cannot confirm this.
Title: Re: ListView bug
Post by: Thaddy on January 17, 2017, 11:07:06 am
I can not confirm this with GTK2 on Raspbian armhf FPC 3.1.1/Laz 1.7
Title: Re: ListView bug
Post by: benohb on January 19, 2017, 10:27:19 am
wp

Thaddy

Thank you for test
But Try click on any button or write something in (edit1) . After selecting icons in ListView1
Please check :'(
Title: Re: ListView bug
Post by: Thaddy on January 19, 2017, 11:01:58 am
I can replicate this now, indeed,
The  first time I select a few icons and change focus to button or edit everything worked.
Change focus to listview a second time, select again, everything freezes.
Also note the listview does not keep (visual?) state between focus changes in GTK2.
I don't know if that is intentional.
Title: Re: ListView bug
Post by: benohb on January 23, 2017, 08:55:06 am

Thaddy.
Yes, this is the problem (focus)
Thanks For verification
Title: Re: ListView bug
Post by: richardcgiroux on November 07, 2017, 10:43:46 pm
I found a work-around:


procedure TForm1.ListView1Click(Sender: TObject);
begin
 ListView1.Enabled:=False;
 ListView1.Enabled:=True;
end;   
TinyPortal © 2005-2018