Kbase 12880: How to get a Sel-list to behave like the UIB's prop sheet
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
How to get a Sel-list to behave like the UIB's prop sheet
Here's code that will demonstrate that behavior:
DEF VAR s AS CHAR VIEW-AS SELECTION-LIST MULTIPLE NO-DRAG
SCROLLBAR-V SIZE 25 BY 8 NO-UNDO.
FORM s WITH FRAME a.
s:LIST-ITEMS = "A,B,C,D,E,F,G,H,I,J,K,L,M,N". /* define elements */
s:SCREEN-VALUE = "A,E". /* set screen to 'pre-select' items */
ENABLE s WITH FRAME a.
WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW.
Please note that you still must ASSIGN s somewhere in your code to
store off the values on the screen.
Progress Software Technical Support Note # 12880