Guidance
指路人
g.yi.org
software / RapidQ / RQ Doc / html / qlabel.html

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

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


QLABEL Component

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 Properties
FieldTypeR/WDefaultSupport





AlignINTEGERRWalNoneW
Align determines how the control aligns within its parent control.
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 Events
EventTypeOccurs when...ParamsSupport





OnClickVOIDUser clicks on label0W
OnDblClickVOIDUser double clicked on label0W
OnMouseDownSUB (Button%, X%, Y%, Shift%)Mouse button held down3W
OnMouseMoveSUB (X%, Y%, Shift%)Mouse moves2W
OnMouseUpSUB (Button%, X%, Y%, Shift%)Mouse button is released3W
WndProcSUB (Hwnd%, Msg%, wParam%, lParam%)Messages sent to QLabel4W


QLabel Examples
  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

Prev Component Contents Next Component
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sun 2017-9-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2015-12-25 19:42:39