There are various defaults implemented for element tag values that are used if the tags are absent or left blank. Here is the order in which they will be applied with the highest priority (1) at the top.
1) A tag within the element itself
2) A tag within the elements <page><defaults>
3) The <override><layout> section within xapconfig.xml
4) The <layout> section within xapconfig.xml
5) The <layout> section within config.xml
6) Inbuilt defaults.
You don't (shouldn't) need to include defaults at any levels that you aren't wishing to use.. for example you could omit 1-3 and 5 and use the defaults from the <layout> section within xapconfig.xml
Here's the start of a list...
Defaults are configurable for the following elements, there are few more more - I'm sure Martyn will update me and then I'll update this post too, I'll also add the inbuilt defaults in brackets
textboxwidth (92)
height (92)
fontsize (14)
fontcolour (0xFFFFFF white)
font (Verdana)
align (left)
alpha (1.0)
buttonstyle (black)
width (92)
height (92)
alpha (1.0)
bsctext (within buttons)font* (currently fixed - Verdana)
fontsize (14)
fontcolour 0xFFFFCC (pale yellow - may be changed to white)
alpha (1.0)
labelfont* (currently fixed - Verdana)
fontsize (14)
fontcolour (0xFFFFFF white)
offset (0)
alpha (1.0)
time (time stamps)font* (currently fixed - Verdana)
fontsize (14)
fontcolour (0xFFFFCC pale yellow - may be changed to white)
show (true)
alpha(1.0)
*Note the font within time stamps, labels and bsctext boxes is fixed as Verdana. You can of course replace button name labels and bsctext overlays with your own text boxes for which you can sue any font so that shouldn't be an issue.
There are also some non configurable layout related defaults that can only be overidden within individual elements.... and most numeric tags , absent or blank will default to 0.
e.g
visible (true)
posX (0)
posY (0)
gridX (0)
gridY (0)
A relative +/- pixel nudge can be applied to grid placed elements if both tags are present and posX or posY are signed . However if posX/posY is present and unsigned then gridX/gridY respectively will be ignored as pos takes precedence over grid.
and some layout defaults
gridXmax (6)
gridYmax (6)
marginleft (150
marginright (15)
margintop (15)
marginbottom (15)
screenwidth (800)
screenheight (410)
K