![]() |
|
|
|
We have already encountered quite a few interesting items one can place on an InfoView. So far, we've seen:
We will now take a closer look at some of the field Controls and see what, if anything, we can edit about them.
Label. This is perhaps the simplest of all items, but there's a trick even to this one. You can edit the Label's Caption simply by double-clicking it.
The Caption "lets you in": you can adjust the text in the Text Box it has temporarily become. Just click somewhere outside the Label or hit Ctrl-Enter when you're done – and the Label is updated.
Checkbox. While not a Label at all, it sort of looks like one, doesn't it? Editing its Caption therefore works exactly like editing a Label: just double-click it to edit.
Grid Column Caption. It's not a separate Item per se, but it works like a Label: double-click to edit.
Radio Button Group. Implementing a field using this control creates an empty Radio Group with no Buttons inside.
The way you create the buttons that will correspond to whatever choices you want this Radio Group to present, is by getting "into" the Radio Group. You do this by double-clicking it – right in the middle. This opens a little grid of Value/Caption pairs. The Value corresponds to the actual "real" value this Radio Group will store or retrieve from its underlying field, e.g., "NY"/"CA"/"TX" and so on. The Caption is the caption of the corresponding Radio Buttons, which in this case would be "New York"/"California"/"Texas", etc. Using this example, we'd fill the little grid to make it look like this:
Once satisfied with the setup, you can close the mini-grid simply by clicking anywhere outside the Radio Group. This creates the Radio Buttons in the order in which you have listed the corresponding Value/Caption pairs.
Note that you can't re-order the pairs at will, so you have to be very careful and organized as far as the order in which you enter them: start with the last Button, then insert the other ones. If you do find yourself in need of re-ordering the Radio Buttons, you can sort their list by either the Value or Caption column – in ascending or descending order. If neither order produces the right results, here's a little tedious trick: edit the Captions so that their first character places them in the desired order (e.g., using the example above, you'd change them to "1New York"/"2California"/"3Texas" or similar). Sort by the Caption column and accept your changes. The order is now correct, but the Captions themselves aren't. Re-open the grid, and "fix" the Captions by taking out that first character. Re-apply the changes. The already-correct order has not changed, so now you have your correct Captions in correct order.
If you want to change the Radio Group's Caption, editing it works exactly as if it were a Label (see above): double-click, edit, click elsewhere or hit Ctrl-Enter. This is the only reason we told you earlier to double-click the Radio Group close to its center: in fact, you must double-click it anywhere outside the Caption area at the very top.
Immediate Lookup Combo. Since it performs essentially the same function as a Radio Group, it too requires a set of Value/Caption pairs, which are edited the same way: double-click the Combo Box.
Lookup Combo Box. We mentioned it here only for the sake of completeness, but we really don't want to talk about it until the chapter on Relational Tables. So, don't double-click it!
You have already seen a few other Controls, e.g., Calculator Edit Box. We are not listing them here simply because there's nothing to be edited about them – at least not in a way similar to those we did list above.
As you can see, quite a bit of useful stuff can be edited directly, "in-place", simply by double-clicking the corresponding item.
Let's see what other items we can create in Designer.
Creating a Layout Template is therefore simple: just create an InfoView but do not place any data-aware items on it (i.e., do not drag any fields into it). You can create and save it attached to any Table you wish. You may find it convenient to create all Layout Templates under some particular table – just to keep them together. This is up to you though since Designer will find all suitable InfoViews regardless of where you put them. You will find the several default ones under the Car Manufacturers table (simply because that table has the fewest "real" InfoViews).
The above represents absolutely all items you may place on an InfoView form. The list is not particularly long, so you should be able to quickly and easily master every available item.
We have intentionally avoided quite a few attributes of all these items. Some will be treated in the next chapter on Layout. Others will get what they deserve in a separate chapter dedicated to Item Formatting. |