moveIT
New Member
My Environment: Windows XPSP2 with Progress 9.1D07
I am having a problem resizing a smartdatabrowse. Choosing a button makes the browser bigger and smaller. This works fine!
Now I make the browse so small that it becomes scrollable and only some records are visible. Than I want to make the browse bigger and now I get following error:
**All or part of BROWSE xy is being placed outside of FRAME z by setting HEIGHT. (5905)
This error appears within "adm2\browser.p" in procedure "resizeObject" at the red marked line (variable otherWidget is no):
[...]
/* If the width is getting smaller, do the browse first else the frame */
IF pd_width < hBrowse:WIDTH THEN
ASSIGN hBrowse:WIDTH = pd_width - (hBrowse:COLUMN - 1) WHEN NOT otherWidget
hFrame:WIDTH = MAX(pd_width,dSearchSize) NO-ERROR.
ELSE
ASSIGN hFrame:WIDTH = MAX(pd_width,dSearchSize)
hBrowse:WIDTH = pd_width - (hBrowse:COLUMN - 1) WHEN NOT otherWidget
NO-ERROR.
ASSIGN hBrowse:HEIGHT = pd_height - (hBrowse:ROW - 1) WHEN NOT otherWidget NO-ERROR.
/* Error 6422 is given because the browse requires minimum 2 rows in viewport.*/
IF ERROR-STATUS:ERROR AND ERROR-STATUS:GET-NUMBER(1) = 6422 THEN
DO:
/* Make the browse as low as allowed */
hBrowseOWN = 2.
pd_Height = hBrowse:HEIGHT + (hBrowse:ROW - 1).
END.
hFrame:HEIGHT = pd_height NO-ERROR.
[...]
Can anyone help me with my problem?
How can error 5905 appear although this ASSIGN-statement has set the option NO-ERROR?
Why does it work fine as long as the browse is not set to scrollable?
I am having a problem resizing a smartdatabrowse. Choosing a button makes the browser bigger and smaller. This works fine!
Now I make the browse so small that it becomes scrollable and only some records are visible. Than I want to make the browse bigger and now I get following error:
**All or part of BROWSE xy is being placed outside of FRAME z by setting HEIGHT. (5905)
This error appears within "adm2\browser.p" in procedure "resizeObject" at the red marked line (variable otherWidget is no):
[...]
/* If the width is getting smaller, do the browse first else the frame */
IF pd_width < hBrowse:WIDTH THEN
ASSIGN hBrowse:WIDTH = pd_width - (hBrowse:COLUMN - 1) WHEN NOT otherWidget
hFrame:WIDTH = MAX(pd_width,dSearchSize) NO-ERROR.
ELSE
ASSIGN hFrame:WIDTH = MAX(pd_width,dSearchSize)
hBrowse:WIDTH = pd_width - (hBrowse:COLUMN - 1) WHEN NOT otherWidget
NO-ERROR.
ASSIGN hBrowse:HEIGHT = pd_height - (hBrowse:ROW - 1) WHEN NOT otherWidget NO-ERROR.
/* Error 6422 is given because the browse requires minimum 2 rows in viewport.*/
IF ERROR-STATUS:ERROR AND ERROR-STATUS:GET-NUMBER(1) = 6422 THEN
DO:
/* Make the browse as low as allowed */
hBrowseOWN = 2.
pd_Height = hBrowse:HEIGHT + (hBrowse:ROW - 1).
END.
hFrame:HEIGHT = pd_height NO-ERROR.
[...]
Can anyone help me with my problem?
How can error 5905 appear although this ASSIGN-statement has set the option NO-ERROR?
Why does it work fine as long as the browse is not set to scrollable?