home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 19 / AACD19.BIN / AACD / Programming / AWNP / AWNP-Docs / label.doc < prev    next >
Encoding:
Text File  |  2000-12-01  |  2.1 KB  |  81 lines

  1. Label gadget parameters.
  2. -------------------------
  3.  
  4. IDME
  5.  
  6. Force this object to be assigned a GID. Normaly no GID is assigned to labels. The definition reply becomes 'ok GID WIDTH HEIGHT'
  7.  
  8. The label produces an image and usually puts it into your GUI right away. To use the label as a child label of a gadget You MUST use the unattached keyword.
  9.  
  10. unattached (ua)
  11.  
  12. The unattached keyword does not produce a gadget. It creates an image to be used. Up to 50 images can be predefined, the last one defined is the first one used. Last In First Out. No GID is assigned EVEN WITH 'IDME'.
  13.  
  14. font=GID
  15.  
  16. This sets the font for the label. The GID points to an ALREADY defined text attribute.
  17.  
  18. Selected=num (s=)
  19.  
  20.  Set the pen number used to render the text.
  21.  
  22. SoftStyle=num (ss=)
  23.  
  24.  Set the soft style for the label. This is a bitmaped decimal number.
  25. example 3=bold + underline
  26.             decimal    bit
  27. NORMAL       0          -
  28. UNDERLINED   1          0
  29. BOLD         2          1
  30. ITALIC       4          2
  31. EXTENDED     8          3
  32.  
  33. gadgettext="Label text"  (gt=)
  34.  
  35.  Set the text of the Label.
  36.  
  37. underscore="CHAR"
  38.  
  39.  Use an alternate character to flag the hotkey for the label. CHAR is a single character. This defaults to underscore '_', changing it will allow an underscore to be used as a plain character in a label.
  40.  
  41. leftjustify  (lj)
  42. rightjustify (rj)
  43.  
  44.  Set the justification of the text for the gadget. Defaults to centerjustify.
  45.  
  46. minwidth=number  (minw=)
  47.  
  48.  Set the minimum width for this gadget
  49.  
  50. minheight=number (minh=)
  51.  
  52.  Set the minimum height for this gadget
  53.  
  54. weightedwidth=number  (weiw=)
  55.  
  56.  Set the weighted width for this gadget
  57.  
  58. weightedheight=number (weih=)
  59.  
  60.  Set the weighted height for this gadget
  61.  
  62. nominalsize  (noms)
  63.  
  64.  Set this gadget to its nominal size.
  65.  
  66. useimage   (ui)
  67.  
  68.  Use the last defined image (bitmap/drawlist/penmap) as the gadgets image.
  69.  
  70. Even
  71.  
  72.  Correct a possible layout problem in the image position. You will probably never use this parameter. Technically it moves th image up one pixel, which is useful when mixing different fonts in the same line.
  73.  
  74. Definition Reply
  75. ----------------
  76.  
  77.  When the image creation is successful the pipe replies with
  78.  
  79. 'ok WIDTH HEIGHT'
  80.  
  81.