axcontrol

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckBoxDataControl

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

CheckBoxDataControl is a representation of a check box ActiveX form.

func (CheckBoxDataControl) GetValue

func (_gfgg CheckBoxDataControl) GetValue() bool

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

func (CheckBoxDataControl) SetValue

func (_fdca CheckBoxDataControl) SetValue(value bool)

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

type ComboBoxDataControl

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

ComboBoxDataControl is a representation of a combo box ActiveX form.

func (ComboBoxDataControl) GetValue

func (_acf ComboBoxDataControl) GetValue() string

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

func (ComboBoxDataControl) SetValue

func (_accg ComboBoxDataControl) SetValue(value string)

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

type CommandButtonControl

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

CommandButtonControl is a representation of a commandButton ActiveX form.

func (*CommandButtonControl) GetBackColor

func (_bgg *CommandButtonControl) GetBackColor() uint32

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

func (*CommandButtonControl) GetCaption

func (_gee *CommandButtonControl) GetCaption() string

GetCaption gets a caption string from a commandButton control.

func (*CommandButtonControl) GetForeColor

func (_be *CommandButtonControl) GetForeColor() uint32

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

func (*CommandButtonControl) GetHeight

func (_aab *CommandButtonControl) GetHeight() uint32

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

func (*CommandButtonControl) GetWidth

func (_cfb *CommandButtonControl) GetWidth() uint32

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

func (*CommandButtonControl) SetBackColor

func (_ace *CommandButtonControl) SetBackColor(backColor uint32)

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

func (*CommandButtonControl) SetCaption

func (_ddb *CommandButtonControl) SetCaption(caption string)

SetCaption sets a caption string for a commandButton control.

func (*CommandButtonControl) SetForeColor

func (_ab *CommandButtonControl) SetForeColor(foreColor uint32)

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

func (*CommandButtonControl) SetHeight

func (_feb *CommandButtonControl) SetHeight(height uint32)

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

func (*CommandButtonControl) SetWidth

func (_ed *CommandButtonControl) SetWidth(width uint32)

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

type Control

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

Control represents an ActiveX control wrapper.

func ImportFromFile

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

ImportFromFile makes a Control from a file in a storage.

func (*Control) ExportToByteArray

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

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

type ControlChoice

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
}

ControlChoice represents an ActiveX control inside a wrapper.

type FmPictureAlignment

type FmPictureAlignment byte

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

const (
	FmPictureAlignmentTopLeft FmPictureAlignment = iota
	FmPictureAlignmentTopRight
	FmPictureAlignmentCenter
	FmPictureAlignmentBottomLeft
	FmPictureAlignmentBottomRight
)

type FmPictureSizeMode

type FmPictureSizeMode byte

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

const (
	FmPictureSizeModeClip FmPictureSizeMode = iota
	FmPictureSizeModeStretch

	FmPictureSizeModeZoom
)

type ImageControl

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

ImageControl is a representation of an image ActiveX form.

type LabelControl

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

LabelControl is a representation of a label ActiveX form.

func (*LabelControl) GetBackColor

func (_daff *LabelControl) GetBackColor() uint32

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

func (*LabelControl) GetCaption

func (_gbe *LabelControl) GetCaption() string

GetCaption gets a caption string from a label control.

func (*LabelControl) GetForeColor

func (_eaf *LabelControl) GetForeColor() uint32

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

func (*LabelControl) GetHeight

func (_afa *LabelControl) GetHeight() uint32

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

func (*LabelControl) GetWidth

func (_gcbf *LabelControl) GetWidth() uint32

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

func (*LabelControl) SetBackColor

func (_dccd *LabelControl) SetBackColor(backColor uint32)

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

func (*LabelControl) SetCaption

func (_gbd *LabelControl) SetCaption(caption string)

SetCaption sets a caption string for a label control.

func (*LabelControl) SetForeColor

func (_ebe *LabelControl) SetForeColor(foreColor uint32)

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

func (*LabelControl) SetHeight

func (_dgde *LabelControl) SetHeight(height uint32)

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

func (*LabelControl) SetWidth

func (_debd *LabelControl) SetWidth(width uint32)

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

type ListBoxDataControl

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

ListBoxDataControl is a representation of a list box ActiveX form.

func (ListBoxDataControl) GetValue

func (_acf ListBoxDataControl) GetValue() string

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

func (ListBoxDataControl) SetValue

func (_accg ListBoxDataControl) SetValue(value string)

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

type OptionButtonDataControl

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

OptionButtonDataControl is a representation of an option button ActiveX form.

func (OptionButtonDataControl) GetValue

func (_gfgg OptionButtonDataControl) GetValue() bool

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

