官术网_书友最值得收藏!

Working on the canvas

The canvas area itself is the visual representation of our project. Visual components are added by selecting a widget from the Palette and, dragging and dropping the widget onto the canvas.

Once placed on the canvas, widgets can be moved around using drag-and-drop and can also be edited using copy, cut, and paste. Widgets can also be rearranged directly in the model tree. For example, selecting the button we placed on layer1 enables us to drag-and-drop it into layer3. In both cases, Studio provides two indicators while the widget is droppable. First, a green or red bar indicates if the selected widget can be dropped there. Visual components can be deleted but they cannot be dropped off the canvas. Attempting to do so will show the red bar and the drop will be ignored. The orientation of the bar also indicates the orientation of the target panel.

The other assistant is a pop-up box that indicates what is being put where. This confirms which widget is being moved and where it is being moved to. The target is expressed as into or after. These should be read as "placing widget X into container Y" or "placing widget X after widget Y (in Y's parent)."

Tip

Sometimes you can’t drop a new widget exactly where you want it on the canvas for one reason or another. In such cases, drop the widget anywhere on the canvas, usually close to where you want it, then move it to where you want it either via the model tree or placement within the canvas.

So far we've been using a left mouse button click-and-hold technique to manage widgets on the canvas. Widgets on the canvas also have a right-click pop-up menu. The best known use of the right-click menu is to Edit Columns of a Dojo grid. All of the choices in this menu are also available via the properties of the widget. However, the right-click menu can be a convenient shortcut to use. The Wrap in Panel operation, for example, can be most helpful when building out forms.

主站蜘蛛池模板: 霍山县| 永济市| 宾阳县| 木兰县| 赞皇县| 大关县| 苍溪县| 绥芬河市| 肇州县| 嵊州市| 新营市| 清新县| 荆门市| 长汀县| 翁牛特旗| 万盛区| 沛县| 海阳市| 布拖县| 武宁县| 天等县| 霍林郭勒市| 大兴区| 凌海市| 布拖县| 塔河县| 林芝县| 贵州省| 鲜城| 甘南县| 保康县| 屯门区| 汉中市| 许昌县| 宝清县| 许昌县| 抚远县| 兖州市| 昭通市| 巫山县| 双峰县|