圖形介面框架
預覽由控制元件組成的視窗:佈局只描述一次,之後按名稱修改控制元件
1 個類別,共 37 個節點
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 支援等級
- 第 2 級(擬定)
- 所屬包
- 圖形介面應用
圖形介面應用
把圖形介面應用構建為控制元件組合的框架,適用於表單、對話方塊與小工具。
圖形介面應用
圖形介面應用新增按鈕Add a button.新增分隔線Add a hairline rule.新增標籤Add a line of text.新增間隔Add empty room: a fixed number of pixels, or with no size, whatever room is free.新增文字方塊Add a line of text the person can edit.開始卡片Open a card: a raised surface with an optional heading, holding its children in a column.開始列Open a column: everything added until the matching End stacks top to bottom.開始網格Open a grid of equal cells.開始行Open a row: everything added until the matching End runs left to right.關閉Ask to stop.結束Close the innermost open container.期望的視窗大小How big a window to open.期望的視窗標題The window's title.取得已用時間Time the current frame represents, in milliseconds.取得文字What a named element says right now - for a text box, what the person has typed.是否有該元素Whether the screen has an element of this name.放入網格Put the element added most recently in a particular cell of the grid it is in.按下Act on an intent as if a button meaning it had been pressed - what a keyboard shortcut does.重新構建Ask for the screen to be described again: Build runs afresh before the next frame, and the widgets設定啟用Whether a named element can be used.設定內邊距Set the room inside the edge of the container opened most recently.設定大小Fix the size of the element added most recently.設定拉伸Give the element added most recently a share of the free room in its column or row.設定文字Change what a named element says: a label's text, a button's caption, a text box's content.設定文字自適應Draw the text of the element added most recently as large as fits it, growing and shrinking with the room it is given - or, for a container, the text of every label and button inside it.設定可見Whether a named element is shown at all.設定視窗大小Set the size the window opens at.設定視窗標題Set the window's title.顯示通知Show a brief notice in the corner of the window.是否被點選Whether a button meaning this was pressed during the current frame.是否按下了鍵Whether this key was pressed during the current frame.構建Describe the screen: open containers, add labels and buttons, close containers.已點選A button was pressed.已按鍵A key was pressed.啟動Divooka procedural program entry, equivalent to "Main" in many programming languages.更新Called once per frame, after that frame's presses have been delivered.