9. Cards
In the previous section we wrote that forms are mostly built from standard controls. There is, however, one special element that needs your attention. As you know by now, contexts are made up of roles. A role instance is represented on screen by a card. Manipulating cards is an essential part of the MyContexts user experience. With cards, you can
-
remove a role;
-
fill one role with another;
-
remove the filler of a role;
-
create a new instance of a role type and immediately fill it with another role instance;
-
open another context (when the role represents a context), or open a role form (otherwise) showing its properties.
Cards usually are draggable - but that requires the use of a mouse. To enable card manipulation with just the keyboard, we have introduced a card clipboard in MyContexts. When a card is copied onto that clipboard, it’s title will show up in minitiature on the toolbar. As long as it is up there, it can be
-
pasted as the filler of another card (that card must be selected);
-
pasted into a role dropzone (the zone must be selected) to create a new role instance and fill it with the card on the clipboard;
-
pasted into the bin on the toolbar to remove it;
-
pasted into the remove filler tool on the toolbar to remove its filler;
-
used to open another context- or roleform by pressing the key combination
shift
-space
.