Recent

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

CyberFilth

  • Jr. Member
  • **
  • Posts: 54
    • CyberFilth.co.uk
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 & Antix Linux | Lazarus 2.0.6 | FPC 3.0.4

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3817
  • 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 on Manjaro Linux.

 

TinyPortal © 2005-2018