程式设计实务使用62.ppt

  1. 1、本文档共184页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
程式设计实务使用62

Windows CE 程式設計實務—使用 eMbedded Visual Basic Chapter 4 Outline Command Button Control Label and TextBox Controls CheckBox and Option Button Controls ListBox and ComboBox Controls Finance Control HScrollBar and VScrollBar Controls Line and Shape Controls Frame Control Image Control and PictureBox Controls eVB Control eVB 提供程式設計師許多有用的元件,分為兩大部分 Intrinsic Control (預設的內建控制元件) ActiveX Control (eVB 提供額外的控制元件) eVB Control (Cont.) eVB Control (Cont.) Command Button Control Properties Command Button Control Properties (Cont.) BackColor Cancel:表示 command button 是不是 cancel button Caption:按鈕上面的文字 Default:若 form 上有多個 command button時,用以表示哪一個是 default command button Enabled:設定這個按鈕是不是可以被按,預設是 TRUE Font Height, Width:The height (width) of an object Left (top):The distance between the internal edge of an object and the left (top) edge of its container Command Button Control Properties (Cont.) Style: 0-vbButtonStandard (預設值) 1-vbButtonGraphical:背景顏色的設定才會顯現 TabStop:Indicate whether a user can use Tab key to switch the focus of an object Tag:Stores any extra data needed for your program Visible Command Button Method Move:移動按鈕的位置或改變按鈕的大小 object.Move left, [top], [width], [height] SetFocus Command Button Events Click GotFocus LostFocus MouseDown MouseMove MouseUp Sin 函數作圖 Windows CE 座標軸系統中,原點是在視窗內容的左上角,水平軸的正向往右,垂直軸的正向往下。 Sin 函數作圖 (Cont.) Sin 函數作圖 (Cont.) Sin 函數作圖 (Cont.) Sin 函數作圖 (Cont.) Sin 函數作圖 (Cont.) Form_Load():設定 X 軸的單位寬度 (intXUnit) 和 Y 軸的單位高度(initYUnit),並將原點位置設定在螢幕的中央。 DataInit() sngX:目前處理的點的 X 軸位置 (非 PDA 上的座標系統),繪出的圖形範圍之 X 在 –4 ~ 4 之間 sngCurrentX, sngCurrentY:點在 PDA 上的座標值 cmdSin_Click() sngOldX,sngOldY:舊的點 X,Y 座標,用以和新的點之 X,Y 座標連成一條線 Sin 函數作圖 (Cont.) DrawLine x1, y1, x2, y2, [color], [boxfill] Form_Paint():每一次程式需要更新畫面時,就會引發這個事件。呼叫 DrawCoordinates 繪製 PDA 上的座標系統 (X,Y 軸) cmdClear_Click():cls 清除螢幕 Label and TextBox Controls TextBox 較 Label 增加文字輸入的功能,如果我們只是單純想顯示文字,可以用 label。 Label Properties Label Properties Alignment:文字內容對齊的方式 AutoSize:依文字內容自動調整 label 大小,預設是 False BackColor Back

文档评论(0)

rabbitco + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8126037011000004

1亿VIP精品文档

相关文档