[Lazarus] Switch off curser in TListBox

u-boot myabos at t-online.de
Sun Mar 6 12:13:02 CET 2011


whether you find an event that is thrown at the right time following 
procedure works:

procedure ListboxSelectionRemove(AListBox: TListbox);
var
  i: Integer;
begin
  i:=0;
  while i<AListBox.Count do begin
      AListBox.Selected[i]:=false;
      inc(i);
  end;
end;      

Jürgen Hestermann schrieb:
> Is it possible to switch off the visible cursor in a TListBox? I 
> didn't find an option for that.
> I wanted the TListBox to act as a log window that shows current (and 
> recent) activity.
> But the selection color makes the cursor line quite unreadable and it 
> also makes no
> sense to make one line special to the others.
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





More information about the Lazarus mailing list