Contents | Index | < Browse | Browse >
TITLE apen/bpen/drawmode/XJustify/YJustify/Title
With this you can add a fancy title to almost any type of gadget.
It does not replace the title you may have given through the
gadget's specification and which is rendered by GadTools. This
title is separate and is rendered by Gui4Cli. It has many options:
apen, bpen : are the color numbers of the pens that will be used
to render the text. "bpen" is the shadow color.
drawmode : can be : PLAIN, SHADOW or OUTLINE
XJustify : can be : LEFT, CENTER, RIGHT, LSIDE or RSIDE.
This determines the horizontal position of the title.
LSIDE and RSIDE mean the left/right sides of the gadget,
YJustify : can be : ABOVE, TOP, MIDDLE, BOTTOM, or BELOW
This determines the vertical position of the title.
If its TOP, and if XJustify is Left, Right or Center
the title will be drawn on the gadget line.
Title : is the text of the title.
The left/right margins and the text position can be further refined
with the SET MARGINS command.
example:
> xListView 10 10 100 200 '' var file 0 DIR
GadID 3
Attr TITLE "2/1/SHADOW/CENTER/ABOVE/This is my title"
The title can be changed by using the SETATTR command:
> SetAttr MyGui.gc/3 TITLE "2/1/OUTLINE/LEFT/BELOW/I changed it!"
> Redraw #this ; Must redraw to make the change visible..