Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR9, RDC viewer, Up/Down keys don't work

Status
Not open for further replies.

AptToWonder

Programmer
May 8, 2003
7
UA
Crystal reports 9.2.3.611,
RDC: CrViewer 9.2,
RDC: CRAXDRT 9.0

CrViewer shows no reaction to Up/Down keys.

Do the developers think that the mouse is the only input device in the world?
I'd like to see them explaining that to my users - operators who spend ten hours a day looking through hundreds of reports?!

What's wrong with the viewer?

By the way, I've tried to subclass the viewer window procedure and got nothing. I see no wm_keydown messages (just wm_keyup that are useless). They vanish somewhere before the window procedure. The last place I see the wm_keydown messages is a keyboard hook, but there are some difficulties to intercept the wm_keydown there.
 
A decision has been found.
The viewer gets message $BD00 when the working area gets wm_keydown message (wparam and lparam are the same).
Then the viewer translates these messages into scroll messages.
For some unknown reasons sometimes (e.g. in the mentioned above version) this step fails.
So, it's just necessary to subclass viewer's window procedure and translate message $BD00 manually.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top