[REBOL] Re: How to's
From: media:quazart at: 26-Oct-2001 7:44
This mail was originaly intentended for the list, but for some reason my
mailer switched addresses and sent it directly to paul... !??
it explains why the first (or root) face does not show text by default, and
how to get it to display text from the root face.
note to paul: I've edited the examples and included another one, so you
might want to check the mail too.
---------------------------------
I'll continue where Ammon Left off...
The first Parent face, it seems, is the window description... and in that
context, the text attribute sets the window's title name !!!
run this example and notice the window's title ...
rebol []
gui: make face [
offset: 30x30
size: 200x30
text: "hey!"
]
view gui
if you want the text to be displayed normally, do the following...
rebol []
gui: make face [
offset: 30x30
size: 200x30
text: "hey!"
]
view/options gui 'no-title
you see, providing the 'no-title option , makes the text behave as normal.
but then you have to provide your own window titlebar... In the example I
sent to the list, notice that the window titlebar actually does drag the
window around...
:-)
if you want a standard system window border AND some text in the window
you'll have to do
like Ammon suggested... you need to supply it a face in the pane attribute
to display inside it...
-MAx