Kbase P44430: How to add more widget options in AppBuilder Palette
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/7/2011 |
|
Status: Verified
GOAL:
How to add more widget options in AppBuilder Palette
GOAL:
How to add custom widget options in AppBuilder Palette
GOAL:
How to modify default settings of widgets in AppBuilder Palette
FACT(s) (Environment):
OpenEdge Category: Language (4GL/ABL)
Progress 9.x
OpenEdge 10.x
Windows
FIX:
Adding customized widgets to the AppBuilder Palette can be achieved by creating a custom file (.cst) or modifying an existing templace (available in DLC\src\template).
The following example details how to add extra options for the Text widget with a different text color:
- Create a new file called myText.cst in the working directory.
- Add the following lines:
*TEXT &Default
DESCRIPTION Default Text
*TEXT &GreyText
DESCRIPTION Grey Text
HEIGHT 1
FGCOLOR 7
*TEXT &BlueText
DESCRIPTION Blue Text
HEIGHT 1
FGCOLOR 9
- Go to the AppBuilder Palette and in the Menu option "Use Custom..." add the newly created custom file.
- Click OK and OK again; the palette will refresh.
- Right-click on the Text widget button to see the default and the newly added options.
- In the Palette, select Options > Save Palette to save the changes.