PowerBuilder - How to make the ENTER KEY behave like the DOWN ARROW key

Mark_IT
Mark_IT used Ask the Experts™
on
How do I make the ENTER key act like the DOWN ARROW key in PowerBuilder?
I'd really like to know the values to change all command keys.
Below are examples fpr changing the ENTER key to the TAB and DOUBLE CLICK.

With the following commands i make ENTERkey to behave like TAB key.
Send(Handle(this),256,9,Long(0,0))
Return 1

With the following commands i make ENTERkey to behave like DOUBLE CLICK.
Send(Handle(this),515,9,Long(0,0))
Return 1

Thanks for your help,
Lee
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Explore below link. It describes how you can find those arguments for different functionality with send.

https://pbdj.sys-con.com/node/198707

As mentioned in this link below is the code for click of command button cb_ok. Hope you can modify the same for your use with proper handles.

Send(Handle(Parent), 273, 0, Handle(cb_OK))

Regards,
Sandeep
Hi,

try this,
Send(Handle(this), 277, 1, Long(0,0))

http://www.rgagnon.com/pbdetails/pb-0175.html

Cheers,
Rosh

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial