标题:关于vlaue属性问题的求教
取消只看楼主
周斌
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2008-10-19
 问题点数:0 回复次数:1 
关于vlaue属性问题的求教
Private Sub Form_Load()
Text1.Text = "我们不在起义了杂饿么还呢吧时个毫 敌后 风景画法"
End Sub
Private Sub Option1_Click()
If Option1.Value = True Then
 Toolbar1.Style = tbrFlat
 Toolbar1.TextAlignment = tbrTextAlignRight
 End If
End Sub
Private Sub Option2_Click()
If Option1.Value = True Then
 Toolbar1.Style = tbrStandard
 Toolbar1.TextAlignment = tbrTextAlignBottom
  End If
End Sub
Private Sub Option3_Click()
If Option1.Value = True Then
 Toolbar1.Style = tbrStandard
 Toolbar1.TextAlignment = tbrTextAlignRight
 Toolbar1.BorderStyle = ccFixedSingle
 End If
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
 Case 1
  If Button.Value = tbrPressed Then
   Text1.FontBold = True
   Else
   Text1.FontBold = False
   End If
 Case 2
  If Button.Value = tbrPressed Then
   Text1.FontItalic = True
   Else
   Text1.FontItalic = False
   End If
Case 3
 If Button.Value = tbrPressed Then
  Text1.FontUnderline = True
  Else
  Text1.FontUnderline = False
  End If
Case 4
 If Button.Value = tbrPressed Then
  Text1.FontStrikethru = True
  Else
   Text1.FontStrikethru = False
   End If
 End Select
 End Sub
我做的一个toolbar工具栏的练习,但是value属性好象不起作用,不同。button.value,请大侠看看哪里出问题了
搜索更多相关主题的帖子: vlaue 属性 
2008-10-22 15:06
周斌
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2008-10-19
得分:0 
确定啊,就只有两个值,tbrPressed和tbrUnpressed ,但就是不起作用,
2008-10-23 16:01



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-239849-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.547920 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved