PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Track Single- and Double-Click in Report View  (Read 1322 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 303
    • View Profile
Track Single- and Double-Click in Report View
« on: November 06, 2023, 10:46:43 AM »
Is it possible to get both a single and double click in a Report View listbox? I've been able to get the single by setting Signal All Changes, but when I do that, I can't double-click; it always responds as if it's a single click. When I don't set it, I can get the double but not the single.
Any ideas?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

PxPlus

  • Administrator
  • Diamond Member
  • *****
  • Posts: 1091
    • View Profile
Re: Track Single- and Double-Click in Report View
« Reply #1 on: November 06, 2023, 11:07:55 AM »
I just created a Nomads panel with a Report view list that had Signal all changes and an OnClick event of SETTRACE PRINT "Click == _EOM$="+HTA(_EOM$).

It showed I first get $01$ then $02$ when I double click any item is the list.  The $01$ is the first click, $02$ for the second.

I used settrace print to make sure I didn't do anything that would move focus off the control between clicks, sure as displaying a Message Box.

James Zukowski

  • Diamond Member
  • *****
  • Posts: 303
    • View Profile
Re: Track Single- and Double-Click in Report View
« Reply #2 on: November 06, 2023, 12:01:07 PM »
It's good to know the double-click is getting through. Unfortunately, it's after the single-click has been processed. Would I then have to test for the double-click in my single-click logic? Or is there something else that could be done?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

PxPlus

  • Administrator
  • Diamond Member
  • *****
  • Posts: 1091
    • View Profile
Re: Track Single- and Double-Click in Report View
« Reply #3 on: November 06, 2023, 04:23:15 PM »
You would need to test for _EOM$ = $02$ in your 'change/Click' logic.

Actually I generally test for $02$ or $0D$ which is double click or ENTER thus allowing clients which don't want to use a mouse or how have trouble clicking twice rapidly to use the keyboard and just press enter.

James Zukowski

  • Diamond Member
  • *****
  • Posts: 303
    • View Profile
Re: Track Single- and Double-Click in Report View
« Reply #4 on: November 06, 2023, 05:09:38 PM »
I'm already dealing with multiple options. What seems to get it through, though, is including No_Flush=1 when I'm dealing with a single click and returning to the same listbox for further action. Together with your test showing the double-click follows the single-click in the input stream, this looks like it makes everything work the way we want.

Thanks for the tips.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services