CheckBoxDataControl is a representation of a check box ActiveX form.
type CheckBoxDataControl struct {
// contains filtered or unexported fields
}
func (c CheckBoxDataControl) GetValue() bool
GetValue gets a value from a control which value can be represented as boolean (on/off).
func (c CheckBoxDataControl) SetValue(value bool)
SetValue sets a value for a control which value can be represented as boolean (on/off).
ComboBoxDataControl is a representation of a combo box ActiveX form.
type ComboBoxDataControl struct {
// contains filtered or unexported fields
}
func (c ComboBoxDataControl) GetValue() string
GetValue gets a value from a control which value can be represented as a string.
func (c ComboBoxDataControl) SetValue(value string)
SetValue sets a value for a control which value can be represented as a string.
CommandButtonControl is a representation of a commandButton ActiveX form.
type CommandButtonControl struct {
// contains filtered or unexported fields
}
func (c *CommandButtonControl) GetBackColor() uint32
GetBackColor gets a button text color value for a system palette from a commandButton control.
func (c *CommandButtonControl) GetCaption() string
GetCaption gets a caption string from a commandButton control.
func (c *CommandButtonControl) GetForeColor() uint32
GetForeColor gets a button text color value for a system palette from a commandButton control.
func (c *CommandButtonControl) GetHeight() uint32
GetHeight returns height of the CommandButton in HIMETRIC (0.01mm)
func (c *CommandButtonControl) GetWidth() uint32
GetWidth returns width of the CommandButton in HIMETRIC (0.01mm)
func (c *CommandButtonControl) SetBackColor(backColor uint32)
SetBackColor sets a button text color value from a system palette for a commandButton control.
func (c *CommandButtonControl) SetCaption(caption string)
SetCaption sets a caption string for a commandButton control.
func (c *CommandButtonControl) SetForeColor(foreColor uint32)
SetForeColor sets a button text color value from a system palette for a commandButton control.
func (c *CommandButtonControl) SetHeight(height uint32)
SetHeight sets height of the CommandButton in HIMETRIC (0.01mm)
func (c *CommandButtonControl) SetWidth(width uint32)
SetWidth sets width of the CommandButton in HIMETRIC (0.01mm)
Control represents an ActiveX control wrapper.
type Control struct { TargetAttr string Ocx *activeX.Ocx Choice *ControlChoice // contains filtered or unexported fields }
func ImportFromFile(storagePath string) (*Control, error)
ImportFromFile makes a Control from a file in a storage.
func (ctrl *Control) ExportToByteArray() ([]byte, error)
ExportToByteArray makes a byte array from a control as it is stored in .bin files.
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 }
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 )
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 )
ImageControl is a representation of an image ActiveX form.
type ImageControl struct {
// contains filtered or unexported fields
}
LabelControl is a representation of a label ActiveX form.
type LabelControl struct {
// contains filtered or unexported fields
}
func (c *LabelControl) GetBackColor() uint32
GetBackColor gets a button text color value for a system palette from a label control.
func (c *LabelControl) GetCaption() string
GetCaption gets a caption string from a label control.
func (c *LabelControl) GetForeColor() uint32
GetForeColor gets a button text color value for a system palette from a label control.
func (c *LabelControl) GetHeight() uint32
GetHeight returns height of the Label in HIMETRIC (0.01mm)
func (c *LabelControl) GetWidth() uint32
GetWidth returns width of the Label in HIMETRIC (0.01mm)
func (c *LabelControl) SetBackColor(backColor uint32)
SetBackColor sets a button text color value from a system palette for a label control.
func (c *LabelControl) SetCaption(caption string)
SetCaption sets a caption string for a label control.
func (c *LabelControl) SetForeColor(foreColor uint32)
SetForeColor sets a button text color value from a system palette for a label control.
func (c *LabelControl) SetHeight(height uint32)
SetHeight sets height of the Label in HIMETRIC (0.01mm)
func (c *LabelControl) SetWidth(width uint32)
SetWidth sets width of the Label in HIMETRIC (0.01mm)
ListBoxDataControl is a representation of a list box ActiveX form.
type ListBoxDataControl struct {
// contains filtered or unexported fields
}
func (c ListBoxDataControl) GetValue() string
GetValue gets a value from a control which value can be represented as a string.
func (c ListBoxDataControl) SetValue(value string)
SetValue sets a value for a control which value can be represented as a string.
OptionButtonDataControl is a representation of an option button ActiveX form.
type OptionButtonDataControl struct {
// contains filtered or unexported fields
}
func (c OptionButtonDataControl) GetValue() bool
GetValue gets a value from a control which value can be represented as boolean (on/off).
func (c OptionButtonDataControl) SetValue(value bool)
SetValue sets a value for a control which value can be represented as boolean (on/off).
ScrollBarControl is a representation of a scrollBar ActiveX form.
type ScrollBarControl struct {
// contains filtered or unexported fields
}
func (c *ScrollBarControl) GetBackColor() uint32
GetBackColor gets a button text color value for a system palette from a scrollBar control.
func (c *ScrollBarControl) GetForeColor() uint32
GetForeColor gets a button text color value for a system palette from a scrollBar control.
func (c *ScrollBarControl) GetHeight() uint32
GetHeight returns height of the ScrollBar in HIMETRIC (0.01mm)
func (c *ScrollBarControl) GetMax() int32
GetMax gets a button max value.
func (c *ScrollBarControl) GetMin() int32
GetMin gets a button min value.
func (c *ScrollBarControl) GetPosition() int32
GetPosition gets a button position value.
func (c *ScrollBarControl) GetWidth() uint32
GetWidth returns width of the ScrollBar in HIMETRIC (0.01mm)
func (c *ScrollBarControl) SetBackColor(backColor uint32)
SetBackColor sets a button text color value from a system palette for a scrollBar control.
func (c *ScrollBarControl) SetForeColor(foreColor uint32)
SetForeColor sets a button text color value from a system palette for a scrollBar control.
func (c *ScrollBarControl) SetHeight(height uint32)
SetHeight sets height of the ScrollBar in HIMETRIC (0.01mm)
func (c *ScrollBarControl) SetMax(max int32)
SetMax sets a button max value.
func (c *ScrollBarControl) SetMin(min int32)
SetMin sets a button min value.
func (c *ScrollBarControl) SetPosition(position int32)
SetPosition sets a button position value.
func (c *ScrollBarControl) SetWidth(width uint32)
SetWidth sets width of the ScrollBar in HIMETRIC (0.01mm)
SpinButtonControl is a representation of a spinButton ActiveX form.
type SpinButtonControl struct {
// contains filtered or unexported fields
}
func (c *SpinButtonControl) GetBackColor() uint32
GetBackColor gets a button text color value for a system palette from a spinButton control.
func (c *SpinButtonControl) GetForeColor() uint32
GetForeColor gets a button text color value for a system palette from a spinButton control.
func (c *SpinButtonControl) GetHeight() uint32
GetHeight returns height of the SpinButton in HIMETRIC (0.01mm)
func (c *SpinButtonControl) GetMax() int32
GetMax gets a button max value.
func (c *SpinButtonControl) GetMin() int32
GetMin gets a button min value.
func (c *SpinButtonControl) GetPosition() int32
GetPosition gets a button position value.
func (c *SpinButtonControl) GetWidth() uint32
GetWidth returns width of the SpinButton in HIMETRIC (0.01mm)
func (c *SpinButtonControl) SetBackColor(backColor uint32)
SetBackColor sets a button text color value from a system palette for a spinButton control.
func (c *SpinButtonControl) SetForeColor(foreColor uint32)
SetForeColor sets a button text color value from a system palette for a spinButton control.
func (c *SpinButtonControl) SetHeight(height uint32)
SetHeight sets height of the SpinButton in HIMETRIC (0.01mm)
func (c *SpinButtonControl) SetMax(max int32)
SetMax sets a button max value.
func (c *SpinButtonControl) SetMin(min int32)
SetMin sets a button min value.
func (c *SpinButtonControl) SetPosition(position int32)
SetPosition sets a button position value.
func (c *SpinButtonControl) SetWidth(width uint32)
SetWidth sets width of the SpinButton in HIMETRIC (0.01mm)
TextBoxDataControl is a representation of a text box ActiveX form.
type TextBoxDataControl struct {
// contains filtered or unexported fields
}
func (c TextBoxDataControl) GetValue() string
GetValue gets a value from a control which value can be represented as a string.
func (c TextBoxDataControl) SetValue(value string)
SetValue sets a value for a control which value can be represented as a string.
ToggleButtonDataControl is a representation of a toggle button ActiveX form.
type ToggleButtonDataControl struct {
// contains filtered or unexported fields
}
func (c ToggleButtonDataControl) GetValue() bool
GetValue gets a value from a control which value can be represented as boolean (on/off).
func (c ToggleButtonDataControl) SetValue(value bool)
SetValue sets a value for a control which value can be represented as boolean (on/off).