Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 12 APR 1999 04:44:26AM Celest Celest wrote:

Hi

I would like to start a subroutine when pressing PgUp, PgDn or Enter in a Edittable rather then just go to top and botton in the Edittable.

Is this possible ?.

Regards

Celest


At 12 APR 1999 10:35PM Donald Bakke wrote:

Celest,

In the world available to mere mortals (i.e. anybody who is not Gene, Cameron, or Carl Pates in this case), you can't get this kind of feature.

PgUp, PgDn, and Enter are built in navigational keys of the edittable (or, more technically, the datatable control underneath it all). Therefore they can't be scanned the same way regular keystrokes (i.e. 1, 2, 3, a, b, c, etc.) can via the CHAR event. We can, of course, detect their effects, namely the POSCHANGED event they will generate.

If I'm correct, Gene is supposed to be working on a way for us to detect these navigational keystrokes but I don't really know where this is at. Carl would most likely say that you need to sub-class the control as if everybody in the world can do that (much less know what that means)… :)

The only other option I can think of is to use the Window's API function GetAsyncKeyState(). This can possibly be used to tell you what keystroke is currently being depressed but catching it at the time you need it can be tricky.

[email protected]

SRP Computer Solutions


At 14 APR 1999 11:54AM Rob Misek wrote:

Celest,

The only thing that I could add to Don's posting of suggestions would be to take a look at the VScroll event. This event could aid you with the Pgup and Pgdn instances.

Rob

Revelation

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/0f8d6306755cc7fc8525675100300387.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1