func (OptionButtonDataControl) SetValue

func (_fdca OptionButtonDataControl) SetValue(value bool)

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

type ScrollBarControl

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

ScrollBarControl is a representation of a scrollBar ActiveX form.

func (*ScrollBarControl) GetBackColor

func (_dedc *ScrollBarControl) GetBackColor() uint32

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

func (*ScrollBarControl) GetForeColor

func (_fcbb *ScrollBarControl) GetForeColor() uint32

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

func (*ScrollBarControl) GetHeight

func (_eeag *ScrollBarControl) GetHeight() uint32

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

func (*ScrollBarControl) GetMax

func (_cfef *ScrollBarControl) GetMax() int32

GetMax gets a button max value.

func (*ScrollBarControl) GetMin

func (_bbbg *ScrollBarControl) GetMin() int32

GetMin gets a button min value.

func (*ScrollBarControl) GetPosition

func (_bfcb *ScrollBarControl) GetPosition() int32

GetPosition gets a button position value.

func (*ScrollBarControl) GetWidth

func (_gabd *ScrollBarControl) GetWidth() uint32

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

func (*ScrollBarControl) SetBackColor

func (_fcbd *ScrollBarControl) SetBackColor(backColor uint32)

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

func (*ScrollBarControl) SetForeColor

func (_bggg *ScrollBarControl) SetForeColor(foreColor uint32)

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

func (*ScrollBarControl) SetHeight

func (_agggf *ScrollBarControl) SetHeight(height uint32)

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

func (*ScrollBarControl) SetMax

func (_agff *ScrollBarControl) SetMax(max int32)

SetMax sets a button max value.

func (*ScrollBarControl) SetMin

func (_cced *ScrollBarControl) SetMin(min int32)

SetMin sets a button min value.

func (*ScrollBarControl) SetPosition

func (_dabb *ScrollBarControl) SetPosition(position int32)

SetPosition sets a button position value.

func (*ScrollBarControl) SetWidth

func (_ddc *ScrollBarControl) SetWidth(width uint32)

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

type SpinButtonControl

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

SpinButtonControl is a representation of a spinButton ActiveX form.

func (*SpinButtonControl) GetBackColor

func (_aaga *SpinButtonControl) GetBackColor() uint32

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

func (*SpinButtonControl) GetForeColor

func (_egfd *SpinButtonControl) GetForeColor() uint32

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

func (*SpinButtonControl) GetHeight

func (_daadf *SpinButtonControl) GetHeight() uint32

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

func (*SpinButtonControl) GetMax

func (_cgdeg *SpinButtonControl) GetMax() int32

GetMax gets a button max value.

func (*SpinButtonControl) GetMin

func (_edcf *SpinButtonControl) GetMin() int32

GetMin gets a button min value.

func (*SpinButtonControl) GetPosition

func (_fgga *SpinButtonControl) GetPosition() int32

GetPosition gets a button position value.

func (*SpinButtonControl) GetWidth

func (_cdbf *SpinButtonControl) GetWidth() uint32

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

func (*SpinButtonControl) SetBackColor

func (_agfa *SpinButtonControl) SetBackColor(backColor uint32)

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

func (*SpinButtonControl) SetForeColor

func (_ffga *SpinButtonControl) SetForeColor(foreColor uint32)

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

func (*SpinButtonControl) SetHeight

func (_feae *SpinButtonControl) SetHeight(height uint32)

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

func (*SpinButtonControl) SetMax

func (_abaf *SpinButtonControl) SetMax(max int32)

SetMax sets a button max value.

func (*SpinButtonControl) SetMin

func (_bacf *SpinButtonControl) SetMin(min int32)

SetMin sets a button min value.

func (*SpinButtonControl) SetPosition

func (_accge *SpinButtonControl) SetPosition(position int32)

SetPosition sets a button position value.

func (*SpinButtonControl) SetWidth

func (_dbaa *SpinButtonControl) SetWidth(width uint32)

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

type TextBoxDataControl

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

TextBoxDataControl is a representation of a text box ActiveX form.

func (TextBoxDataControl) GetValue

func (_acf TextBoxDataControl) GetValue() string

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

func (TextBoxDataControl) SetValue

func (_accg TextBoxDataControl) SetValue(value string)

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

type ToggleButtonDataControl

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

ToggleButtonDataControl is a representation of a toggle button ActiveX form.

func (ToggleButtonDataControl) GetValue

func (_gfgg ToggleButtonDataControl) GetValue() bool

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

func (ToggleButtonDataControl) SetValue

func (_fdca ToggleButtonDataControl) SetValue(value bool)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL