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
掌柜推荐
¥370.00
HRC-R52-B小时计累时器发动机工作时间累计表不锈钢外壳6位液晶
¥1,760.00
DMM-R100-BH双向转速表背光指针式船用尾轴正反转速表开孔101~104
¥840.00
双福SRE-AD0H-AC转速脉冲频率电流电压模拟量变送器模块20mA显示
¥289.00
双福N1H-5C-70转速传感器霍尔齿轮测速全螺纹M18*1.5速度探头3线
¥888.00
双福SRE-PD3H-AC速度继电器转速监控超速过速欠速零速打滑检测
¥748.00
双福D2H-3C-70双向齿轮转速传感器有源4线正反转识别法兰耐压双路
©
Sun 2025-5-18
Guidance Laboratory Inc.
Email:
webmaster1
g.yi
.
org
Hits:
0