Scrolling Browser Down

Posted by atuldalvi123 on 22-Jan-2016 09:11

Is there any browser property or method that we can use to show scrolling bars specially VERTICAL scroll bar even if it has no records to scroll down.

DEFINE VARIABLE q1 AS HANDLE NO-UNDO.

DEFINE VARIABLE hObj AS HANDLE NO-UNDO.
DEFINE VARIABLE hBuff AS HANDLE NO-UNDO.
DEFINE VARIABLE hRepBrowse AS HANDLE NO-UNDO.
DEFINE VARIABLE rNextRowId AS ROWID NO-UNDO.

CREATE BROWSE hRepBrowse ASSIGN

QUERY = q1
ROW-MARKERS = FALSE
FRAME = FRAME f1:HANDLE
HIDDEN = FALSE
NO-VALIDATE = TRUE
WIDTH = 25
HEIGHT = 9
ROW = 2
SEPARATORS = TRUE
SENSITIVE = TRUE
.

.

.

CREATE QUERY q1.
q1:ADD-BUFFER(hBuff).
hRepBrowse:QUERY = q1.
hRepBrowse:ADD-COLUMNS-FROM(hBuff:NAME).
q1:QUERY-PREPARE("FOR EACH " + hBuff:NAME).
q1:QUERY-OPEN().

All Replies

Posted by Matt Gilarde on 22-Jan-2016 09:21

Setting AlwaysEnableBrowseVertScrollbar=yes in the Startup section of the registry or ini file should accomplish what you're looking for.

Posted by atuldalvi123 on 22-Jan-2016 09:35

Getting unknown attribute error in program. Cant we use it while declaring browse ?

Posted by Matt Gilarde on 22-Jan-2016 09:37

It's not ABL syntax. It's a setting that you add in the Startup section of the registry or your ini file. It will affect all browses in the session.

Posted by atuldalvi123 on 22-Jan-2016 09:39

Don't we have any other option just to test it in procedure editor ?

Posted by Matt Gilarde on 22-Jan-2016 09:41

Adding it to the registry or ini file is the only way to set it.

This thread is closed