Syntax

create button [<name>]
create field [<name>]
create card [<name>]
create window [<name>]
create project <path>
create menu [<name>] [in <parent item>]
create menuitem [<name>] in <parent menu>

create button "OK"
create field
create card "Help"
create project "/Users/sandra/MyProject"
create project "/Users/andrea/Homework.xstk"

create menu "File"
create menu in menuitem "Find" of menu "Edit"
create menuitem "Find Next" in submenu of menuitem "Find" of menu "Edit"

Explanation

The create command lets you create new objects on the current card, or new cards in the current window, or new windows in the current project, or a new project on disk. You can optionally specify a name they should use.

A new... message is sent to the newly-created object (or in the case of a newly-created card/background/window/project, to the first card in the new object). Possible new... messages are newButton, newField, newGraphic, newCard, newBackground, newWindow, newBackground, newMenu or newMenuItem.

When creating a menu item, you must specify the menu you want to create it in. When creating a menu, you may specify the menu item of which this menu should be a submenu. If you do not specify a parent menu, the menu will be created in the menu bar.

See Also