PxPlus User Forum

Main Board => Discussions => Nomads => Topic started by: bbssupport on September 06, 2022, 07:33:41 PM

Title: Multi Line - On Double Click Event
Post by: bbssupport 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
Title: Re: Multi Line - On Double Click Event
Post by: Mike King 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?
Title: Re: Multi Line - On Double Click Event
Post by: bbssupport 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.

Title: Re: Multi Line - On Double Click Event
Post by: Mike King 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.

Title: Re: Multi Line - On Double Click Event
Post by: bbssupport 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!

Title: Re: Multi Line - On Double Click Event
Post by: Mike King 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.

Title: Re: Multi Line - On Double Click Event
Post by: bbssupport 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?
Title: Re: Multi Line - On Double Click Event
Post by: Mike King 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
->

Title: Re: Multi Line - On Double Click Event
Post by: bbssupport 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
Title: Re: Multi Line - On Double Click Event
Post by: Mike King on September 17, 2022, 09:22:47 AM
Glad to hear that was the issue and you got it resolved.