你可以先在coolBar 的bands(1)种田加一个pictureBox作为容器,软后在其上添加n个标签:例如file,edit....排列整齐,画四条线lineTop,lineBottom,lineLeft,lineRight 把lineTop,lineLeft的颜色设为按钮突出显示,lineBottom,lineRight 颜色设为 按钮阴影, 1.当labels的click(index as integer)事件发生时,用popUp 是相应菜单显示出来2.定义这些labels的mouse_move()事件 sub label_mouseMove(index as integer) '使这四条线环绕在labels(index)的周围,那么labels 酒会像一个凸起的菜单按钮, end sub 3.当pictureBox 的mouseMove()发生时 '使四条线隐藏这样,就是一个完美的菜单了,甚至你还可以做出有自己风格的菜单,比如当鼠标在菜单上移动时,菜单字体变为蓝色.... 线条可以实现一切效果,可以用line空间来做各种效果的按钮,tabs等
你可以先在coolBar 的bands(1)种田加一个pictureBox作为容器,软后在其上添加n个标签:例如file,edit....排列整齐,画四条线lineTop,lineBottom,lineLeft,lineRight
把lineTop,lineLeft的颜色设为按钮突出显示,lineBottom,lineRight 颜色设为
按钮阴影,
1.当labels的click(index as integer)事件发生时,用popUp 是相应菜单显示出来2.定义这些labels的mouse_move()事件
sub label_mouseMove(index as integer)
'使这四条线环绕在labels(index)的周围,那么labels 酒会像一个凸起的菜单按钮,
end sub
3.当pictureBox 的mouseMove()发生时 '使四条线隐藏这样,就是一个完美的菜单了,甚至你还可以做出有自己风格的菜单,比如当鼠标在菜单上移动时,菜单字体变为蓝色....
线条可以实现一切效果,可以用line空间来做各种效果的按钮,tabs等
放一个ToolBar到Coolbar中,然后你会用Toolbar做菜单吧