Guidance
指路人
g.yi.org
Guidance Forums
/
Rapid-Q Basic
/ QLabel Quirk
最新
搜索
论坛
Reginald Rexx
STC(宏晶)单片机与电路设计
wxWidgets (wxWindows) in C++
奇瑞QQ车友论坛
生活信息交流与学习角
质量与可靠性
Rapid-Q Basic
FreeBasic
Reginald
Forum
Examples
RapidQ
Forum
Bugs
Examples
Resource
RQ Doc
RQ Intro
System
LeonAutoBackup
Home
Software
App
Lib
RapidQ
Reginald
Upload
Chrononet
回顶部
⇑
Forum List
•
Thread List
•
Refresh
•
New Topic
•
Search
•
Previous
•
Next
1
1.
QLabel Quirk
#6282
Posted by:
2005-06-26 19:14:16
If your QLabel is displaying oddly...
it "might" be because of this...
the "AutoSize" property
HAS TO BE BEFORE
the "Caption" property
in your coding.
Example:
' --Wrongly coded code START
Dim DlgLbl1 as QLabel
DlgLbl1.Parent = DlgForm
DlgLbl1.Top = 8
DlgLbl1.Left = 20
DlgLbl1.Width = 200
DlgLbl1.Height = 16
DlgLbl1.Color = &HC0C0C0
DlgLbl1.Caption = "File has been Modified !"
DlgLbl1.AutoSize = False
DlgLbl1.Font.Name = "Verdana"
DlgLbl1.Font.Color = -2147483640
DlgLbl1.Font.Size = 10
DlgLbl1.Font.AddStyles(fsBold)
DlgLbl1.Alignment = taCenter
' --Wrongly coded code END
' --Correctly coded code START
Dim DlgLbl1 as QLabel
DlgLbl1.Parent = DlgForm
DlgLbl1.Top = 8
DlgLbl1.Left = 20
DlgLbl1.Width = 200
DlgLbl1.Height = 16
DlgLbl1.Color = &HC0C0C0
DlgLbl1.AutoSize = False
DlgLbl1.Caption = "File has been Modified !"
DlgLbl1.Font.Name = "Verdana"
DlgLbl1.Font.Color = -2147483640
DlgLbl1.Font.Size = 10
DlgLbl1.Font.AddStyles(fsBold)
DlgLbl1.Alignment = taCenter
' --Correctly coded code END
signed, Dave
Forum List
•
Thread List
•
Refresh
•
New Topic
•
Search
•
Previous
•
Next
1
掌柜推荐
¥738.00
D2H-3A-32双向齿轮转速传感器孔径18耐压力法兰可密封正反转测速
¥1,080.00
TMM-R100-BH指针式柴油机转速表背光不锈钢外壳脉冲输入双福定制
¥286.00
N1H-5C-35转速传感器速度探头霍尔齿轮非接触式测速M18*1.5超短
¥1,480.00
DRE-AE2H双向测速速度继电器超速欠速转向正反转监视带电压或20mA
¥1,280.00
上海双福DRE-PE2H CRS55双向速度继电器正反转速表长度深度计数
¥1,450.00
双福SRE-AD2N智能速度继电器转速变送器NAMUR输入4~20mA电流输出
©
Thu 2024-4-25
Guidance Laboratory Inc.
Email:
webmaster1
g.yi
.
org
Hits:
0