新人求教!关于mdi窗体工具栏
怎么在工具栏上制作类似Windows写字板的字体字号下拉列表框?[local]3[/local][local]7[/local]
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button) Select Case Button.Index Case 1 CommonDialog1.ShowFont '打开字体对话框 Case 2 CommonDialog1.ShowColor '打开颜色对话框 End Select Text1.FontSize = CommonDialog1.FontSize '字体大小 Text1.FontName = CommonDialog1.FontName '字体名称 Text1.FontBold = CommonDialog1.FontBold '是否粗体 Text1.FontItalic = CommonDialog1.FontItalic '是否斜体 Text1.FontUnderline = CommonDialog1.FontUnderline '是否下划线 Text1.ForeColor = CommonDialog1.Color '字体颜色 End Sub
[此贴子已经被作者于2016-8-14 22:48编辑过]