3D borders are treated as user graphics, so the 'auto-redraw' flag in the
window definition should not be set. 3D borders are controlled by the 'w'
validation command:
'w' (border type)
Syntax:
w<border number>,<slabbing mask>,<slabbing time>,<top left colour>,
<bottom right colour>,<popped in colour>,<popped out colour>,
<channel colour>
All the numbers apart from the border number are optional. The defaults are:
wxx,4,15,4,0,1,14,12. You can specify only some, eg: w2,4,20 or w2,,,,3. The
border numbers are:
0 Standard 3D border. Used for headings and buttons. Pops in if clicked on.
1 Ridged grouping border. Put it around things of a similar nature.
2 Like 0, with a channel round it. Used for the default button (ie. the one that is pressed if you press RETURN).
3 Wide border for writeable icons - leave the normal black border on the icon and make the background white.
4 Popped in border - for things that are for information only.
5 Trenched border - the opposite of border 1. Can be clicked on. Could be used as an alternate border 1.
If you add 8 to the border number, it will become inert - ie. it will ignore
all mouse clicks and not pop in. Bordered icons should be filled if you want
them to change colour when clicked on, and you should initially set the
background colour of the icon to the out-colour.
Note that if the icon contains an anti-aliased font then the background
colour will not be changed when the icon is slabbed. This may be fixed in a
future version, but I might not bother as the situation hardly ever arises,
and it wouldn't look very good unless you were in a 256-colour mode, due to
anti-aliasing.
If you set the in-colour and out-colour the same then the icon won't ever be
slabbed in or out. If you really really want an icon which doesn't change
colour when slabbed in and out unset the 'Filled' flag. I don't recommend
having icons which don't change colour, anyway - they look awful.
You can use WimpExt_SlabIcon to force an icon to be slabbed.
|
|
|