VB菜鸟求问?
Private Sub Command1_Click()Dim a As String, textW As Integer, textH As Integer
FontName = "隶书"
FontColor = 60
ForeColor = QBColor(15)
BackClolor = QBColor(8)
a = "你好"
textW = TextWidth(a) / 2
textH = TextHeight(a) - Command1.Height / 2
CurrentX = ScaleWidth / 2 - textW
CurrentY = ScaleHeight / 2 - textH
print a
End Sub
这个VB程序中的“textW = TextWidth(a) / 2
textH = TextHeight(a) - Command1.Height / 2
CurrentX = ScaleWidth / 2 - textW
CurrentY = ScaleHeight / 2 - textH”这一段程序,哪位高手可以给我详细解释一下是什么意思?
书上说这几句程序是控制输出文本的位置的,但俺这个小菜鸟还是看不懂。。请哪位大哥指教一下,先谢谢啦!