Rapid-Q Documentation by William Yu (c)1999-2000 Appendix A: QLABEL


QLABEL Компонент

QLabel is a non-windowed control used to display 2D, 3D, and/or rotated text on a form/container. Note that rotated labels only work with true type fonts.

QLabel Свойства
ПолеТипR/WПо умолчаниюПоддерживается





AlignINTEGERRWalNoneW
Align определяет как компонент располагается на родительской форме
AlignmentINTEGERRWtaLeftJustifyW
Alignment determines the horizontal placement of the text within the label.
0 = taLeftJustify -- The text appears lined up along the left edge of the label.
1 = taRightJustify -- The text appears lined up along the right edge of the label.
2 = taCenter -- The text is horizontally centered in the label.
AngleINTEGERRW0W
Angle determines how the label is rotated. Specify a degree from 0 to 360.
AutosizeINTEGERRWFalseW
AutoSize determines whether the size of the label automatically resizes to accommodate the text.
CaptionSTRINGRWWXG
ColorINTEGERRWWX
CursorINTEGERRWcrDefaultW
EnabledINTEGERRWTrueWXG
FontQFONTWW
HandleINTEGERRW
HeightINTEGERRWWXG
HintSTRINGRWWXG
LabelStyleINTEGERRWtsNoneW
LabelStyle determines whether the label is displayed as 3D or 2D.
0 = lsNone -- The text appears as normal 2d text.
1 = lsRaised -- The text appears as 3d.
2 = lsRecessed -- The text appears engraved.
LayoutINTEGERRWtlTopW
Layout determines the vertical placement of the text within the label.
0 = tlTop -- The text appears at the top of the label.
1 = tlCenter -- The text is vertically centered in the label.
2 = tlBottom -- The text appears along the bottom of the label.
LeftINTEGERRW0WXG
LowerColorINTEGERRWclBtnShadowW
ParentQFORM/QPANEL/QTABCONTROLWWXG
PopupMenuQPOPUPMENUWW
ShowHintINTEGERRWFalseWXG
TagINTEGERRWWXG
TopINTEGERRW0WXG
TransparentINTEGERRWFalseW
UpperColorINTEGERRWclBtnHighlightW
VisibleINTEGERRWTrueWXG
WidthINTEGERRWWXG
WordwrapINTEGERRWFalseW


QLabel События
СобытиеТипПроисходит когда...ПараметрыПоддерживается





OnClickVOIDUser clicks on label0W
OnDblClickVOIDДвойной клик on label0W
OnMouseDownSUB (Button%, X%, Y%, Shift%)Нажатие кнопки мыши3W
OnMouseMoveSUB (X%, Y%, Shift%)Движение мыши2W
OnMouseUpSUB (Button%, X%, Y%, Shift%)Кнопка мыши отпущена3W
WndProcSUB (Hwnd%, Msg%, wParam%, lParam%)Messages sent to QLabel4W


QLabel Примеры
  DIM Form AS QForm
  DIM Label1 AS QLabel

  Label1.Parent = Form

  Label1.Text = "Hello"
  Form.ShowModal

'--------------------------------------------------------

  ' Note that rotated labels only work with true type
  ' fonts, such as Arial and Courier New.

  DIM Form AS QForm
  DIM Label1 AS QLabel
  DIM Font AS QFont

  Font.Name = "Arial"

  Label1.Parent = Form
  Label1.Font = Font
  Label1.Text = "Hello"
  Label1.Angle = 45
  Form.ShowModal

Предыдущий Компонент Содержание Следующий Компонент