Kbase 13520: How to make a BUTTON LABEL with more than one line of text
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to make a BUTTON LABEL with more than one line of text
Some users like the idea of having button labels with more than one
line of text. For example:
,-----------.
| Exit |
| Program |
`-----------'
Progress does not allow any means to do this in the 4GL due to the
fact that such a label violates the style rules for both Motif and
MS-Windows. However, there is a way to do this. The user should
use an IMAGE on the button instead of a label. Give the image a solid
background color that matches that of the other buttons in the UI,
then add the multi-line label text to the image. When the image is
attached to the button in the 4GL it will give the effect desired.
To associate the image with the button, edit the property sheet of
the button via the UIB. Click on the Up/Down/Insensitive image icons
and specify the path of the desired image(s) for each state. If no
down image is specified, the Up image will be used. Alternatively,
you can load images using the LOAD-IMAGE-UP|DOWN|INSENSITIVE methods.
The MS-Windows Paintbrush application can be used to create .bmp
files (or any other image editor).
Progress Software Technical Support Note # 13520