恩……这个程序是根据帮助文件中的一个改得,增加了调整画笔粗细和颜色的按键。也是没什么说头的。
提示:GraphicsWindow.LastKey属性中的D0到D9指数字键。
status = True
clearWidth = 10
penWidth = 2
GraphicsWindow.BackgroundColor = "Black"
GraphicsWindow.PenColor = "White"
GraphicsWindow.BrushColor = "White"
GraphicsWindow.PenWidth = penWidth
GraphicsWindow.MouseDown = OnMouseDown
GraphicsWindow.MouseMove = OnMouseMove
GraphicsWindow.KeyDown = OnKeyDown
GraphicsWindow.Title = "黑板"
GraphicsWindow.DrawText(0, 0, "X:擦除 1:白色 2:黄色 3:蓝色 4:绿色 5:红色 Q/W:调整粗细")
Sub OnMouseDown
prevX = GraphicsWindow.MouseX
prevY = GraphicsWindow.MouseY
EndSub
Sub OnKeyDown
If (GraphicsWindow.LastKey = "X") then
GraphicsWindow.PenColor = GraphicsWindow.BackgroundColor
GraphicsWindow.PenWidth = clearWidth
status = False
EndIf
If (GraphicsWindow.LastKey = "D1") then
GraphicsWindow.PenColor = "White"
GraphicsWindow.PenWidth = penWidth
status = True
EndIf
If (GraphicsWindow.LastKey = "D2") then
GraphicsWindow.PenColor = "Yellow"
GraphicsWindow.PenWidth = penWidth
status = True
EndIf
If (GraphicsWindow.LastKey = "D3") then
GraphicsWindow.PenColor = "Blue"
GraphicsWindow.PenWidth = penWidth
status = True
EndIf
If (GraphicsWindow.LastKey = "D4") then
GraphicsWindow.PenColor = "Lime"
GraphicsWindow.PenWidth = penWidth
status = True
EndIf
If (GraphicsWindow.LastKey = "D5") then
GraphicsWindow.PenColor = "Red"
GraphicsWindow.PenWidth = penWidth
status = True
EndIf
If (GraphicsWindow.LastKey = "Q") then
If (status = True) then
penWidth = penWidth - 1
GraphicsWindow.PenWidth = penWidth
Else
clearWidth = clearWidth - 1
GraphicsWindow.PenWidth = clearWidth
EndIf
EndIf
If (GraphicsWindow.LastKey = "W") then
If (status = True) then
penWidth = penWidth + 1
GraphicsWindow.PenWidth = penWidth
Else
clearWidth = clearWidth + 1
GraphicsWindow.PenWidth = clearWidth
EndIf
EndIf
EndSub
Sub OnMouseMove
x = GraphicsWindow.MouseX
y = GraphicsWindow.MouseY
If (Mouse.IsLeftButtonDown) then
GraphicsWindow.DrawLine(prevX, prevY, x, y)
endif
prevX = x
prevY = y
EndSub提示:GraphicsWindow.LastKey属性中的D0到D9指数字键。
Small Basic
11/16/2008 10:25:00 上午

不每個條件 可用吃東西 空間換取時間
http://www.blogger.com/profile-find.g?t=l&loc0=TW
瀏覽"簡介"
地點包括 "台灣" 的 Blogger。
http://www.blogger.com/profile-find.g?t=l&loc0=CN
瀏覽簡介
地點包括 中國 的 Blogger。
http://www.blogger.com/next-blog?navBar=true&blogID=4996114541351894451
http://www.ytower.com.tw/ 全球華文最強食譜服務網站 仍吃素
我是 不是我 的我
# 留言人: 葉瑋庭只當台灣人
# 主題:必定只想在台灣剃度出家
# 留言時間:2010-04-08 16:19:01
# 留言內容:阿彌陀佛 無相佈施
不要吃五辛(葷菜,在古代宗教指的是一些食用後會影響性情、慾望的植
物,主要有五種葷菜,合稱五葷,佛家與道家所指有異。
近代則訛稱含有動物性成分的餐飲食物為「葷菜」,事實上這在古代是稱
之為腥。所謂「葷腥」即這兩類的合稱。 葷菜
維基百科,自由的百科全書
(重定向自五辛) 佛家五葷
在佛家另稱為五辛,五種辛味之菜。根據《楞嚴經》記載,佛家五葷為大
蒜、小蒜、興渠、慈蔥、茖蔥;五葷生啖增恚,使人易怒;熟食發淫,令
人多慾。[1]
《本草備要》註解云:「慈蔥,冬蔥也;茖蔥,山蔥也;興渠,西域菜,云
即中國之荽。」
興渠另說為洋蔥。) 肉 蛋 奶?!
念楞嚴經 *∞窮盡相關 消去無關 證據 時效 念阿彌陀佛往生西方極樂世界
我想製造自己的行為反作用力
不婚 不生子女 生生世世不當老師
log 二0.3010 三0.47710.48 五0.6990 七0.8451 .85
root 二1.414 1.41 三1.732 1.73五 2.236 2.24七 2.646
=>十3.16 π∈Q' 一點八1.34
#
0001 國立臺灣大學 中國文學系 1第一類組 2003129鄭心如 2003307邱亭毓 2003903張維珊 2011622...
... 鄒雅如 2033922鍾依恬 2033941李淑楨 2034010江翊君 2034812李薇薇 2035325瞿惠遠 2035628鄭資穎 2035725顏雅玲 2036140鄭宜欣 2036210闕蓁儀 2036523黃立慧 2036940邱光月 2037211吳芝穎 ...
www.ncu.edu.tw/~center25/87union/fa01.txt - 751k - 更多此站結果