Resizing a design element (Details [+])
Selected design elements can be resized by cursor like this:
- moving the cursor onto an edge of the design element until it turns to any of the resize-shapes (
),
- pressing the left mouse button,
- keeping the left mouse button pressed, moving the cursor as desired (the design element will resize along),
- releasing the left mouse button.
Some design element can only be resized horizontally (the cursor turns to

), some only vertically (cursor:

), only a few ones can be resized universally (cursor:

).
close
As well, a design element can also be moved/resized by keyboard handling (see Appendix 1 - Keyboard Shortcuts) - alone, or along with any number of other design elements. Before that, however, the design elements that are to be moved/resized by keyboard handling have to be selected (see Application - Selection).
On some browsers it's but too easy to slip off a design element while moving/resizing it. Then the moving/resizing is not correctly closed by releasing the left mouse button - whenever the user moves the cursor across the browser window, the design element will move along. As a back door from such a quandary, the item Freeze was provided in the Toolkit menu (see section Application - Freeze).
This sub-menu offers a number of operations needed to manipulate a part of a design or a complete design and to transfer it from/to other applications:
- New: Restore the initial state of the online designer as it was right after beginning the session. (Details [+])
When the users click this item, before executing this operation they might be prompted:
Window changed - export first (Ok),
or start anew right away (Esc)?
If they are clicking
Ok or pressing the
ENTER-button, an
Export-operation is done before.
This menu item is enabled only if there is at least 1 design element in the design.
close
- Load: Load a design file from disk. (Details [+])
When the users click this item, a
file-selection dialog is launched at first. When clicking its
browse-button (or whatever its name in the user's language), a standard
file-selection sub-window is popping up with the names of all files available in the current directory. When clicking any one of these names, the
sub-window is closed and the name appears within the
file-selection dialog. When clicking
Ok , the selected file is opened and displayed in the upper left corner.
For making this operation safe, it is delayed. After a second or so the file is displayed.
close
- Import: Get a design created in any other application via clipboard into the online designer. (Details [+])
When the users have a design in another application (e.g. when they received it by
e-mail), they can load it directly into the online designer via clipboard: In the first application just press
(Shift+)Ctrl+A ,
(Shift+)Ctrl+C (to copy it entirely to the clipboard), go to the online designer and import it. When clicking
Import , a
sub-window is popping up with a title saying:
Import - (Shift+)Ctrl+V, OK to paste from clipboard
When doing so, the design is pasted from the clipboard into the
sub-window (when pressing
(Shift+)Ctrl+V ), the
sub-window closes (when clicking
Ok ) and the design is inserted into the online designer.
By this menu item, external designs can be included to a design at any time.
close
- Export: Copy a design created in the online designer via clipboard to any other application. (Details[+])
This operation comes in two variants:
 | In both variants, any selections are removed - for the export only. The design elements in the work area remain unchanged. So, intermediate states of a design can be kept in a neutralized form, the design itself can be further developed right away.
|
close
- E-mail: You can export your designs simply from ODF. (Details [+])
When you want to send a design by
e-mail, you can
export it to any
e-mail client. There you have all the comfort you are accustomed to. Or you can simply
e-mail right from ODF: Just type in the recipient and click "Send". The rest is done by PERL script
formmail.pl .
If you changed your mind meanwhile, just close the extra window (by clicking the
-button in the title bar, or pressing
Alt-F4 ).
close
- Custom File Operations [if any] (Details [+])
If you want to provide your own operations applying to a design entirely, you can do that here. (See section
Coding - Custom Operations, how this is done.)
close
This will normally be a menu hierarchy comprising
- Lines (Details [+])
In general, a design is an arrangement of application-specific design elements, connected by lines of several types. This sub-menu offers the line elements.
Significant to lines is that many of them are resizable, horizontally or vertically. (See (Image Enhancement of Coding - Alias for how to implement that.)
Universal resizing (horizontally plus vertically) would usually result in somewhat distorted lines. In this demo there have been made two types of lines (
and
) universally resizable, just to show you that this is not what you want.
 | In a real application there will have to be quite a number of lines being available. In the demo, however, just a few very basic lines have been provided. |
close
- Labels (Details [+])
In practice, virtually no design will be complete without some verbal information. Labels are the design elements by which the users can type verbal information into their designs:
- Simply create a label just like any other design element.
- Move it to the place you think best for the intended information.
(If you create the label from the Floating Menu, you don't need to move it - it will be created right at the place you right-clicked for the Floating Menu popping up.)
- Type the information into the label.
- When finished with typing, press the ENTER-key.
Otherwise the text typed in would be lost when the next design element is created.
When a label is created, it gets the keyboard focus automatically - so the user can type into it right away. If between moving and typing something else has been clicked, the keyboard focus is lost - so it will be necessary to click the label again, before you can type into it.
 | In the demo only a few types of labels have been provided. For practical use of ODF, the users will need labels of different letter size, different fonts, different letter styles, etc.
|
close
- a number of Custom Design Elements (Details [+])
These are the application-specific design elements. ODF leaves it open to the applier to include any number of design elements needed in the particular case.
close
When a user moves the cursor onto any these items, another sub-menu pops up with a table of graphic symbols representing the corresponding design element.
When clicking any of these symbols, the corresponding design element is created in the center of the current screen. That new design element is selected (adding it to the other selections, if there were design element[s] selected before). Thus the new design element can be moved and/or resized right away, even by keyboard handling.
The new design element along with the old selections is making up a temporary group (see Application - Selection. By temporary grouping, the users can subject a number of design elements concurrently to an edit operation (see Application - Edit).
In this menu all the operations are offered to the users that the currently selected design elements can be subjected to. The first few are standard operations, followed by a number of custom operations:
- Select All: Select all design elements of the current design (Details [+])
When the user wants to apply an operation to all (or most) elements of the current design, this edit operation is useful. If necessary, some design elements can be taken out from the selection by (Shift+)Ctrl+Click (see
Application - Selection).
 | This item is enabled only if the design is not empty. |
 | The keyboard shortcut (Shift+)Ctrl+A will not work on all browsers. |
close
- Delete: Delete all the currently selected design elements (Details [+])
This is an easy way to remove one (or a number of) design elements. By
Undo they can be restored later, until the session is closed.
 | This item is enabled only when at least 1 design element is selected. |
 | The keyboard shortcut Del will not work on all browsers. |
close
- Cut: Move selected design element(s) to internal clipboard (Details [+])
By this operation one (or a number of) design elements can be copied to the internal clipboard, removing it/them from the design.
 | This item is enabled only if at least 1 design element is selected. |
 | The keyboard shortcut (Shift+)Ctrl+X will not work on all browsers. |
close
- Copy: Copy selected design element(s) to internal clipboard (Details [+])
By this operation one (or a number of) design elements can be copied to the internal clipboard, leaving the design unchanged.
 | This item is enabled only if at least 1 design element selected. |
 | The keyboard shortcut (Shift+)Ctrl+C will not work on all browsers. |
close
- Paste: Add Design Element(s) Cut/Copied Before (Details [+])
By this operation, one (or a number of) design elements that were cut or copied before to the internal clipboard can be restored again. From now on they can be handled just like any normal design elements.
 | This item is enabled only if at least 1 cut/copy operation was done before. |
 | The keyboard shortcut (Shift+)Ctrl+V will not work on all browsers. |
close
- Undo: Restore Design As It Was Before The Last Operation (Details [+])
Whenever a standard operation is about to be done, the selected design element(s) is/are copied. By this operation these copies are restored in the design. From now on they can be handled just like any normal design elements.
 | This item is enabled only if at least 1 operation was done before. |
 | The keyboard shortcut (Shift+)Ctrl+Z will not work on all browsers. |
close
- Redo: Restore Design As It Was Before Last Undo Operation (Details [+])
Whenever an
Undo operation is about to be done, the design element(s) to be restored is/are copied to another special area. By this operation these copies are restored in the design, giving just the same design as it was before the
Undo operation. By a constant iteration of
operation - Undo - Redo within one session, even highly creative designs can be developed.
 | This item is enabled only when at least 1 design element is selected and any undo operation was done before. |
 | The keyboard shortcut Shift+Ctrl+Z will not work on all browsers. |
close
- Align: Align a temporary group of design elements adjacent to each other (Details [+])
A frequent step in working on a design is creating a string of design elements, aligned exactly adjacent to each other. If you create the design elements and move them individually, that's quite an arduous job. Much more efficient, though requiring a bit of imagination, is the following:
- First, click on the background of the working area to unselect all , thus starting a new temporary group.
- Create the first one of the new design elements, and move it to the place where you want the new group to begin after aligning. Watch out that the selection of this first element of the group is maintained before you go on.
(You can even save the moving by creating the first design element from the Floating Menu. Then it will be created right at the point where you right-clicked for the Floating Menu popping up.)
- Now, create all the following design elements of this group, right on top of each other. (It doesn't matter if you see only a jumble of design elements - they will be taken apart automatically. This is where your imagination comes in, though!)
As well, you can adjust design elements already existing: Just select them in addition to the first element, making up a temporary group.
- Move the cursor onto the Edit item Align : a sub-menu will be popping up with a table of symbols which Align-type you want: Align the top-left, top-right, bottom-left or bottom-right of the group's bounding rectangle to the first element (or the point right-clicked, if you use the Floating Menu).
- Finally, click the symbol of the Align-type you want. Accordingly, all the other design elements of the group will be aligned to the first element.
close
- Adjust: Adjust a temporary group of design elements to have all the same width/height (Details [+])
When working on a design you will frequently have to resize a number of design elements all to the same width or height. When doing that individually, this would be a tough job. Instead, you can adjust them automatically (though it takes a bit of imagination):
- First, click on the background of the working area to unselect all , thus starting a new temporary group.
- If needed, create the first one of the new design elements and resize it as you want the other design elements of the new group to stretch after adjusting. Watch out that the selection of this first element of the group is maintained before you go on.
- If not yet existing, create all the following design elements of this group, right on top of each other. (It doesn't matter if you see only a jumble of design elements - they will be resized automatically. This is where your imagination comes in, though!)
As well, you can adjust design elements already existing: Just select them in addition to the first element, making up a temporary group.
- Move the cursor onto the Edit item Adjust : a sub-menu will be popping up with a table of symbols which Adjust-type you want: to the same width or height.
- Finally, click the symbol of the Adjust-type you want. Accordingly, all the other design elements of the group will be resized to the first element.
Obviously, only those design elements that are declared with resize or a resize="
" containing 'h' will be width-resized, if containing 'v' they will be height-resized.
close
- Custom Edit Operations: Here the applier can include a menu with application-specific Edit operations (Details [+])
The
ODF-concept is open for
application-specific operations ("custom operations") included by the applier to be part of the
operation - Undo - Redo cycle. See
Coding - Custom Operations for how to do that.
If you want, you can even give a keyboard shortcut to a custom operation.
 | Custom keyboard shortcuts are not really recommendable, though: Just about all key combinations coming into question are occupied for standard browser operations (in particular if you want to keep browser-independent). In addition, standard ODF itself needs some keyboard shortcuts. So, for the applier there is nearly nothing left. Moreover: |
You should always provide your menu
custom_edit to make your operations accessible by mouse click as well. Keyboard shortcuts are useful for power users only, working nearly every day with your online designer.
 | As well, you might want to give an application-specific operation a keyboard shortcut. Note, however, that keyboard shortcuts cannot be used in all browsers (usually only Internet Explorer and Firefox - which, fortunately, are the major browsers, counting for some 85% of all browsers on the Internet.)
Look at Coding - Custom Keyboard Shortcuts to see how to do that. |
close
 | This item is enabled only when any element is selected. The items within the Edit sub-menu are enabled depending on different conditions (see respective "Details").
|
When moving or resizing a design element by mouse, it is but too easy to slip off with the mouse. (Some browsers are more susceptible to this than others.)
As a result, the moving/resizing operation would not be correctly closed. From now on, whenever the users move the mouse over that design element, it would move/resize unintentionally. - In a major design this could even happen several times. Then, moving the mouse unsuspectingly across the design might wreak havoc.
Worse even, when the mouse is slipping off during moving/resizing, the design element might inadvertently be dropped at a very outlandish position or dimension.
Therefore, operation Freeze has been provided at a prominent place in the Toolkit . When this item is clicked, Freeze does several things:
- Close the move/resize operation of all design elements.
- If a design element has been dropped outside the work area, it is moved back.
- If a design element has been resized to any "crazy" width or height, it is resized back to a width/height of 10 pixels.
From now on, the frozen design can be worked on just like before.
When any operation is to be applied to one or more design elements, the respective design elements need to be "selected" (= entered in an internal list, reflected by drawing a cyan frame around it).
This can be done in the following ways:
- Unselect All (Details [+])
When you move the mouse onto any place on the background of the working area and click the (left) mouse button, all currently selected design elements (if any) are unselected.
 | When a new design element is created, it is selected automatically - possibly destroying a selection that you have built before! |
close
- Single Selection (Details [+])
When you move the mouse onto a design element and click the (left) mouse button, this design element is selected. If other design elements are selected currently, all of them are unselected.
 | If you want to type into a label, first you have to move the keyboard focus to it by clicking onto it. This implicitly selects the label - possibly destroying a selection that you have built before! |
close
- Adding a Selection (Details [+])
When you move the mouse onto a design element, pressing the Ctrl-key and clicking the (left) mouse button, this design element is selected in addition to the current selection.
If that design element was selected before, it is unselected; leaving all the other selected design element (if any) unchanged.
 | This is an efficient solution if you want to select all but a few design elements:
- Press (Shift+)Ctrl+A-key combination to Select All ,
- unselect the few design elements you want to leave out, by Ctrl-click.
|
close
- Multiple Selection (Details [+])
When a single design element has been selected already and you move the mouse onto another design element, pressing the Shift-key and clicking the (left) mouse button, all the design elements from the one selected first up to the one Shift-clicked are selected.
If the design elements you subject to Shift-click were selected before, they are unselected.
 | Apart from very simple designs involving just a few design elements, a multiple selection might yield some unwanted selections. Then you can use Ctrl-click to correct it.
|
close
- Frame Selection (Details [+])
Frame Selection along with Edit operations (such as Align, Adjust - and probably many custom edit operations, in a useful ODF-based application) make for a very efficient designing, suitable for power users who are using that application regularly. Casual users will be better off with individual selecting, moving and resizing.
When you have developed a major design with many design elements involved, you might have to modify a group of some dozens or hundreds of design elements. Evidently, this would be awkward to select individually. Fortunately, however, the design elements of such groups will usually not be spread all over the design but will be located in "clusters", next to each other. Therefore it would be quite natural to mark that cluster's area for being selected. That's what this kind of selection was provided for.
Frame Selection is done quite simply:
- By item "by Frame" of the menus "Edit - Select" bring the selection frame into the design.
- Move the selection frame - typically to the upper-left corner of the area you intend to select.
If you launch the selection frame from the Floating Menu, it pops up just at the point you right-clicked. (Meaning, by using the Floating Menu you can save this step.)
- Resize the selection frame such that all (or at least most of ) the design elements to be selected are covered by it.
Note that there is usually a margin of some 10px around each design element; so, you should resize the Floating Menu sufficiently beyond each design element you want to have selected.
When you re-launch the selection frame later, when popping up it will have the same dimensions as you resized it before - which will usually be about that you need.
- Finally, when you click the Ok-button (at the bottom-left corner of the selection frame), all design elements that are covered completely by the selection frame (including their margin!) are selected.
If you changed your mind and want to do away with the selection frame, without any selection, click the Esc-button (at the bottom-right corner of the selection frame)
- All selections within the selection frame are done in addition to old selections, if any. If the selection frame covers design elements that are already selected, they are unselected. Thus you can handle a large number of selections by a few clicks.
- If some design elements you wanted in the selection were left out (or some were selected in excess), you can modify that by individual selection (Ctrl+click).
close
Moving, resizing and individual selection is good for the casual user , who wants to see immediately what has changed by a mouse click.
For the power user who is regularly working with an ODF-based application, the problem is different: Such users know exactly what to expect from an operation, they don't need an immediate feedback. However, they want to have their commands being executed as efficiently as possible.
For the power users
the Floating Menu has been implemented.
Whenever you "right-click" (= press the right mouse button) when the mouse cursor points to any place in the background of the working area, a menu pops up.
 | Right-clicking is fine on most browsers, except e.g. Opera . There, a right-clicking always triggers the browser's context menu. For such browsers an alternative has been introduced: Ctrl+Alt-click has the same effect as right-click in most browsers.
|
When you click an item in the Floating Menu, or when you move the mouse out of it, the Floating Menu is gone again.
This Floating Menu has nearly the same items as the Toolkit menu, which is in the upper-right corner of the working area all the time. Yet, with the Floating Menu the right-click point is also used:
- When you create a design element from the Floating Menu, it is created right at the right-click point. Thus you can save the effort for moving it.
- In custom float operations, the right-click point can be used to apply an operation to that point - making it more efficient (see Coding - Custom Operations)
Operations that apply to the entire design, such as the File operations, would make no sense in the Floating Menu. Therefore they are available in the Toolkit menu only.
Whenever a user moves the mouse cursor onto a design element, a standard text appears in the browser's status line:
- short indication of that design element's type
- the coordinates of its upper-left corner ( x=
y=
), in pixels
- its current width and height ( w=
h=
), in pixels.
- Optionally, the custom status text (declared by status="
", see Coding - Alias - HTML structure)
The status text is updated when the design element is moved or resized. This might help when the users want to draw a design exactly to scale.
Why A Section 'Coding'?
ODF is an Online Designer Framework - meaning software that was deliberately delivered incompletely. It provides just a skeleton of the very basic features - intended to be filled with flesh by application-specific custom design elements, custom operations, and (potentially) custom keyboard shortcuts - on the part of the applier.
In other words: ODF does not pretend to be a "solution for everything". Instead, it is accepted that no one but you, the applier, knows best what is useful or even needed in your field of application.
In this section it is outlined how you can implement your professional knowledge in ODF.
Sequence matters, if you want to build an application-specific online designer based on ODF. Only one file needs to be coded. Those parts that need to be placed in certain positions are written in bold letters in the following coding scheme.
(When you switch to another letter size, you might find it easier to read.)
Other parts are optional - they may be coded in any order, or they may even be omitted. Such parts are written in normal letters .
If you want to know more about a detail, move the cursor onto it!
<HTML>
<HEAD>
<TITLE>
</TITLE>
<SCRIPT src="
\ODFa.js" home="
" license="
"></SCRIPT>
<LINK rel="STYLESHEET" type="TEXT/CSS" href="
\ODF.css">
<!------------------ Custom Design Elements -------------------->
<DIV id="xyz" class="Menu" STYLE="display:none">
:
</DIV>
<!-------------------------- alias ------------------------------>
<DIV id="alias" STYLE="display:none">
:
</DIV>
<!--------------------------------------------------------------->
<SCRIPT>
function Action(typ,n) // custom operations
{
}
function CustomKey(key,ctrl,alt,shift) // custom keyboard shortcuts
{
switch(key)
{
case
:
case
:
}
}
Menu('custom_create'
,"Xyz::@section_xy,-220,-10;;
,"
options
");
Menu('section_xy','@xyz',"
options
"); <!-- custom symbols menu -->
</script>
</HEAD>
<BODY>
</BODY>
<SCRIPT src="
\ODFb.js"></SCRIPT>
</HTML>
<TITLE>
</TITLE>
Required : Obviously, the title you give to your application is up to you.
Note, however, that this title will show up in the user's task bar, and that it will be truncated to the first letters if the task bar is crowded.
So, the first few letters should be significant already!
"
\ODFa.js"
Required :
- "ODFa.js" is the name of the first part of the ODF software needed to build an ODF-based online designer. (Use capital and lowercase letters exactly as given here!)
- "
\" is the Internet address from where this software will be taken, by way of licensing. (Usually this will be a directory of your own web site.)
home="
"
Optional :
Internet address from where the design elements will be taken, by way of licensing. (Usually this will be the same address as the "
\" from where "ODFa.js" is taken. Then it can simply be omitted.)
Details: see
Licensing
license="
"
Required :
License code that will be checked whenever your online designer is launched. If it is invalid or expired already, the user gets an error message, and the screen remains empty.
Details: see
Licensing
\ODF.css"
Required :
- "ODF.css" is the name of the declaration file with the style sheets needed to build an ODF-based online designer. (Use capital and lowercase letters exactly as given here!)
- "
\" is the Internet address from where this software will be taken, by way of licensing. (Usually this will be the same as that of "
\ODFa.js".)
id="xyz"
Required : Identifier of the static HTML declarations of the custom design elements. (This will be required later on for including them into a Create sub-menu.)
See section Coding - Custom Design Elements
id="alias"
Optional, required if you have declared design elements with attribute alias="
"
See section
Coding - Alias
CustomKey(key,ctrl,alt,shift)
Optional, required if you want to give keyboard shortcuts to your custom
menu items. Note, however, that most of the potential keyboard shortcuts are occupied already - in particular, if you want to make them available over all browsers.
Therefore, this is not recommended (see section
Coding - Custom keyboard shortcuts)
Menu('custom_create',"Xyz::@section_xy,-220,-10;;
","
options
")
Optional, required if you want to include your custom design elements as a
sub-menu to the ODF Toolkit. Note:
- 'custom_create' is the name that will be expected by ODF to include a custom sub-menu to the Create sub-menu.
- "Xyz" is the text that will show up to the users in the Create sub-menu.
- section_xy (preferably "section14") is the identifier used by ODF for menu handling. ("section" is a required keyword, "14", "15",
is the number of the sub-menu)
- -220,-10 is the position where that sub-menu will be launched.
-
options
are the options for fine-tuning the sub-menu
Menu('section_xy','@xyz',"
options
")
Optional, required if
'section_xy' is the identifier of the
sub-menu by which the static HTML declarations of your custom design elements will be made available to the users.
Note:
- section_xy is the same identifier that was used before to include that sub-menu into the Toolkit.
- xyz is the identifier of the static HTML declarations of your custom design elements.
-
options
are the options for fine-tuning the sub-menu
Action(typ,n)
Optional, required if you want to provide custom operations to your custom design elements.
For details see Coding - Custom Operations
\ODFb.js
Required :
- "ODFb.js" is the name of the second part of the ODF software needed to build an ODF-based online designer. (Use capital and lowercase letters exactly as given here!)
- "
\" is the Internet address from where this software will be taken, by way of licensing. (Usually this will be the same as that of "
\ODFa.js", i.e. a directory of your own web site.)
When you are talking to clients and scribble a rough sketch of what you could do for them
when you are discussing a design problem with a coworker,
when you are looking up a detail in a supplier's catalog, what are the symbols by which the individual products are depicted there in their interaction within a solution? - These are the design elements .
ODF works by
- putting design elements into a work area (by a "Create" operation)
- moving all and/or resizing selected design elements
- forming a design by connecting these symbols by lines (provided by standard ODF)
- e-mailing your design to and receiving e-mailed designs from your partners
- printing, storing etc. all or parts of a design
- incorporating former designs in future ones.
To do that, you need to
- sort out the graphic symbols that are established in your field of business (Details [+])
What are the right Design Elements for You?
There are several ways to figure out what will be the right design elements for you:
- Take any of your suppliers' catalog, For each product description you will probably find any graphic symbol. Perhaps there will also be some examples of how a number of the products could be combined.
- Take some of the professional newspapers in your field. They can hardly do without some kind of "designs", showing how the products described can be combined. - What are the symbols used in such schemes?
- Are there professional conferences in your field? - What are the graphic symbols used there for tangible equipment or intangible concepts?
- Probably you will have used some design elements yourself already: When you're assigning today's jobs to your people, you will have to draw them a sketch of what to do. Apart from horizontal and vertical lines - what are the graphic symbols you are using?
Keep a collection of those symbols for the next step.
close
- prepare small graphic files (format .jpg , .gif , .ico etc.) Details [+]
How to Prepare Graphic Files for the Design Elements?
Basically it's enough to scan a printed symbol or to draw a simple black-and-white drawing, and to store it in any of the graphic formats compatible with most browsers (e.g. .jpg or .gif )
There is, however, a problem with these formats: The background of such graphics is opaque-white. When in a larger design you need to move such design elements pretty close to each other, the background of the one could obscure another design element; in the end, the design as a whole looks garbled. (In the ODF demo, most of the inductivity symbols have been kept in .gif-format - so you can see what this means.)
To avoid that, you should try to make all your design elements to icons ( .ico format):
- Get yourself any graphic editor that can store graphics in .ico format.
- Import the symbol via clipboard, or draw it freehand on screen.
- Once you have it, you might want to improve it slightly by the tools available in your editor.
- In the end, store it in .ico format under a meaningful name, so you can efficiently build them into the HTML structure needed in ODF.
- When finished with all the icons, change to any text editor to produce an HTML structure you can use to include the icons in the ODF Toolkit.
- pack them into a HTML structure (Details [+])
The best representation for a number of design elements will be a tabular arrangement:
<TABLE>
<TR>
<TD><IMG src="
" class="MenuItem" title="
" status="
" alias="
"></TD>
:
</TR>
<TR>
:
</TR>
:
:
</TABLE>
|
| src="
" |
Required: Name of the graphic file implementing the graphic symbol that will show up in your custom Create menu. It will usually be made available by the applier at his home -directory. |
| class="MenuItem" |
Optional: By this attribute, the graphic symbol in the custom Create menu will be highlighted when the user moves the mouse onto it. (Not really necessary but helps for better user-friendliness.)
 | Works on all browsers except MS-Internet Explorer . |
|
| title="
" |
Optional: "
" is a short tooltip text popping up when the user lets the mouse rest on a graphic symbol.
(Not really necessary but helps for better user-friendliness.) |
| status="
" |
Optional: Text that will appear in the status line - along with the standard status message - each time the users move the mouse cursor onto a design element.
(Not really necessary but helps for better user-friendliness, see Application - Status Message.) |
| alias="
" |
Optional: "
" is the identifier of the alias which will be created in the work area, when this graphic symbol is clicked (see Coding - Alias) |
close
- This static HTML structure you can easily make to a menu by including it as (Details [+])
Menu('section14','@xyz',"… options …");
|
| section14 |
By ODF naming conventions, all sub-menus have an id section followed by one digit per menu level. The Create sub-menu is on level 1, your sub-menu will be associated with the fourth item - so the second digit is 4. Altogether the full id should be section14 |
| @xyz |
xyz is the id of the static HTML structure holding the <TABLE>
</TABLE>. By the header '@' it is included in the sub-menu. |
| options |
Optionally, the sub-menu section14 can be fine-tuned by options. (See Online Communication: Methods and Tools, in All Browsers) |
close
- Include that menu as a sub-menu to the ODF Toolkit (Details [+])
Menu('custom_create'"Xyz::@section14,-220,-10;;…,"… options …");
|
| custom_create |
By this name your sub-menu will be included into the Create sub-menu. |
| Xyz |
Text that will show up in the Create sub-menu as a generic name for you custom design elements. Try to give it a significant, 1-word name. |
| @section14 |
Reference to the sub-menu created before. |
| -220,-10 |
Position where to launch this sub-menu (referring to the superordinate menu). By -220 it will be launched to the left of it, by -10 slightly above the menu item it is associated with.
 | This is the launching position taken from the ODF demo. In your case you might want to modify it. |
|
| options |
Optionally, the sub-menu custom_create can be fine-tuned by options. (See Online Communication: Methods and Tools, in All Browsers) |
 | This sub-menu 'custom_create' should be declared before the subordinate sub-menu 'section_xy', or it would hide that sub-menu when it is popping up. (See Coding - Overview) |
close