Page 1 of 1

How to send special character (e.g. key up/down) to control?

Posted: Wed May 07, 2014 9:57 am
by mol
Hi!
I want to move BROWSE control position by application one row up/down.
I've use used such a code:

Code: Select all

 db->(DBSkip(-1))
 Form1.BROWSE.Value := db->(recno())
but, BROWSE flickers - pointer stays in the same coordinates of screen, but whole data in control scrolls up or down.
When BROWSE has focus - pointer moves up or down without scrolling whole data.
So, I want to send to BROWSE key up or key down to avoid flickering.

How to do it?

Regards, Marek

Re: How to send special character (e.g. key up/down) to cont

Posted: Wed May 07, 2014 11:54 am
by gfilatov
mol wrote:Hi!
I want to move BROWSE control position by application one row up/down.
...
How to do it?
Hi Marek,

No need to send the up/down keys to your Browse.

Please use the internal functions _BrowseUp(ControlName , ParentForm) and _BrowseDown(ControlName , ParentForm) instead.

Hope that helps :idea:

Re: How to send special character (e.g. key up/down) to cont

Posted: Wed May 07, 2014 12:59 pm
by mol
Wow!
Many thanks for your very very quick response!
It works excellent!