Kbase 18877: UIB - Unable to Use _UIB_CRT.P to Create a RADIO-SET
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/1/1999 |
|
SUMMARY:
If you try to use the _UIB_CRT.P procedure to add a RADIO-SET
containing LIST-ITEMS to a window in the UIB it will not work. The
RADIO-BUTTONS option is flagged as not being valid and using LIST-
ITEMS will not work because the LIST-ITEMS option needs a CHR(10)
between each item and that will not work for radio-sets.
SOLUTION:
Two workarounds for this problem are:
1) Use the following code and adjust the height parameter in the
call. It is not possible to specify the labels; the user will
need to change them manually.
DEFINE VARIABLE X AS INTEGER NO-UNDO.
RUN adeuib/_uib_crt.p (INPUT ?,
INPUT "RADIO-SET",
INPUT "SPECIAL:" + CHR(10) +
"NAME SomeName" + CHR(10),
INPUT 10,
INPUT 10,
INPUT 4,
INPUT 25,
OUTPUT X).
2) Instantiate a customized radio-set and export it to a .wx file
and then use the following code to import it from the .wx file
into the window.
RUN adeuib/_qssuckr.p ("SomeFile.wx", "", "IMPORT", False).