Page 1 of 1

Get the value of type text options of an item

PostPosted: 18 Jan 2017 12:33
by Eric.P
Hi,

I have an item with jqcmitText as type.
I Would like to get the value of the input text on the event KeyDown of the item.

I did :
Code: Select all
lKeyInt := StrToInt(AParams.Values['Key']);
lItem := TIWCGJQContextMenuItemTypeText(TIWCGJQEvents(Sender).Owner);
if lKeyInt = 13 then
begin
  lValueStr := lItem.Value;
end;


The problem is value is not assigned here... If I enter "abc" then "enter", i expected to get "abc" in lValueStr.

Do you have a soluce to get the input text in the event KeyDown ?

Re: Get the value of type text options of an item

PostPosted: 18 Jan 2017 17:46
by Alexander Bulei
Hi Eric,

Please search on forum...

Best Regards.

Re: Get the value of type text options of an item

PostPosted: 18 Jan 2017 18:18
by Eric.P
Hi Alexander,

I checked all subjects in the contextmenu section and i didn't find something relative to the events in typeoptions... particullary in type text onKeyDown.

When i write text in the input of the item and i check the value of the item in the KeyDown event, it's empty.
Could you send me a link on the right post if you resolved it already please ? Because when i search some keywords like TypeOptions, ConextMenu input text in the global forum, or text, value in the contextmenu section i don't find something that could help me.

Regards.

Re: Get the value of type text options of an item

PostPosted: 18 Jan 2017 19:18
by Alexander Bulei
Hi Eric,

Hold on...I have found unexpected behavior...
I will fix it asap...and post simple example for you.

Best Regards.

Re: Get the value of type text options of an item

PostPosted: 19 Jan 2017 10:42
by Eric.P
Thank you Alexander.
I am waiting for your return.