home *** CD-ROM | disk | FTP | other *** search
-
- File: butclass.doc
- Description: butclass documentation.
- Copyright: (C) Copyright 1995 Doguet Emmanuel.
- All Rights Reserved.
-
- ------------------------------------------------------------------------------
-
- TABLE OF CONTENTS
-
- butclass/--background--
- butclass/Methods
- butclass/Attributes
-
- butclass/--background-- butclass/--background--
-
- NAME
- Class: butclass
- Superclass: baseclass
- Include File: "butclass.h"
-
- FUNCTION
- To provide you a new button class with new features.
- You can with it SET LABELS, LABEL-COLOR, FRAME COLOR ON THE FLY.
- It allow you too, to do some justification for labels.
-
- Objects from this class send out the following attribute pairs in
- their notification messages:
-
- GA_ID - Gadget object ID.
-
- NOTE
- This class is provided as a link-library. 2 versions, for DICE and
- for SAS/C.
-
- Also your program must open the following libraries:
-
- intuition.library - V37 or better.
- graphics.library - V37 or better.
- utility.library - V37 or better.
- bgui.library - V39 or better.
- keymaps.library -
-
- Ofcourse these libraries must remain open until you are done using
- the class.
-
-
- butclass/Methods butclass/Methods
-
- NEW METHODS
- None.
-
- CHANGED METHODS
- None.
-
- butclass/Attributes butclass/Attributes
-
- NOTE
- All baseclass attributes are also valid for this class.
-
-
- NAME
- BUT_Label -- ( UBYTE * )
-
- FUNCTION
- Set the labels used for the button. This must point to
- NULL-terminated string pointer.
- For set an underscore, use the '_' caracter like: "_Ok".
-
-
- Default is NULL - Applicability is (ISG)
-
-
-
- NAME
- BUT_ClipText -- ( BOOL )
-
- FUNCTION
- If TRUE, the width of the button can be smaller than the width of the
- button-label.
-
- Default is FALSE - Applicability is (IG)
-
-
-
- NAME
- BUT_Justify -- ( BOOL )
-
- FUNCTION
- If TRUE, the button will be in justification mode. The class search
- in the label-string the BSEQ_J value, and do a justification at the
- placement of all BSEQ_J values.
-
- eg: label= BSEQ_J "Hello" BJEQ_J "Jan" BJEQ_J
-
- will do: **********************
- * Hello Jan *
- **********************
-
-
- Default is FALSE. Applicability is (IG).
-
-
-
- NAME
- BUT_LabelPen -- ( ULONG )
-
- FUNCTION
- Set the color of the label.
-
- Applicability is (ISG).
-
-
-
- NAME
- BUT_SelectedLabelPen -- ( ULONG )
-
- FUNCTION
- Set the color of the label when button was selected.
-
- Applicability is (ISG).
-
-
-
- NAME
- BUT_TextFont -- ( struct TextFont * )
-
- FUNCTION
- Font of button. Must be opened before with OpenDiskFont.
-
- Applicability is (I).
-
-
- NAME
- BUT_Underscore -- ( ULONG )
-
- FUNCTION
-
- Set or get the character that marks the character to be
- undercored.
- Normally the underscored character is used to mark a key
- which can be used to control gadget. Example:
-
- BUT_Underscore, '_'
-
- Will underscore the 'O' character in the following label:
-
- "_Open"
-
- Default is 0. Applicability is (I).
-