Kbase P22718: CURSOR-OFFSET attribute returns "?" when the focus is not on the requested fill-in widget
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Verified
FACT(s) (Environment):
Progress 9.x
SYMPTOM(s):
CURSOR-OFFSET attribute returns "?" when the focus is not on the requested fill-in widget
The following procedure describe the "new" CURSOR-OFFSET behavior:
DEF VAR ff AS CHARACTER NO-UNDO.
DEF BUTTON btn-test LABEL 'Push' SIZE 10 BY 2.
DEFINE FRAME frame-1 ff AT COL 10 ROW 1 NO-LABEL
btn-test AT COL 10 ROW 3
WITH AT COL 1 ROW 1 WIDTH 50.
ON 'choose' of btn-test
MESSAGE 'On choose: ' ff:CURSOR-OFFSET.
ON 'leave':U OF ff IN FRAME FRAME-1
MESSAGE 'ON LEAVE ' SELF:CURSOR-OFFSET.
ENABLE ALL WITH FRAME frame-1.
DO ON ERROR UNDO, LEAVE ON ENDKEY UNDO , LEAVE:
WAIT-FOR CLOSE OF FRAME frame-1.
END.
CAUSE:
The CURSOR-OFFSET Attribute only applies to Browse-cell, Editor and Fill-in widgets. The above code attempts to query the CURSOR-OFFSET Attribute for a button and a frame.
FIX:
Query the CURSOR-OFFSET Attribute only for Browse-cell, Editor and Fill-in widgets.