【正文】
ands associated with them 為方便用戶操作,使用菜單還可以有多種方法,既可以用鼠標,也可以用鍵盤,用鍵盤時可以使用熱鍵和快捷鍵。 For the convenience of the user operation, use the menu can also be a variety of ways, either with the mouse, you can also use the keyboard, using keyboard hot keys and shortcut keys can be used. 狀態(tài)條一般顯示在窗口的底部,向用戶提示使用程序的方法以及一些當前的系統(tǒng)狀態(tài)。 Usually displayed in the status bar at the bottom of the window to prompt the user to use the program39。s methods and some of the current system state. 菜單 設置菜單和工具欄屬性 編寫菜單腳本 在 PowerBar工具欄上單擊 “ New”按鈕,在打開的 “ New”對話框中選“ PB Object”選項卡,選中 “ Menu”圖標,單擊 “ OK”按鈕,出現(xiàn)菜單畫板。 在 “ File”菜單中選 “ Save As…” 項,指定菜單名保存后,菜單標題變?yōu)椴藛蚊?。?“ Insert”菜單中選“ Submenu Item”插入一個新的子菜單項。 創(chuàng)建菜單 開一個工作空間并指定當前目標 菜單 Set menus and toolbars properties The preparation of the menu script The PowerBar toolbar, click New button to open the New dialog box, selected PB Object tab, select Menu icon, click OK button, the menu that appears drawing board. In the File menu, selected Save As ... item, specify the menu name is saved, the menu name of the title into the menu. In the Insert menu, selected Submenu Item Insert a new submenu item. Create Menu To open a work space and specify the immediate objective of 菜單 設置菜單和工具欄屬性 編寫菜單腳本 創(chuàng)建菜單 ?Menu畫板的屬性窗格有兩個標簽 , 它們就是用來設置當前被選中的菜單項的各種屬性 。 ?在 “ General”標簽頁中 , “ Name”為菜單項名字 , “ Text”為菜單項文本 ,“ MicroHelp”為該菜單項顯示在窗口底部狀態(tài)條上的幫助信息 。 復選框 “ Visible”表示可見性 、 “ Enabled”為可用性 、 “ Checked”為選中狀態(tài) 。 ?在 “ Shortcut”下拉列表中可以選擇快捷鍵 , 這些快捷鍵可以根據(jù)需要與 “ Alt”、“ Ctrl”及 “ Shift”鍵組合使用 。 ?在 “ Toolbar”標簽頁中 , 可以將菜單項和工具欄上的某個圖標按鈕相連 , 這樣以后單擊這個按鈕就相當于單擊相應的菜單項 。 ?“ ToolbaritemText”欄用來輸入對圖標按鈕的描述性文本 。 菜單 Set menus and toolbars properties The preparation of the menu script Create Menu ?Menu Painter Properties pane has two tabs, which are used to set the currently selected menu item of the various properties. ?In the General tab, Name for the menu item39。s name, Text for the menu item text, MicroHelp for the menu item displayed in the status bar on the bottom of the window help. Check box Visible said the visibility, Enabled for the availability, Checked is selected. ?In the Shortcut dropdown list, choose the shortcut keys, these shortcuts may be needed with the Alt, Ctrl and Shift key bination to use. ?In the Toolbar tab, you can be a menu item and toolbar button on an icon on the connected, so after clicking this button is equivalent to click on the appropriate menu item. ?ToolbaritemText column is used to enter the description of the button on the icon of the text. 菜單 設置菜單和工具欄屬性 編寫菜單腳本 創(chuàng)建菜單 If the script pane do not appear, rightclick any menu item can be in the popup shortcut menu, selected Script item, you can open the Script pane. In order for a code of a menu item, doubleclick the menu item on the clicked event code. 如果腳本窗格沒出現(xiàn),可右擊任意菜單項,在彈出的快捷菜單中選 “ Script”項,便可打開腳本窗格。 要想為某一個菜單項編寫代碼,雙擊該菜單項,對 “ clicked”事件編碼。