Recent

Author Topic: Listview Filter problem (report mode)  (Read 10713 times)

CyberFilth

  • Jr. Member
  • **
  • Posts: 88
    • My github account
Re: Listview Filter problem (report mode)
« Reply #15 on: May 03, 2017, 06:30:36 pm »
The OnButtonClick event doesn't seem to work for this component.
I inserted
Code: Pascal  [Select][+][-]
  1. ShowMessage('test');
into the OnButtonClick procedure to see if it was being triggered but apparently not.

Quote
OnButtonClick may not be enough because the filter can be emptied also by delete or backspace.
Good point. I'll see if I can check whether the edit box is empty instead.

As for it not being very intuitive, I kind of agree but removing the option to add, delete or edit entries when using the filter would save me so many headaches.
I've attached a screenshot of the programs UI. Greying out the above options shouldn't be too confusing for the user.
Running Windows 10 & Xubuntu 20.04 | Lazarus 2.0.12 | FPC 3.2.0

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Listview Filter problem (report mode)
« Reply #16 on: May 03, 2017, 07:12:37 pm »
The OnButtonClick event doesn't seem to work for this component.
I inserted
Code: Pascal  [Select][+][-]
  1. ShowMessage('test');
into the OnButtonClick procedure to see if it was being triggered but apparently not.
It is triggered here. No problems.

Your control looks like ListBox instead of ListView. Anyway, it makes no difference for this issue.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018