Adding UI Controls#
Another way to add a new UI control is to duplicate the selected controls. You can either use copy and paste to do so, or the duplicate menu command, shortcut (CTRL/CMD + D), or button, or simply hold down the ALT key (OPTION key on a Mac) and drag the selection. This will duplicate it in place and let you move it all at once.
Note: Full list of keyboard shortcuts here.
Selecting UI Controls#
There are a few different ways to select UI controls. If you are familiar with graphics software, these should be of no surprise.
- Clicking on a UI control selects it
- Dragging a rectangle which encloses many UI controls selects them
- SHIFT+CLICK on a control adds it to the selection
- CTRL+CLICK on a selected control removes it from the selection
- Hold ALT to ignore items behind the mouse and drag-select, as shown in this short video
To select a control that is behind another control, right-click on the top control to bring up a menu that allows you to select controls behind it.
Moving UI Controls#
Once you have selected one or more UI controls, there are a few different ways to move it on the canvas.
- You can drag it with your mouse (hold down the SHIFT key to maintain the original horizontal or vertical position)
- You can "nudge it" a few pixels with your keyboard's UP/DOWN/LEFT/RIGHT keys
- You can move it with bigger steps by holding down SHIFT and using your keyboard's UP/DOWN/LEFT/RIGHT keys
- You can move your controls to be aligned in one direction by using the align tools found in the Property Inspector
Snapping and Smart Guides #
When you move objects on the canvas, Mockups tries to suggest alignment relative to other objects on the canvas using smart guides. This makes alignment a little easier and makes your Mockups generally look neater.
If you ever want to temporarily disable this feature, you can hold down the CTRL key (CMD key on Mac) while moving or resizing, and snapping will be turned off. If you want to turn this feature off entirely, you can do so by altering your config file settings.
Resizing UI Controls#
Resizing the selected controls is easy. You can just grab any edge or corner of the selection rectangle and drag it.
If you want to constrain proportions while dragging from a corner, hold the SHIFT key while dragging.
You can also use the keyboard to resize selected controls. CTRL+ALT+arrow keys to resize in 2px increments, CTRL+ALT+SHIFT+arrow keys for 20px increments.
Another way to resize some controls to their "natural size" is to use the Auto-Size function found in the Property Inspector.
Layering UI Controls#
You can layer controls as if they were pieces of paper on the mockup canvas. To do so, you select the controls you want to layer and select one of four layering commands available via the Property Inspector: bring to front, send to back, bring forward and send backward.
Deleting UI Controls#
To remove some UI controls from the mockup canvas, select them and hit the DELETE key. Alternatively you can click on the trashcan button in the toolbar or select "delete" from the Edit menu.
Grouping UI Controls#
Sometimes you might wish to group some controls to better align them or to move them all at once. To group a set of controls, select them and hit CTRL+G on your keyboard or use the Group command in the menu or Property Inspector. Once grouped, the controls will behave as one when moving or aligning. To ungroup controls, press CTRL+SHIFT+G on your keyboard or use the Ungroup command in the menu or Property Inspector. Groups can be nested.
You can double-click on a group to "enter it" and edit its contents. Here's a video that explains how to use the feature:
You can optionally give a group a name via the group's property inspector. This can be helpful when you have a lot of groups and need to "know where you are" when you edit their contents. Naming and grouping controls is also the first step to creating Symbols.
It is possible to crop (mask) groups to only show a selected portion of them.
The video below illustrates how to use this powerful feature:
Wait, no rotation?#
Coming from generic drawing tools, the lack of a rotation feature in Mockups might be surprising.
This limitation is intentional, and not due to programming complexity (it's not hard to add technically). The reason we don't support rotating all controls because we believe that in 90% of cases, it is not needed in wireframes. In fact, adding the ability to rotate any control will likely result in wireframes that are very hard if not impossible to implement by the development team.
We do support rotation in images and a few controls, where it makes sense. Some controls can be rotated in 90-degree steps (icons, the triangle geometric shape, for example) and the label control has a few rotation options in its property inspector.
If you feel that you need to rotate any other control, let us know on this forum thread and we'll discuss whether to add it together.
Also remember that you can always use the image import feature as a workaround.
You can view a list and screenshots of all of the components that ship with Mockups.