HomeUniDoc
...

Package axcontrol

Overview ▾

Index ▾

type CheckBoxDataControl
    func (c CheckBoxDataControl) GetValue() bool
    func (c CheckBoxDataControl) SetValue(value bool)
type ComboBoxDataControl
    func (c ComboBoxDataControl) GetValue() string
    func (c ComboBoxDataControl) SetValue(value string)
type CommandButtonControl
    func (c *CommandButtonControl) GetBackColor() uint32
    func (c *CommandButtonControl) GetCaption() string
    func (c *CommandButtonControl) GetForeColor() uint32
    func (c *CommandButtonControl) GetHeight() uint32
    func (c *CommandButtonControl) GetWidth() uint32
    func (c *CommandButtonControl) SetBackColor(backColor uint32)
    func (c *CommandButtonControl) SetCaption(caption string)
    func (c *CommandButtonControl) SetForeColor(foreColor uint32)
    func (c *CommandButtonControl) SetHeight(height uint32)
    func (c *CommandButtonControl) SetWidth(width uint32)
type Control
    func ImportFromFile(storagePath string) (*Control, error)
    func (ctrl *Control) ExportToByteArray() ([]byte, error)
type ControlChoice
type FmPictureAlignment
type FmPictureSizeMode
type ImageControl
type LabelControl
    func (c *LabelControl) GetBackColor() uint32
    func (c *LabelControl) GetCaption() string
    func (c *LabelControl) GetForeColor() uint32
    func (c *LabelControl) GetHeight() uint32
    func (c *LabelControl) GetWidth() uint32
    func (c *LabelControl) SetBackColor(backColor uint32)
    func (c *LabelControl) SetCaption(caption string)
    func (c *LabelControl) SetForeColor(foreColor uint32)
    func (c *LabelControl) SetHeight(height uint32)
    func (c *LabelControl) SetWidth(width uint32)
type ListBoxDataControl
    func (c ListBoxDataControl) GetValue() string
    func (c ListBoxDataControl) SetValue(value string)
type OptionButtonDataControl
    func (c OptionButtonDataControl) GetValue() bool
    func (c OptionButtonDataControl) SetValue(value bool)
type ScrollBarControl
    func (c *ScrollBarControl) GetBackColor() uint32
    func (c *ScrollBarControl) GetForeColor() uint32
    func (c *ScrollBarControl) GetHeight() uint32
    func (c *ScrollBarControl) GetMax() int32
    func (c *ScrollBarControl) GetMin() int32
    func (c *ScrollBarControl) GetPosition() int32
    func (c *ScrollBarControl) GetWidth() uint32
    func (c *ScrollBarControl) SetBackColor(backColor uint32)
    func (c *ScrollBarControl) SetForeColor(foreColor uint32)
    func (c *ScrollBarControl) SetHeight(height uint32)
    func (c *ScrollBarControl) SetMax(max int32)
    func (c *ScrollBarControl) SetMin(min int32)
    func (c *ScrollBarControl) SetPosition(position int32)
    func (c *ScrollBarControl) SetWidth(width uint32)
type SpinButtonControl
    func (c *SpinButtonControl) GetBackColor() uint32
    func (c *SpinButtonControl) GetForeColor() uint32
    func (c *SpinButtonControl) GetHeight() uint32
    func (c *SpinButtonControl) GetMax() int32
    func (c *SpinButtonControl) GetMin() int32
    func (c *SpinButtonControl) GetPosition() int32
    func (c *SpinButtonControl) GetWidth() uint32
    func (c *SpinButtonControl) SetBackColor(backColor uint32)
    func (c *SpinButtonControl) SetForeColor(foreColor uint32)
    func (c *SpinButtonControl) SetHeight(height uint32)
    func (c *SpinButtonControl) SetMax(max int32)
    func (c *SpinButtonControl) SetMin(min int32)
    func (c *SpinButtonControl) SetPosition(position int32)
    func (c *SpinButtonControl) SetWidth(width uint32)
type TextBoxDataControl
    func (c TextBoxDataControl) GetValue() string
    func (c TextBoxDataControl) SetValue(value string)
type ToggleButtonDataControl
    func (c ToggleButtonDataControl) GetValue() bool
    func (c ToggleButtonDataControl) SetValue(value bool)

Package files

axcontrol.go command_button.go const.go control_base.go guid_and_picture.go image.go label.go morph.go scrollbar.go spin_button.go stream.go

type CheckBoxDataControl

