PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Multi Line - On Double Click Event  (Read 1145 times)

bbssupport

  • Silver Member
  • ***
  • Posts: 34
    • View Profile
Multi Line - On Double Click Event
« on: September 06, 2022, 07:33:41 PM »
Hi All,

Simple question that I think the answer is No but thought I'd ask.

Is there a way to set the attributes in such a way to fire the focus or on-change event when a multi-line control is double-clicked on?

I've tried IF POS($020D$:_EOM$)<>0  then MSGBOX "Test" in the on focus logic but it only executes when focus is first given to the control. On change doesn't appear to fire on a double click even when Auto and Signal on Exit are enabled.

Thanks
Chris

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Multi Line - On Double Click Event
« Reply #1 on: September 07, 2022, 12:07:23 AM »
Double click on an input field (multi_line) will generally select the whole field for editing/replacement and that is handled by the OS.

What are you attempting to accomplish?
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

bbssupport

  • Silver Member
  • ***
  • Posts: 34
    • View Profile
Re: Multi Line - On Double Click Event
« Reply #2 on: September 07, 2022, 12:31:34 AM »
Hi Mike,

I'm thinking about changing some of my multilines to behave like hotlinks currently do in list boxes.

For example, a locked multi-line that displays a customer code and name. The user can currently click and highlight to copy the text, and i was hoping to implement logic so if they double click it will take them to view more details about the customer (ie open a customer enquiry). This saves me having buttons everywhere for users to navigate to different areas when looking at a transaction.

Understand if it isn't possible with the options currently available, but thought i'd ask since you can acheive this in VB.


Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Multi Line - On Double Click Event
« Reply #3 on: September 07, 2022, 02:59:12 PM »
Well your timing is pretty good. 

We are about to release Update 1 for PxPlus 2022 and have managed to squeeze in a new 'OnDoubleClick property for multi-lines to assist in what you are trying to accomplish.  What this will allow you to do is set a CTL to be generated when a double click occurs on a multi-line.  Your logic can then trap that CTL and perform whatever you want.

Due to the timing while it will be in the product it may not get fully documented prior release.

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

bbssupport

  • Silver Member
  • ***
  • Posts: 34
    • View Profile
Re: Multi Line - On Double Click Event
« Reply #4 on: September 08, 2022, 09:15:17 PM »
Wow Mike, that is amazing news.

Thank you heaps!

I'll keep a look out for Update 1!


Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Multi Line - On Double Click Event
« Reply #5 on: September 13, 2022, 11:40:03 PM »
Just a quick note, PxPlus 2021 update 1 (v19.10) which was just released, has the new 'OnDoubleClick property.

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

bbssupport

  • Silver Member
  • ***
  • Posts: 34
    • View Profile
Re: Multi Line - On Double Click Event
« Reply #6 on: September 16, 2022, 12:45:27 AM »
HI Mike,

Thanks for that. I've downloaded v19.1 and cannot seem to get the OnDoubleClick property to accept a value for either manually created controls or controls created in nomads.

Code:
0010 LET MY_MULTILINE=5
0020 MULTI_LINE MY_MULTILINE,@(50,5,10,1)
0030 LET MY_MULTILINE'ONDOUBLECLICK=5000

Results in an Err #88.

Image attached.

Have I missed something?

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Multi Line - On Double Click Event
« Reply #7 on: September 16, 2022, 08:47:30 AM »
Can you confirm you are running and licensed for PxPlus v19?

If you enter the command PKG you should be able to confirm this.

->pkg
SSN 1910-001-xxxxxxx
Software            = PxPlus-2022 Web Development System
Expiry Date         = none
User Count          = 5
Version Information = 19100001 / Activation Level 19
iNomads add-on package enabled
->

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

bbssupport

  • Silver Member
  • ***
  • Posts: 34
    • View Profile
Re: Multi Line - On Double Click Event
« Reply #8 on: September 17, 2022, 12:44:00 AM »
Hi Mike,

PKG revealed that my license was still running at activation level 18.

Running *plus/reg/net appears to have upgraded the activation to level 19 and now i can see the OnDoubleClick property.

Thanks and sorry to waste your time!

Chris

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Multi Line - On Double Click Event
« Reply #9 on: September 17, 2022, 09:22:47 AM »
Glad to hear that was the issue and you got it resolved.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com