Define a Character Mode Application Shell
Create a shell for Uniface applications that run in character mode on any supported platform, such as Unix or Linux.
-
In the U-Bar, click
Browse, select
prj
, then choose the project you want to open. - In the Templates tab of the Resource Browser, select the Character Mode Shell template, and drag and drop it onto the project object in the Structure.
-
Right-click the new application shell and
click Open to open it in the Application Shell Editor.
Notice that the Shell Type property is set to
APC (Character Mode)
. -
Set the Presentation Properties applicable
for your application.
- If you have defined global objects such messages and menus, click >> beside Library and select the application library containing these objects.
- Similarly, select the initial application menus and panels. (These may be overridden by form menus and panels.)
-
Optionally, in the I/O Message
Level property, enter the number that reflects messages you want to record.
I/O messages provide useful debugging information, particularly when you experience performance problems. For more information, see I/O Message Levels.
-
If you want to define your own properties:
- In Window/App, click the More icon () to open the Define Application Shell Properties dialog.
- In the More tab, enter the name and value of the property.
- Click the + icon to insert another property.
-
In the script editor, write ProcScript to
define the application environment and actions required to initialize the application.
For example, use the apStart trigger to set the language and library, or open a database that requires explicit logon information, and activate the first component.
Note: At a minimum, the application shell should activate the default form for the application.
For more information, see trigger apStart.
- Optionally, write code in other triggers to respond to user events and messages from other components.
-
Define the layout of the application shell.
-
Click the More () in the Shell Canvas property to display the Application
Shell Canvas.
This is not a graphical editor, in that the frames are not reflected on the canvas. Instead, it lists individual frame areas which have properties that define the dimensions and characteristics. Uniface automatically specifies the MESSAGE and FORMAREA frames.
- To edit an existing frame definition, position the cursor on the name and press Ctrl, F (^FRAME) to display the Edit Frame dialog. Edit the definitions and click Save.
-
To
define a new frame, position the cursor on a definition (or at the end the existing frames for a
new definition) and press GOLD, F (usually Ctrl, F)
to display the frame properties.
If you have defined drop-down or popup menus, you can define the PULLDOWN and MENU frames to determine their dimensions.
- Set the frame properties. For information on valid values, press F1.
- To control the position of the MESSAGE frame and the PULLDOWN frame, you can set the $MESSAGE_LINE and $MENU_BAR assignment settings.
-
Click the More () in the Shell Canvas property to display the Application
Shell Canvas.
- Click Compile to compile the application shell.