Highlighted
Absent Member.
Absent Member.
350 views

[archive] Grid Focus

[Migrated content. Thread originally posted on 06 September 2004]

There is any way to know when a grid get the focus and when a grid loose the focus?

I make some test with different events and exception, but dont get any solution, sure i doing bad.

Thanks for your help
0 Likes
5 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid Focus

What kind of events are you monitoring?
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid Focus

I think i resolve it with after & before program events
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid Focus

Note that BEFORE and AFTER procedures are not real event handlers. You should declare an EVENT PROCEDURE for the grid component. If you then look up the documentation on GRID events 5.10.3 in User Interface Programming, you will see a number of events that come to play.

I'd suggest you check out events CMD-GOTO, MSG-BEGIN-ENTRY, MSG-FINISH-ENTRY, MSG-CANCEL-ENTRY, MSG-GOTO-CELL, MSG-GOTO-CELL-MOUSE to see if any of these is what you are looking for.

If you look in the samples directory, there is a program gridctl.cbl, which illustrates the use of event procedures with a grid.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid Focus

Can you tell me where the gridctl.cbl is located in the sample programs? I am trying to figure out how to work with the grid control and this program that you described seems like it may answer some of my questions. Thanks.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid Focus

C:\Acucorp\Acucbl700\AcuGT\sample\samplprj\source

Where C: should be substituted with your choice of drive for the installation.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.