Skip to main content

[Migrated content. Thread originally posted on 01 April 2004]

I have created a grid with VSCROLL, as shown in the attached example. The user have the option to use F5 to refresh the GRID.

When this is done, I save the location of the current cell and resets the GRID:

INQUIRE Form1-Gd-1, CURSOR-X = WS-X
CURSOR-Y = WS-Y.
MODIFY Form1-Gd-1, RESET-GRID = 1.

Then I fill all rows and colums.
When this is done, I activate the cell that was active before the refresh was done with:

MODIFY Form1-Gd-1, CURSOR-X = WS-X
CURSOR-Y = WS-Y.

This works fint - the same cell is active. But the VSCROLL is not at the same position.

Is it possible to change this, so the GRID isn't moved ?

Thanx

[Migrated content. Thread originally posted on 01 April 2004]

I have created a grid with VSCROLL, as shown in the attached example. The user have the option to use F5 to refresh the GRID.

When this is done, I save the location of the current cell and resets the GRID:

INQUIRE Form1-Gd-1, CURSOR-X = WS-X
CURSOR-Y = WS-Y.
MODIFY Form1-Gd-1, RESET-GRID = 1.

Then I fill all rows and colums.
When this is done, I activate the cell that was active before the refresh was done with:

MODIFY Form1-Gd-1, CURSOR-X = WS-X
CURSOR-Y = WS-Y.

This works fint - the same cell is active. But the VSCROLL is not at the same position.

Is it possible to change this, so the GRID isn't moved ?

Thanx
Thanx Davide

I was not aware of the VScroll-pos and HScroll-pos, so now I have solved my problem.

Regards
Humle

[Migrated content. Thread originally posted on 01 April 2004]

I have created a grid with VSCROLL, as shown in the attached example. The user have the option to use F5 to refresh the GRID.

When this is done, I save the location of the current cell and resets the GRID:

INQUIRE Form1-Gd-1, CURSOR-X = WS-X
CURSOR-Y = WS-Y.
MODIFY Form1-Gd-1, RESET-GRID = 1.

Then I fill all rows and colums.
When this is done, I activate the cell that was active before the refresh was done with:

MODIFY Form1-Gd-1, CURSOR-X = WS-X
CURSOR-Y = WS-Y.

This works fint - the same cell is active. But the VSCROLL is not at the same position.

Is it possible to change this, so the GRID isn't moved ?

Thanx
Thanx Davide

I was not aware of the VScroll-pos and HScroll-pos, so now I have solved my problem.

Regards
Humle

[Migrated content. Thread originally posted on 01 April 2004]

I have created a grid with VSCROLL, as shown in the attached example. The user have the option to use F5 to refresh the GRID.

When this is done, I save the location of the current cell and resets the GRID:

INQUIRE Form1-Gd-1, CURSOR-X = WS-X
CURSOR-Y = WS-Y.
MODIFY Form1-Gd-1, RESET-GRID = 1.

Then I fill all rows and colums.
When this is done, I activate the cell that was active before the refresh was done with:

MODIFY Form1-Gd-1, CURSOR-X = WS-X
CURSOR-Y = WS-Y.

This works fint - the same cell is active. But the VSCROLL is not at the same position.

Is it possible to change this, so the GRID isn't moved ?

Thanx
Thanx Davide

I was not aware of the VScroll-pos and HScroll-pos, so now I have solved my problem.

Regards
Humle