MQFrameBaseクラス

(new in Rev4.00)

MQFrameBase class is a base class for a frame (MQFrame) and a group box (MQGroupBox). It inherits a MQWidgetBase class.

Please refer the inherited class about member functions declared in the inherited class.

Class
MQFrameBase Constructor
~MQFrameBase Destructor
Member functions
GetAlignment Get an alignment for child widgets
SetAlignment Set an alignment for child widgets
GetMultiColumn Get a placement at multiple lines
SetMultiColumn Set a placement at multiple lines
GetMatrixColumn Get a column number for a matrix
SetMatrixColumn Set a column number for a matrix
GetUniformSize Get whether to unify the size for child widgets
SetUniformSize Set whether to unify the size for child widgets
GetSplit Get a split
SetSplit Set a split

MQFrameBase::MQFrameBase();

MQFrameBase::MQFrameBase(int id);

id
A widget ID created outside the plug-in

It is a constructor.

This class cannot be created directly because 'protected' accessor is specified.


virtual MQFrameBase::~MQFrameBase();

This method is a destructor. It is defined as a virtual function.


MQFrameBase::MQFrameAlignment MQFrameBase::GetAlignment();

Return value
An alignment direction
[MQFrameBase::ALIGN_NONE] None
[MQFrameBase::ALIGN_HORIZONTAL] Horizontally
[MQFrameBase::ALIGN_VERTICAL] Vertically

It returns a direction to place child widgets.


void MQFrameBase::SetAlignment(MQFrameAlignment align);

align
An alignment direction
[MQFrameBase::ALIGN_NONE] None
[MQFrameBase::ALIGN_HORIZONTAL] Horizontally
[MQFrameBase::ALIGN_VERTICAL] Vertically

It specifies a direction to place child widgets.


bool MQFrameBase::GetMultiColumn();

Return value
Whether to place at multiple lines

It returns whether to place child widgets at multiple lines automatically or not.


void MQFrameBase::SetMultiColumn(bool value);

value
Whether to place at multiple lines

It returns whether to place child widgets at multiple lines automatically or not.


int MQFrameBase::GetMatrixColumn();

Return value
A number of widgets places at a line or a column

It returns a number of widgets places at a line or a column. Widgets are placed normally when the number is 0. Widgets are placed in a matrix when the number is 1 or larger, and placed normally when the number is 0. The placed direction (a line or a column) is determined by SetAlignment().


void MQFrameBase::SetMatrixColumn(int value);

value
A number of widgets places at a line or a column

It specifies a number of widgets places at a line or a column. Widgets are placed normally when the number is 0. Widgets are placed in a matrix when the number is 1 or larger, and placed normally when the number is 0. The placed direction (a line or a column) is determined by SetAlignment().


bool MQFrameBase::GetUniformSize();

Return value
Whether to unify the size

It returns whether the sizes of all child widgets become same or not.


void MQFrameBase::SetUniformSize(bool value);

value
Whether to unify the size

It specifies whether the sizes of all child widgets become same or not. When true is specified, the longest size is applied for all other widgets.


bool MQFrameBase::GetSplit();

Return value
Whether to change a size of child widget

It returns whether to change a size of child or not widget when the space between widgets is dragged.


void MQFrameBase::SetSplit(bool value);

value
Whether to change a size of child widget

It specifies whether to change a size of child widget or not when the space between widgets is dragged.