Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / QLabel Quirk

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. 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 • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥900.00 ·
 
 
¥880.00 ·
 
 
¥497.00 ·
 
 
¥380.00 ·
 
 
¥980.00 ·
 
 
¥1,080.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0