TABLE OF CONTENTS

BetterString.mcc/BetterString.mcc
BetterString.mcc/MUIA_BetterString_SelectSize
BetterString.mcc/MUIA_BetterString_StayActive
BetterString.mcc/MUIM_BetterString_ClearSelected
BetterString.mcc/MUIM_BetterString_Insert

BetterString.mcc/BetterString.mcc

BetterString is a stringgadget replacement. It is created for MUI, so using it
should eliminate the problems with the original BOOPSI stringclass.
The class offers the user to do number arithmetic, like increase, decrease and
bin<->hex conversion. It has filename completion, ability to mark, cut, copy
and paste text - Both via mouse and keyboard. The length of the contents
buffer will dynamically be expanded to hold all of what the user type (unless
a maximum length is given)

This autodoc only describes what is new, compared to the original "String.mui".
All tags and methods of the old String.mui is supported, except edit hooks.

For feedback write to: Allan Odgaard
Dagmarsgade 36
DK-2200 Copenhagen
email: Duff@DIKU.DK
url: http://www.DIKU.dk/students/duff/
Todo
ŻŻŻŻŻŻ
The string can be split into different columns (useful for a gadget holding
a date etc.) The class can be set to remember what has been previously
typed, and allows the user to go back and forth in the history buffer.



GO TO CONTENTS

BetterString.mcc/MUIA_BetterString_SelectSize

MUIA_BetterString_SelectSize -- [.SG], LONG

Get or set the number of selected characters.
A negative value indicates that the marking has happend right to left.
A 0 means nothing is marked.

SEE ALSO
MUIA_String_BufferPos (MUIA_String.Doc)
MUIA_String_BufferPos (MUIA_String.Doc)


GO TO CONTENTS

BetterString.mcc/MUIA_BetterString_StayActive

MUIA_BetterString_StayActive -- [ISG], BOOL

Setting this attribute to TRUE will let the stringgadget stay active,
even when the user hits return, or clicks outside the gadgets area.



GO TO CONTENTS

BetterString.mcc/MUIM_BetterString_ClearSelected

MUIM_BetterString_ClearSelected

SYNOPSIS
DoMethod(obj, MUIM_BetterString_ClearSelected);

Clear all marked text, if any!

RESULT
NONE



GO TO CONTENTS

BetterString.mcc/MUIM_BetterString_Insert

MUIM_BetterString_Insert

SYNOPSIS
DoMethod(obj, MUIM_BetterString_Insert, STRPTR text, LONG pos);

This will insert the given text.
The position of the inserted text can either be a real position, or:

MUIV_BetterString_Insert_BufferPos
MUIV_BetterString_Insert_StartOfLine
MUIV_BetterString_Insert_EndOfLine


If there isn't enough room to fit the complete string, then it will be
truncated, and the user will get a DisplayBeep().
If the cursor is to the right if the insertion place, then it will be
moved.

RESULT
NONE

SEE ALSO
MUIA_String_Contents (MUIA_String.Doc)