CheckBoxDataControl is a representation of a check box ActiveX form.

type CheckBoxDataControl struct {
    // contains filtered or unexported fields
}

func (CheckBoxDataControl) GetValue

func (c CheckBoxDataControl) GetValue() bool

GetValue gets a value from a control which value can be represented as boolean (on/off).

func (CheckBoxDataControl) SetValue

func (c CheckBoxDataControl) SetValue(value bool)

SetValue sets a value for a control which value can be represented as boolean (on/off).

type ComboBoxDataControl

ComboBoxDataControl is a representation of a combo box ActiveX form.

type ComboBoxDataControl struct {
    // contains filtered or unexported fields
}

func (ComboBoxDataControl) GetValue

func (c ComboBoxDataControl) GetValue() string

GetValue gets a value from a control which value can be represented as a string.

func (ComboBoxDataControl) SetValue

func (c ComboBoxDataControl) SetValue(value string)

SetValue sets a value for a control which value can be represented as a string.

type CommandButtonControl

CommandButtonControl is a representation of a commandButton ActiveX form.

type CommandButtonControl struct {
    // contains filtered or unexported fields
}

func (*CommandButtonControl) GetBackColor

func (c *CommandButtonControl) GetBackColor() uint32

GetBackColor gets a button text color value for a system palette from a commandButton control.

func (*CommandButtonControl) GetCaption

func (c *CommandButtonControl) GetCaption() string

GetCaption gets a caption string from a commandButton control.

func (*CommandButtonControl) GetForeColor

func (c *CommandButtonControl) GetForeColor() uint32

GetForeColor gets a button text color value for a system palette from a commandButton control.

func (*CommandButtonControl) GetHeight

func (c *CommandButtonControl) GetHeight() uint32

GetHeight returns height of the CommandButton in HIMETRIC (0.01mm)

func (*CommandButtonControl) GetWidth

func (c *CommandButtonControl) GetWidth() uint32

GetWidth returns width of the CommandButton in HIMETRIC (0.01mm)

func (*CommandButtonControl) SetBackColor

func (c *CommandButtonControl) SetBackColor(backColor uint32)

SetBackColor sets a button text color value from a system palette for a commandButton control.

func (*CommandButtonControl) SetCaption

func (c *CommandButtonControl) SetCaption(caption string)

SetCaption sets a caption string for a commandButton control.

func (*CommandButtonControl) SetForeColor

func (c *CommandButtonControl) SetForeColor(foreColor uint32)

SetForeColor sets a button text color value from a system palette for a commandButton control.

func (*CommandButtonControl) SetHeight

func (c *CommandButtonControl) SetHeight(height uint32)

SetHeight sets height of the CommandButton in HIMETRIC (0.01mm)

func (*CommandButtonControl) SetWidth

func (c *CommandButtonControl) SetWidth(width uint32)

SetWidth sets width of the CommandButton in HIMETRIC (0.01mm)

type Control

Control represents an ActiveX control wrapper.

type Control struct {
    TargetAttr string
    Ocx        *activeX.Ocx
    Choice     *ControlChoice
    // contains filtered or unexported fields
}

func ImportFromFile

func ImportFromFile(storagePath string) (*Control, error)

ImportFromFile makes a Control from a file in a storage.

func (*Control) ExportToByteArray

func (ctrl *Control) ExportToByteArray() ([]byte, error)

ExportToByteArray makes a byte array from a control as it is stored in .bin files.

type ControlChoice

ControlChoice represents an ActiveX control inside a wrapper.

type ControlChoice struct {
    CheckBox      *CheckBoxDataControl
    TextBox       *TextBoxDataControl
    ListBox       *ListBoxDataControl
    ComboBox      *ComboBoxDataControl
    OptionButton  *OptionButtonDataControl
    ToggleButton  *ToggleButtonDataControl
    Label         *LabelControl
    Image         *ImageControl
    SpinButton    *SpinButtonControl
    CommandButton *CommandButtonControl
    ScrollBar     *ScrollBarControl
    // contains filtered or unexported fields
}

type FmPictureAlignment

FmPictureAlignment represents one of the five picture aignments according to MS-OFORMS document.

type FmPictureAlignment byte

FmPictureAignment constants

const (
    FmPictureAlignmentTopLeft FmPictureAlignment = iota
    FmPictureAlignmentTopRight
    FmPictureAlignmentCenter
    FmPictureAlignmentBottomLeft
    FmPictureAlignmentBottomRight
)

type FmPictureSizeMode

