a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Other:
 chooser_gc
  --datasheet--
  --styleguide--
  AllocChooserNodeA
  CHOOSER_GetClass
  FreeChooserNode
  GetChooserNodeAttrsA
  SetChooserNodeAttrsA
Include
GuruMeditation
Docs » Autodocs » chooser_gc » SetChooserNodeAttrsA

NAME

        SetChooserNodeAttrsA -- Set attributes of a Chooser node.

SYNOPSIS

        VOID SetChooserNodeAttrs(struct Node *, Tag, ...)
SetChooserNodeAttrs(node, firsttag, ...)
VOID SetChooserNodeAttrsA(struct Node *, struct TagItem *)
SetChooserNodeAttrsA(node, taglist)

FUNCTION

        Changes attributes for a Chooser node.  Since the Chooser
class uses a private node structure, this is the only way to change
node attributes.
You may NOT change node attributes when the node is in a list
attached to a Chooser gadget. You must first detach the list
with CHOOSER_Labels, ~0 before you can change attributes, and
then re-attach the list.

TAGS

        CNA_Text (STRPTR)
Text string to appear as a line in the Chooser menu. This tag
must be supplied for the node.
CNA_Image (struct Image *)
Image to be placed to the left of the CNA_Text in the Chooser menu.
CNA_SelImage (struct Image *)
Selected state Image to be placed to the left of the CNA_Text in
the Chooser menu.
CNA_ReadOnly (BOOL) (V41.4)
Item will not be highlight rendered when selected.
CNA_Disabled (BOOL) (V41.5)
Item can not be selected. No GADGETUP message is generated.
CNA_Separator (BOOL) (V41.7)
Separator (~~~~) Bar Item can not be selected. Simular to the
separator bars in Intuition menus. No GADGETUP message is generated.

INPUTS

        node - Node whose attributes you are changing.
taglist - Tag list of attributes to change.

SEE ALSO

GetChooserNodeAttrsA()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Anthrox

FLT
ATX
TBL
SNT

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se