Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu Font
End If
End Sub
你们看看啥问题啊
[此贴子已经被作者于2007-6-26 21:25:26编辑过]
[此贴子已经被作者于2007-6-26 21:25:26编辑过]
我 的全部代码:
Dim inpText As String
'兰色
Private Sub blue_Click()
Text1.ForeColor = vbBlue
End Sub
'清除
Private Sub clean_Click()
Text1.Text = ""
End Sub
'显示
Private Sub display_Click()
Text1.Text = inpText
End Sub
'结束
Private Sub exit_Click()
End
End Sub
'粗体
Private Sub fonBold_Click()
Text1.FontBold = True
End Sub
'斜体
Private Sub fonItaly_Click()
Text1.FontItalic = True
End Sub
'font20
Private Sub Font20_Click()
Text1.FontSize = 20
End Sub
'隶书
Private Sub fontL_Click()
Text1.FontSize = 40
Text1.FontName = "隶书"
End Sub
'幼圆
Private Sub fontY_Click()
Text1.FontSize = 40
Text1.FontName = "幼圆"
End Sub
Private Sub Form_Load()
display.Enabled = False
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu Font
End If
End Sub
'输入信息/输入
Private Sub input_Click()
inpT = InputBox("", "请输入文字")
inpText = inpText & inpT
End Sub
'红色
Private Sub red_Click()
Text1.ForeColor = vbRed
End Sub
Private Sub Text1_Change()
display.Enabled = True
End Sub