FmPictureSizeMode represents one of the three picture size modes according to MS-OFORMS document.

type FmPictureSizeMode byte

FmPictureSizeMode constants

const (
    FmPictureSizeModeClip FmPictureSizeMode = iota
    FmPictureSizeModeStretch

    FmPictureSizeModeZoom
)

type ImageControl

ImageControl is a representation of an image ActiveX form.

type ImageControl struct {
    // contains filtered or unexported fields
}

type LabelControl

LabelControl is a representation of a label ActiveX form.

type LabelControl struct {
    // contains filtered or unexported fields
}

func (*LabelControl) GetBackColor

func (c *LabelControl) GetBackColor() uint32

GetBackColor gets a button text color value for a system palette from a label control.

func (*LabelControl) GetCaption

func (c *LabelControl) GetCaption() string

GetCaption gets a caption string from a label control.

func (*LabelControl) GetForeColor

func (c *LabelControl) GetForeColor() uint32

GetForeColor gets a button text color value for a system palette from a label control.

func (*LabelControl) GetHeight

func (c *LabelControl) GetHeight() uint32

GetHeight returns height of the Label in HIMETRIC (0.01mm)

func (*LabelControl) GetWidth

func (c *LabelControl) GetWidth() uint32

GetWidth returns width of the Label in HIMETRIC (0.01mm)

func (*LabelControl) SetBackColor

func (c *LabelControl) SetBackColor(backColor uint32)

SetBackColor sets a button text color value from a system palette for a label control.

func (*LabelControl) SetCaption

func (c *LabelControl) SetCaption(caption string)

SetCaption sets a caption string for a label control.

func (*LabelControl) SetForeColor

func (c *LabelControl) SetForeColor(foreColor uint32)

SetForeColor sets a button text color value from a system palette for a label control.

func (*LabelControl) SetHeight

func (c *LabelControl) SetHeight(height uint32)

SetHeight sets height of the Label in HIMETRIC (0.01mm)

func (*LabelControl) SetWidth

func (c *LabelControl) SetWidth(width uint32)

SetWidth sets width of the Label in HIMETRIC (0.01mm)

type ListBoxDataControl

ListBoxDataControl is a representation of a list box ActiveX form.

type ListBoxDataControl struct {
    // contains filtered or unexported fields
}

func (ListBoxDataControl) GetValue

func (c ListBoxDataControl) GetValue() string

GetValue gets a value from a control which value can be represented as a string.

func (ListBoxDataControl) SetValue

func (c ListBoxDataControl) SetValue(value string)

SetValue sets a value for a control which value can be represented as a string.

type OptionButtonDataControl

OptionButtonDataControl is a representation of an option button ActiveX form.

type OptionButtonDataControl struct {
    // contains filtered or unexported fields
}

func (OptionButtonDataControl) GetValue

func (c OptionButtonDataControl) GetValue() bool

GetValue gets a value from a control which value can be represented as boolean (on/off).

func (OptionButtonDataControl) SetValue

func (c OptionButtonDataControl) SetValue(value bool)

SetValue sets a value for a control which value can be represented as boolean (on/off).

type ScrollBarControl

ScrollBarControl is a representation of a scrollBar ActiveX form.

type ScrollBarControl struct {
    // contains filtered or unexported fields
}

func (*ScrollBarControl) GetBackColor

func (c *ScrollBarControl) GetBackColor() uint32

GetBackColor gets a button text color value for a system palette from a scrollBar control.

func (*ScrollBarControl) GetForeColor

func (c *ScrollBarControl) GetForeColor() uint32

GetForeColor gets a button text color value for a system palette from a scrollBar control.

func (*ScrollBarControl) GetHeight

func (c *ScrollBarControl) GetHeight() uint32

GetHeight returns height of the ScrollBar in HIMETRIC (0.01mm)

func (*ScrollBarControl) GetMax

func (c *ScrollBarControl) GetMax() int32

GetMax gets a button max value.

func (*ScrollBarControl) GetMin

func (c *ScrollBarControl) GetMin() int32

GetMin gets a button min value.

func (*ScrollBarControl) GetPosition

func (c *ScrollBarControl) GetPosition() int32

GetPosition gets a button position value.

func (*ScrollBarControl) GetWidth

func (c *ScrollBarControl) GetWidth() uint32

GetWidth returns width of the ScrollBar in HIMETRIC (0.01mm)

func (*ScrollBarControl) SetBackColor

func (c *ScrollBarControl) SetBackColor(backColor uint32)

