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

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

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

Post 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
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

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

Post 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:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

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

Post by mol »

Wow!
Many thanks for your very very quick response!
It works excellent!
Post Reply