|
2. Editing a layout
As sait previously, the layout described here looks like the application
"people", but there is a possibility to add control buttons to allow data
to be added / removed / searched...
Since some buttons of the layout editor and the buttons described
here have similar names and functionalities, sorry to insist, but they
are not fully similar. Editor buttons cannot be edited / removed...
There are 6 possible buttons, that we are going to display in a row:
- "Previous" button. This will allow you to navigate in your data
(get the record before the record currently displayed). Click the "layout"
tab, and then the "button" tab of the layout view.
- Set up the geometry: 10,10,40,20 (numbers separated with
commas or blanks).
- The label, a short one, for instance : Prev
- The command: PREV (in capitals).
Click "Create". If you go to the database, a first button should be created. Its
top-left corner is at 10,10 from the view's top left corner, its with and height
are 40 and 20. For the following objects, same scenario. Define the button and click
"Create".
- "Next" button. At this point, you could click "New", which would
erase all the fields since almost everything changes. However, it is possible
to replace only the changing parts (the first number of the geometry, the label
and the command).
- Geometry = 60,10,40,20
- Label = Next
- Command = NEXT
- Same for the other buttons with the different values in the same order.
The New button
- Store button
- Delete button
- Find button
The button commands must be specified in capitals.
In case you make a mistake, you cannot fix it. Delete the wrongly
placed / labeled item (by clicking "Delete"), and reconfigure it. I
know, this is not the most user-friendly interface, but this will
disappear in the near future and be replaced with a graphical interface.
If you delete a field, its characteristics disappear from the editor
and are replaced by the next field, except if the current field is the
last one. For example, if you have 3 fields A, B, C, and B is currentlt
displayed. If you click "Delete", C will be displayed in the editor.
If you further click "Delete", the preceding field (A) will be displayed.
Note: if you don't want your database to be altered by other people,
first create it by using all the buttons, and then, before releasing
the database to the "public", remove the "Store", "New" and "Delete"
buttons. Well, I know, other people can add these buttons if they really
want to alter your data. A system of passwords and access levels is in
the pipeline of features to be added.
Now, let us configure the captions with the following parameters:
- 1st caption:
- 10,50,290,20
- Name
- 65
- RIGHT
- LEFT (Not mandatory, LEFT is the default.).
Then, only the changing parameters are described:
- 2nd caption:
- 3rd caption:
- 4th caption:
- 5th caption:
- 6th caption:
- 7th caption:
- 210,175,90,20
- Zip
- 30 (label width is smaller for the zip code)
- 8th caption:
- 10,200,290,20
- Country
- 65 (Back to the original label width)
- 9th caption:
- 10th caption:
- 11th caption:
- 12th caption:
- 13th caption:
- 14th caption:
|