SetBackColor sets a button text color value from a system palette for a scrollBar control.

func (*ScrollBarControl) SetForeColor

func (c *ScrollBarControl) SetForeColor(foreColor uint32)

SetForeColor sets a button text color value from a system palette for a scrollBar control.

func (*ScrollBarControl) SetHeight

func (c *ScrollBarControl) SetHeight(height uint32)

SetHeight sets height of the ScrollBar in HIMETRIC (0.01mm)

func (*ScrollBarControl) SetMax

func (c *ScrollBarControl) SetMax(max int32)

SetMax sets a button max value.

func (*ScrollBarControl) SetMin

func (c *ScrollBarControl) SetMin(min int32)

SetMin sets a button min value.

func (*ScrollBarControl) SetPosition

func (c *ScrollBarControl) SetPosition(position int32)

SetPosition sets a button position value.

func (*ScrollBarControl) SetWidth

func (c *ScrollBarControl) SetWidth(width uint32)

SetWidth sets width of the ScrollBar in HIMETRIC (0.01mm)

type SpinButtonControl

SpinButtonControl is a representation of a spinButton ActiveX form.

type SpinButtonControl struct {
    // contains filtered or unexported fields
}

func (*SpinButtonControl) GetBackColor

func (c *SpinButtonControl) GetBackColor() uint32

GetBackColor gets a button text color value for a system palette from a spinButton control.

func (*SpinButtonControl) GetForeColor

func (c *SpinButtonControl) GetForeColor() uint32

GetForeColor gets a button text color value for a system palette from a spinButton control.

func (*SpinButtonControl) GetHeight

func (c *SpinButtonControl) GetHeight() uint32

GetHeight returns height of the SpinButton in HIMETRIC (0.01mm)

func (*SpinButtonControl) GetMax

func (c *SpinButtonControl) GetMax() int32

GetMax gets a button max value.

func (*SpinButtonControl) GetMin

func (c *SpinButtonControl) GetMin() int32

GetMin gets a button min value.

func (*SpinButtonControl) GetPosition

func (c *SpinButtonControl) GetPosition() int32

GetPosition gets a button position value.

func (*SpinButtonControl) GetWidth

func (c *SpinButtonControl) GetWidth() uint32

GetWidth returns width of the SpinButton in HIMETRIC (0.01mm)

func (*SpinButtonControl) SetBackColor

func (c *SpinButtonControl) SetBackColor(backColor uint32)

SetBackColor sets a button text color value from a system palette for a spinButton control.

func (*SpinButtonControl) SetForeColor

func (c *SpinButtonControl) SetForeColor(foreColor uint32)

SetForeColor sets a button text color value from a system palette for a spinButton control.

func (*SpinButtonControl) SetHeight

func (c *SpinButtonControl) SetHeight(height uint32)

SetHeight sets height of the SpinButton in HIMETRIC (0.01mm)

func (*SpinButtonControl) SetMax

func (c *SpinButtonControl) SetMax(max int32)

SetMax sets a button max value.

func (*SpinButtonControl) SetMin

func (c *SpinButtonControl) SetMin(min int32)

SetMin sets a button min value.

func (*SpinButtonControl) SetPosition

func (c *SpinButtonControl) SetPosition(position int32)

SetPosition sets a button position value.

func (*SpinButtonControl) SetWidth

func (c *SpinButtonControl) SetWidth(width uint32)

SetWidth sets width of the SpinButton in HIMETRIC (0.01mm)

type TextBoxDataControl

TextBoxDataControl is a representation of a text box ActiveX form.

type TextBoxDataControl struct {
    // contains filtered or unexported fields
}

func (TextBoxDataControl) GetValue

func (c TextBoxDataControl) GetValue() string

GetValue gets a value from a control which value can be represented as a string.

func (TextBoxDataControl) SetValue

func (c TextBoxDataControl) SetValue(value string)

SetValue sets a value for a control which value can be represented as a string.

type ToggleButtonDataControl

ToggleButtonDataControl is a representation of a toggle button ActiveX form.

type ToggleButtonDataControl struct {
    // contains filtered or unexported fields
}

func (ToggleButtonDataControl) GetValue

func (c ToggleButtonDataControl) GetValue() bool

GetValue gets a value from a control which value can be represented as boolean (on/off).

func (ToggleButtonDataControl) SetValue

func (c ToggleButtonDataControl) SetValue(value bool)

SetValue sets a value for a control which value can be represented as boolean (on/off).