Lazarus

Programming => General => Topic started by: pcurtis on November 22, 2020, 07:09:45 pm

Title: [SOLVED] JvHTListbox
Post by: pcurtis on November 22, 2020, 07:09:45 pm
Hi All,
I am having a problem with JvHTListbox. When I fill the listbox with

Code: Pascal  [Select][+][-]
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. var
  3.   iTEMP : integer;
  4. begin
  5.   for iTEMP := 0 to 9 do
  6.     JvHTListBox1.Items.Add('<a href="abcdef">abcdef</a>');
  7. end;
  8.  

Every is fine until I start to move the mouse over the entries.
When I hover over an entry it changes colour.
If I move to another entry the previous entry still stays selected.
Is this a bug?
Any ideas?
Title: Re: JvHTListbox
Post by: jamie on November 23, 2020, 02:13:15 am
Does the control have multiselect ?

I don't have those controls installed but it looks like they had some issues with colors..?

Maybe you could enable the OnMouseMove event for the control and call the repaint for the control

jvListBox1.Repaint..

Do that inside the mousemove event ..
Title: Re: JvHTListbox
Post by: pcurtis on November 23, 2020, 06:16:22 am
Thanks Jamie for the suggestion. Repaint works.

Even so I will remove the components and custom draw a listbox in case something else bites.
Title: Re: [SOLVED] JvHTListbox
Post by: wp on November 23, 2020, 03:14:34 pm
Fixed in jvcllaz trunk. If you use the release version you can patch your version easily:
TinyPortal © 2005-2018