Multi Line - On Double Click Event

Started by bbssupport, September 06, 2022, 07:33:41 PM

Previous topic - Next topic

bbssupport

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

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

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

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

Wow Mike, that is amazing news.

Thank you heaps!

I'll keep a look out for Update 1!


Mike King

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

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

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

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

Glad to hear that was the issue and you got it resolved.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com