widgets

Available in:
TRIMapp TRIMrep TRIMrpc GUIapp GUIrep Standalone PL
. . . X X .

Description

Widgets may be required in GUI applications. The following 'Action Buttons' have been used in previous applications and are posted here for your use. To download these gif files while in your browser, place the mouse arrow over your widget, right click to open the drop down menu and select the option to download an image or picture. You may want to 'touch up' these buttons using an image editor.

[left arrow] [right arrow] [up arrow] [up arrow with bar] [# sign]
[left arrow with bar] [right arrow with bar] [down arrow] [down arrow with bar] .

Example

To include a widget in an application, follow these simple steps:

1. Copy the image file from disk to client memory. In this example, dnarrow.gif is copied from the application server. This code is placed in the main trigger.
{
char widgets_dir
widgets_dir= "/usr2/trim/widgets/"          /* path to gif files on Unix server */
file_copy(g.widgets_dir^^"dnarrow.gif", "gui!image:nextan.gif",  "b");
}
2. Create an Action Button by right clicking on the application to open a drop down menu and select 'Action'. In the 'Define Action' dialog box enter a name for your button and the dimensions (i.e. Name = 'nextstruct'; Height = '17'; Width = '17'), and check 'Bit Map' and 'Pixel' Size. Finally, create the trigger that defines the action for the button. Hit 'OK' and your button will appear.