![]() |
VTML Tips and Techniques: Editorlayout |
|
Once the site at the new server is ready, this message will automatically disappear!
Meanwhile, you can see how the move is progressing at the status page.
|
Home | VTML section | HTML section |
||
Minimum width |
This is a really simple one: just a single number. Many people have complained that when they have set up Windows to use large fonts, in some of the visual editors the text "Output on single line" somehow overlays the Apply button. Actually, it's not the text that hides the button or part of it, but a lot of needless white space after it. Well, I've determined the absolute minimum width for a visual editor to prevent this from happening. It's 466. Not 465, not 467, but 466. Use that as a minimum WIDTH attribute in your EDITORLAYOUT tags, and you'll have one problem with large fonts solved. In my own tag editors I use multiples of 5 for most sizing, so all my tag editors have a minimum width of 470, for example (from Attrib.vtm): |
|
<EDITORLAYOUT WIDTH=470 HEIGHT=85> |
Left and Up |
It's easy enough to see what the RIGHT and DOWN attributes are for: they position a control relative to an anchor. And we've already seen what happens when the anchor is not defined. But why are there no LEFT and UP attributes? Because both RIGHT and DOWN accept negative values.
It's quite simple, really, but it took a bit of poking around before I realized this...
|
|
Two Lists |
So what if HTML defines a fixed set of possible values for an attribute but a particular browser allows a superset of that? The answer is to use two DropDown controls, both not editable (and both with an empty entry at the top if the attribute is not required. The technique used for this is explained on the
VTML Tips and Techniques: General page since it involves not only
the EDITORLAYOUT section but the ATTRIBUTES and TAGLAYOUT sections as well.
|
|
Textarea |
The TEXTAREA control, used mainly to allow the user to type in "free-format" text, has a few peculiarities that should be taken into account when using one:
|
|
Hiding a control |
Did you ever feel the need to hide a control? There's no HIDE attribute for controls in VTML but it
is still possible with a little smoke and mirrors. The item
Was that value changed? on the General page explains how it's
done and what it can be used for (which is why it's there and not here).
|
|
Contributions! |
Do you have any VTML Tips or Techniques to share? If it's for the Editorlayout section, use the following email link, otherwise go to the page corresponding to the section it's about and use the Contributions! mail link from there, so your mail will have the correct subject. Please explain why it's such a good tip, and illustrate with example code where appropriate. Also let me know whether you want you email address mentioned here, or only your name. Send your contribution to: The VTML Tips and Techniques sections are:
|