CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Get the value of type text options of an item

by Eric.P » 18 Jan 2017 12:33

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 ?
CG 3.0.0.115 / IW 14.59 / XE8
Eric.P
 
Posts: 24
Joined: 24 Aug 2016 15:07

by Alexander Bulei » 18 Jan 2017 17:46

Hi Eric,

Please search on forum...

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Eric.P » 18 Jan 2017 18:18

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.
CG 3.0.0.115 / IW 14.59 / XE8
Eric.P
 
Posts: 24
Joined: 24 Aug 2016 15:07

by Alexander Bulei » 18 Jan 2017 19:18

Hi Eric,

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

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Eric.P » 19 Jan 2017 10:42

Thank you Alexander.
I am waiting for your return.
CG 3.0.0.115 / IW 14.59 / XE8
Eric.P
 
Posts: 24
Joined: 24 Aug 2016 15:07


Return to JQContextMenu

Who is online

Users browsing this forum: No registered users and 7 guests

Contact Us.