Button Formatting Properties

AutoSize

The AutoSize property sets or gets whether autosize is active. Use to resize control automatically based on caption length.

bMode = Button.AutoSize
Button.AutoSize = bMode

Element

Description

bMode

True indicates that autosize is active; false indicates that autosize is not active.

Flat

The Flat property sets or gets a value that determines the appearance of the Button, whether flat or 3D.

bMode = Button.Flat
Button.Flat = bMode

Element

Description

bMode

True indicates that the button has a flat appearance; false indicates that Button has the more common 3D appearance.

LeftText

The LeftText property sets or gets a value that determines whether the Button's caption is left aligned.

bMode = Button.LeftText
Button.LeftText = bMode

Element

Description

bMode

True indicates that the caption is left-aligned; false indicates that it is not.

Multiline

The Multiline property sets or gets a value that determines whether the Button's caption can wrap to multiple lines.

bMode = Button.Multiline
Button.Multiline = bMode

Element

Description

bMode

True indicates that Button's caption can occupy multiple lines; false indicates that it can only occupy a single line.

PushLike

The PushLike property sets or gets a value that determines the appearance of a checkbox. This property is only useful for checkboxes.

bMode = Button.PushLike
Button.PushLike = bMode

Element

Description

bMode

True indicates that the checkbox should appear to user as a push button; false indicates that it does not.

Text

The Text property sets or gets the caption of the Button. Can be set via Properties page or dynamically at run-time.

stringText = Button.Text
Button.Text = stringText

Element

Description

stringText

A string that indicates the Button's caption.

UseBitmap and UseIcon

The UseBitmap property sets or gets a value that determines whether the Button uses a bitmap or an icon for its face.

bMode = Button.UseBitmap        bMode = Button.UseIcon
Button.UseBitmap = bMode        Button.UseIcon = bMode

Element

Description

bMode

True indicates that the Button uses a bitmap or icon image; False that it uses only the text caption.