Section |
---|
Column |
---|
| The Goal of This ExampleShow how a Universal Display File can work in tandem with a Rich Display File's List Box Widget's choices URL property. You could also utilize the choices URL property within a Combo Box Widget, but this example will be using a List Box Widget. Info |
---|
title | Files Used by This Example |
---|
| Below are downloadable versions of the files used in this example: |
|
|
...
Section |
---|
Column |
---|
| Code Block |
---|
language | cpp |
---|
title | Rich Display RPG Source Code |
---|
firstline | 000100 |
---|
linenumbers | true |
---|
collapse | true |
---|
| **FREE // This program is utilizing FREE-FORMAT RPG
ctl-opt DFTACTGRP(*NO);
dcl-f SHOWCOLORD WorkStn
// Use the ProfoundUI Handler as the handler in this program
Handler('PROFOUNDUI(HANDLER)');
// Run program until the exit button is pressed
Dou BTNEXIT = *On;
ExFmt SHOWCOLORS;
EndDo;
// End program
*InLr = *On;
RETURN; |
|
Column |
---|
| Note |
---|
| Hard coded libraries are a bad practice! We strongly suggest you do not use hard coded libraries! |
|
|
...
The Result
After compiling the Universal Display File (COLORSD
) and the Rich Display File (SHOWCOLORD
) the corresponding RPG programs, COLORSR
and SHOWCOLORR
, may be compiled and then the program run.
...
Section |
---|
Column |
---|
|
|
Column |
---|
| Info |
---|
| Actions in Order: - Select Silver -> Click Ok
Select Red - Scroll down using ▼ of the scrollbar
- Double-click Olive to select and pass to program
- Select Maroon -> Press "Enter" on keyboard
- Click Exit to exit the program
|
|
|
...