锋子的家

web编程,光盘整合,autoit,bblean,个人日记

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  1 随笔 :: 0 文章 :: 2 评论 :: 0 Trackbacks

2006年11月23日 #

本人发的第一个blog,先说明一下.Tendy就是锋子,锋子就是Tendy.免得有人说我抄别人的.
描述:效果图
图片:
 

描述:效果图
图片:
 
自己做的侧栏,做得不好.还望高手指教!!
请到http://fengz.ys168.com/下载

教程:

描述:在About This Control上按Ctrl+鼠标右键新建一个Frame.
图片:
 

描述:打开pluginsbbinterfaceBBInterface.rc把Frame1的高度修改为392宽度修改为176
图片:
 

描述:在Frame1上新建一个开关按钮.名字SwitchButton1 坐标X2 Y2 高和宽19
图片:
 

描述:选如下菜单复制出一个开关按钮.名字SwitchButton2 坐标X23 Y2 高宽19
图片:
 

描述:在Frame1上按Ctrl鼠标右键新建一个Frame名是Frame2,坐标X2 Y23 高138 宽172
图片:
 

描述:为方便演试,在Frame2上添加文字"菜单一"
图片:
 

描述:把Frame2复制一个.名字Frame3大小坐标和Frame2一样.把文字修改成"菜单二"
图片:
 

描述:在Frame1上按Ctrl鼠标右键,新建一个Frame名字是.Frame4
图片:
 

描述:在Frame4上按Ctrl+鼠标右键把Frame4隐藏.
图片:
 

描述:打开pluginsbbinterfaceBBInterface.rc把Frame4高度修改为138也就是和Fram1高度一样.
图片:
 

描述:在Frame1上按Ctrl鼠标右键新建一个Frame名是Frame5.坐标X2 Y163 高215 宽172
图片:
 

描述:在Frame1上按Ctrl鼠标右键新建一个开关按钮名字SwitchButton3.坐标X2 Y380 高10宽172
图片:
 

描述:把SwitchButton1的开关状态修改为true.你也可以在SwitchButton1开关上按一下.
图片:
 

描述:把SwitchButton2的开关状态修改为flase.也就是开关没有按下时的状态.
图片:
 

描述:把SwitchButton3的开关状态修改为true.你也可以在SwitchButton3开关上按一下.
图片:
 

描述:以下最终是建立好的侧栏.
图片:
 
第一次做教程,大家不要见笑呀.关于Script.rc的说明就不写了,论坛上有很多相关的贴了.
描述:添加SwitchButton1的Praessed动做.@BBInterface Plugin Load [vmenu1] from script.rc.SwitchButton2的Praessed动做添加方法一样.@BBInterface Plugin Load [vmenu2] from script.rc
图片:
 
描述:添加SwitchButton1的Unpraessed动做.@BBInterface Plugin Load [Hmenu] from script.rc. SwitchButton2的Unpraessed动做也一样.
图片:
 

描述:添加SwitchButton3的Praessed动做.@BBInterface Plugin Load [ShowKZFrame] from script.rc
图片:
 

描述:添加SwitchButton3的Unpraessed动做.@BBInterface Plugin Load [HKZFrame] from script.rc
图片:
 
在plugins\bbinterface\新建一个文件.把名字改为script.rc.内容如下.
[HMenu]
@BBInterface Control SetWindowProperty Frame2 IsVisible false
@BBInterface Control SetWindowProperty Frame3 IsVisible false
@BBInterface Control SetWindowProperty Frame1 Height $Frame1.Height$-$Frame4.Height$
@BBInterface Control SetWindowProperty SwitchButton3 Y $Frame1.Height$-

$SwitchButton3.Height$-2
@BBInterface Control SetWindowProperty Frame5 Y $Frame1.Height$-$SwitchButton3.Height$-

$Frame5.Height$-4
@BBInterface Control SetWindowProperty Frame4 Height 0

[vmenu1]
@BBInterface Control SetWindowProperty Frame2 IsVisible true
@BBInterface Control SetWindowProperty Frame3 IsVisible false
@BBInterface Control SetControlProperty SwitchButton2 Pressed false
@BBInterface Control SetWindowProperty Frame1 Height $Frame1.Height$-

$Frame4.Height$+$Frame2.Height$
@BBInterface Control SetWindowProperty Frame4 Height $Frame2.Height$
@BBInterface Control SetWindowProperty SwitchButton3 Y $Frame1.Height$-

$SwitchButton3.Height$-2
@BBInterface Control SetWindowProperty Frame5 Y $Frame1.Height$-$SwitchButton3.Height$-

$Frame5.Height$-4

[vmenu2]
@BBInterface Control SetWindowProperty Frame2 IsVisible false
@BBInterface Control SetWindowProperty Frame3 IsVisible true
@BBInterface Control SetControlProperty SwitchButton1 Pressed false
@BBInterface Control SetWindowProperty Frame1 Height $Frame1.Height$-

$Frame4.Height$+$Frame3.Height$
@BBInterface Control SetWindowProperty Frame4 Height $Frame3.Height$
@BBInterface Control SetWindowProperty SwitchButton3 Y $Frame1.Height$-

$SwitchButton3.Height$-2
@BBInterface Control SetWindowProperty Frame5 Y $Frame1.Height$-$SwitchButton3.Height$-

$Frame5.Height$-4

[ShowKZFrame]
@BBInterface Control SetWindowProperty Frame5 IsVisible true
@BBInterface Control SetWindowProperty Frame1 Height $Frame1.Height$+$Frame5.Height$
@BBInterface Control SetWindowProperty SwitchButton3 Y $Frame1.Height$-

$SwitchButton3.Height$-2
@BBInterface Control SetWindowProperty Frame5 Y $Frame1.Height$-$SwitchButton3.Height$-

$Frame5.Height$-4

[HKZFrame]
@BBInterface Control SetWindowProperty Frame5 IsVisible false
@BBInterface Control SetWindowProperty Frame1 Height $Frame1.Height$-$Frame5.Height$
@BBInterface Control SetWindowProperty SwitchButton3 Y $Frame1.Height$-

$SwitchButton3.Height$-2
@BBInterface Control SetWindowProperty Frame5 Y $Frame1.Height$-$SwitchButton3.Height$-

$Frame5.Height$-4

(全文完)

posted @ 2006-11-23 12:47 tendyzz 阅读(395) | 评论 (2)编辑 收藏

仅列出标题