VID and pre-existing faces
[1/4] from: brett::codeconscious::com at: 19-Apr-2001 0:02
Hi VID gurus
If I have a pre-existing face
a-face: layout [text "A simple face"]
and I want to include it within a new face b-face
b-face: layout [ title "Decorated face" ... a-face... ]
Can I do it with a VID specification or do I play with b-face/pane as I am
now?
Thanks,
Brett.
---
http://www.codeconscious.com
[2/4] from: brett:codeconscious at: 19-Apr-2001 20:38
Maybe the allies have the answer....
Original Message -----
[3/4] from: cyphre:volny:cz at: 19-Apr-2001 14:06
Heya Brett,
this is my solution:
a-face: layout/offset [origin 0x0 backcolor red text "A simple face"] 0x0
view b-face: layout [ title "Decorated face" box with [size: a-face/size
pane: a-face]]
maybe you'll find it usefull...
Happy Reboling ;-)
Cyphre
[4/4] from: peoyli:algonet:se at: 19-Apr-2001 15:17
One way to do it:
a-face: [origin 0x0 text "A simple face"]
view layout [
title "Decorated face"
at 10x10
panel a-face with [size: 100x20]
]
The only problem is that you have to know the size of the panel to add..
Othwewise:
l: layout a-face: [origin 0x0 backcolor green text "A simple face"]
view layout [
title "Decorated face"
at 10x10
panel a-face with [size: l/size]
]
but this probably spends some CPU time for the layout function call.. (and I
also noticed that l/size is smaller than the required size to display the text)
/PeO