Tutorial 11 - Desktop Apps and States (1)
When going through Maqetta's tutorials, it is suggested that you have two side-by-side
browser windows open, one showing the tutorial, and the other where you run the application
and perform the steps listed in the tutorial.



- ⇒
Open Sample1.html from the Files palette (found in the "samples" folder).
- ⇒
In the page editor toolbar, click the Preview in Browser
icon. This will launch a new browser window that contains the HTML page you just created.
- ⇒
Click on the
button. The Add Task dialog should appear.
- ⇒
Click on the
button. The task list should appear.
- ⇒
Close the preview window to return to the Maqetta page editor.
- ⇒
Close Sample1.html
Create a Tab Container
- ⇒
Issue a Create > Desktop Application... on the Maqetta menubar to bring up the Create dialog,
then click on the Create button.
- ⇒
In the Palette, open Containers and drag a Tab Container onto the canvas.
- ⇒
The Tab Container's data entry popup will pop up with the default tab titles "Tab 1, Tab 2".
Click on the image to enlarge it.
- ⇒
Change the text in the data entry popup to:
Click on the image to enlarge it.
then click on the OK button, hit Enter or click outside the edit box to close the popup.
- ⇒
You should now see a Tab Container with three tabs:
Click on the image to enlarge it.
- ⇒
Open the Layout palette, found on the right side of the application.
- Set width: 300px
- Set height: 250px
- ⇒
Click on the Save
icon on the page editor toolbar to save your changes.
Create the New and Delete buttons
- ⇒
In the Widgets palette, close Containers and open HTML section and Common sub-section.
- ⇒
Drag a <div> from the Widgets palette onto the Tab Container.
- ⇒
Close the HTML section and open the Controls section and Buttons sub-section.
- ⇒
Drag a Button from the Widgets palette onto the <div> you just created.
- ⇒
Enter "New" in the data entry popup.
- ⇒
Drag another Button from the Widget palette into the <div>, next to the New button.
- ⇒
Enter "Del" in the data entry popup.
- ⇒
Click on the white space to the side of the 2 Buttons. This will select the <div> that contains the Buttons.

- ⇒
Open the Fonts/Text palette.
- ⇒
Set text-align: right. This will shift the Buttons to the right side of the <div>.
Click on the image to enlarge it.
- ⇒
Click on the Save button on the toolbar to save your changes.
Create the Sort-by row
- ⇒
Drag another <div> (in HTML section and Common sub-section) onto the Tab Container and drop it into the area below the buttons.
- ⇒
With the <div> still selected:
- Open the Padding palette.
In the Padding palette, click on the "show t/r/b/l:" check box.
- Set the padding to padding-top: 10px and padding-bottom: 10px. (Hit Enter or click outside of each input field to apply the changes.)
Click on the image to enlarge it.
- ⇒
Drag a <label> (in HTML section and Common sub-section) onto the <div> you just created.
- ⇒
Enter "Sort-by:" in the data entry popup.
- ⇒
Drag a ComboBox (in Controls section and TextBox sub-section)
onto the <div>, to the right of Sort-by:
- ⇒
In the data entry popup, enter values below (hit Enter to create a new line):
Click on the image to enlarge it.
then click on the OK button or click outside the edit box to close the popup.
Note: The "+" indicates the default selection.
- ⇒
With the ComboBox still selected:
- Place your mouse over the resize knob on the right side of the ComboBox and drag the knob to the left, making the ComboBox smaller.
- Open the Margins palette.
- Click on the "show t/r/b/l:" check box under (margin).
- Set the margin to margin-left: 5px.

Create the Task List
- ⇒
Drag a Multi Select (found in Controls section, Select sub-section)
onto the Tab Container and drop it in the empty space below the last <div>.

- ⇒
In the widget's data entry popup, change the values to:

then click on the OK button or click outside the edit box to close the popup.
Note: After you close the data entry popup, you can re-open it by double-clicking on the widget.
- ⇒
Click on the Save button on the toolbar to save your changes.
- ⇒
Click the Preview in Browser icon
(in the toolbar) to see your how your page looks so far. This will launch a new browser window that contains the HTML page you just created. Your Tab Container widget should look like this:

- ⇒
Close the preview window to return to Maqetta.
Create the New Task dialog's frame
- ⇒
Drag a Content Pane (in Containers section and Dojo sub-section) onto the canvas below the Tab Container.
- ⇒
Keep the Content Pane selected for the remainder of this section.
- ⇒
Open the Border palette:
- Set show: props
- Set border-width: 1px
- Set border-style: solid
- Set border-color: blue
Maqetta offers multiple options for specifying a color.
Color properties offer a drop-down menu that allows easy selection of common colors
such as black, white, red, green and blue. You can bring up a color picker dialog
either by selecting "Choose color..." from the menu or clicking on the color swatch rectangle
to the right of the property value. You can also type in a CSS color specification
into the type-in area, such as a color name (e.g., "purple") or a CSS color hex value
(e.g., "#FE8834").
- ⇒
On the canvas, resize the Content Pane to roughly 350px wide by 75px tall (using the bottom-right-corner resize knob).
- ⇒
Note how the width and height values change in the Layout palette after you resize.

Add content to the Add Task dialog
- ⇒
Drag a <div> (in HTML section and Common sub-section) into the ContentPane you just created.
- ⇒
Double-click on the div to bring up the data entry popup.
- ⇒
In the data entry popup enter "Add new task".
- ⇒
Open the Fonts/Text palette:
- Set font-weight: bold.
- Set text-align: center.
- ⇒
Open the Padding palette:
- Click the "show t/r/b/l:" check box under (padding).
- Set padding-top: 6px.
- Set padding-bottom: 6px
- ⇒
Drag another <div> (in HTML section and Common sub-section) onto the Content Pane, below the first <div>.
- ⇒
With the new <div> still selected:
- Drag a <label> (in HTML section and Common sub-section) onto the selected <div>.
- In the data entry popup enter "Task name:".
- Drag a TextBox (in Controls section and TextBox sub-section) onto the <div>, to the right of "Task name:".
- Drag a Button (in Controls section and Button sub-section) onto the <div>, to the right of the TextBox.
- In the data entry popup enter "Add".
- ⇒
Click on the Save button on the toolbar to save your changes.
- ⇒
Select the Content Pane either by clicking on its border or clicking on white space within the Content Pane that has no widgets covering that area.
- ⇒
Open the Layout palette and set position: absolute.
- ⇒
Drag the Content Pane over the Tab Container, placing the top of the ContentPane just below the New button:
- Place the mouse on the top border of the Content Pane, between the resize knobs.
- Drag the Content Pane up using the mouse.
- ⇒
Open the Background palette
- ⇒
Set the background-color to white choosing white from from the property's drop-down menu.
- ⇒
Click on the Save button on the toolbar to save your changes.
Previous / Next