Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

FACE questions

 [1/14] from: robert::muench::robertmuench::de at: 12-Jan-2003 15:30


Hi, I'm playing around with raw faces (no VID) but somehow it doesn't work as I like. I want to create a face with a text in it. I have tried something like this:
>> test: make face [] >> test/text
== none
>> test/text: "Hello Robert!"
== "Hello Robert!"
>> view/offset test 50x50
So far so good. But the text is displayed in the title bar not in the face. Why this? Is this because that's the "top-most" face? How do I create an area face? Do I just later set face/style to 'AREA? Is this sufficient? Robert

 [2/14] from: rotenca:telvia:it at: 12-Jan-2003 16:25


Hi Robert,
> >> test: make face [] > >> test/text
<<quoted lines omitted: 4>>
> So far so good. But the text is displayed in the title bar not in the > face. Why this? Is this because that's the "top-most" face?
Yes. view make face[pane: make face [text: "hello"]]
> How do I create an area face? Do I just later set face/style to 'AREA? > Is this sufficient? Robert
Are asking this? make-face 'area --- ciao Romano

 [3/14] from: gscottjones:mchsi at: 12-Jan-2003 9:34


Hi, Robert, From: "Robert M. Muench"
> Hi, I'm playing around with raw faces (no VID) but > somehow it doesn't work as I like. I want to create
<<quoted lines omitted: 8>>
> So far so good. But the text is displayed in the title bar not in the > face. Why this? Is this because that's the "top-most" face?
Yes
> How do I create an area face?
test: make face [ pane: make face[] ] test/size: 300x100 test/text: "Window Name" test/pane/text: "Area Name" view/offset test 50x50
> Do I just later set face/style to 'AREA? > Is this sufficient? Robert
I don't know about these questions. :-) --Scott Jones

 [4/14] from: nitsch-lists:netcologne at: 12-Jan-2003 16:26


Robert M. Muench wrote:
>Hi, I'm playing around with raw faces (no VID) but somehow it doesn't >work as I like. I want to create a face with a text in it. I have tried
<<quoted lines omitted: 12>>
>How do I create an area face? Do I just later set face/style to 'AREA? >Is this sufficient? Robert
if runtime does not matter, you can use layout[ta: area] then you have the face in ta. throw the layout away, you can use the area-face directly. -volker

 [5/14] from: robert:muench:robertmuench at: 13-Jan-2003 7:54


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]
<<quoted lines omitted: 3>>
> Subject: [REBOL] Re: FACE questions >> How do I create an area face? Do I just later set face/style to
'AREA?
>> Is this sufficient? Robert > > Are asking this? > > make-face 'area
Hi, well my question wasn't specific enough: How do I convert a face with style FACE to a face with style AREA? I have played around a bit and it seems to be sufficient just to use face/style: 'AREA Robert

 [6/14] from: anton:lexicon at: 13-Jan-2003 20:05


How about: lay: layout [size 200x200] lay/pane: make get-style 'area [ offset: 50x50 size: 100x100 text: "hello" ] view lay Anton.

 [7/14] from: rotenca:telvia:it at: 13-Jan-2003 11:21


Hi Robert,
> > Are asking this? > > > > make-face 'area > > Hi, well my question wasn't specific enough: How do I convert a face > with style FACE to a face with style AREA? I have played around a bit > and it seems to be sufficient just to use face/style: 'AREA Robert
The problem is what goal you want. If you want the text editing, you should change also feel, colors and flags: area: make-face/spec 'face [ init: [] style: 'area feel: ctx-text/edit colors: reduce [svvc/field svvc/field-select] flags: copy [flags tabbed] ] Pay attention, there are differences between: face face of style 'face svv/vid-face blank-face --- Ciao Romano

 [8/14] from: robert:muench:robertmuench at: 13-Jan-2003 12:32


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]
<<quoted lines omitted: 3>>
> Subject: [REBOL] Re: FACE questions > lay: layout [size 200x200]
Hi, well layout isn't an option... I just need a bare face. Robert

 [9/14] from: robert:muench:robertmuench at: 13-Jan-2003 12:32


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]
<<quoted lines omitted: 3>>
> Subject: [REBOL] Re: FACE questions > The problem is what goal you want.
Hi, only text-wrapping feature is needed. Robert

 [10/14] from: g:santilli:tiscalinet:it at: 13-Jan-2003 11:34


Hi Robert, On Monday, January 13, 2003, 7:54:30 AM, you wrote: RMM> Hi, well my question wasn't specific enough: How do I convert a face RMM> with style FACE to a face with style AREA? I have played around a bit RMM> and it seems to be sufficient just to use face/style: 'AREA Robert Styles are a VID thing. View does not pay any attention to the 'STYLE field of faces. So to make an AREA, you just have to create a FACE with the right look (EDGE, COLOR etc.) and FEEL. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [11/14] from: g:santilli:tiscalinet:it at: 13-Jan-2003 15:29


Hi Robert, On Monday, January 13, 2003, 12:32:59 PM, you wrote: RMM> Hi, only text-wrapping feature is needed. Robert face/para/wrap?: on Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [12/14] from: robert:muench:robertmuench at: 13-Jan-2003 20:03


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]
<<quoted lines omitted: 5>>
> face/para/wrap?: on >From the docs (and that's why I asked): Paragraph facet object
attributes are applied to entire paragraphs of text for control of spatial formatting. They only apply to text rendered within areas, hence are not used for free-form text. So there is areas mentioned... But it seems to work. Robert

 [13/14] from: rotenca:telvia:it at: 13-Jan-2003 23:45


Hi,
> From the docs (and that's why I asked): Paragraph facet object > attributes are applied to entire paragraphs of text for control of > spatial formatting. They only apply to text rendered within areas, hence > are not used for free-form text.
para object is in all text styles and all its fields are applied to the rendering of text. Styles names are only conventional names used by the Vid dialect. View does not care of style names. For View all the face are the same: only different value in specific fields, like text, color, edge, effect, para and so on generate different visual effects. If you want to know what are the fields which View uses (or can use), you can do:
>> probe sort first system/words/face
[action changes color data edge effect face-flags feel font image line-list offset old-offset old-size options pane para parent-face rate saved-area self show? size span text type] These are the facets common to all faces. If you want to know what are the standard vid facets, you can do:
>> probe sort exclude first svv/vid-face first system/words/face
[alt-action blinker colors dirty? facets file flags help init keycode multi pane-size related reset state style styles texts user-data var words] As you can see, 'style is the vid list, while 'para is in the View list --- Ciao Romano

 [14/14] from: robert:muench:robertmuench at: 14-Jan-2003 8:23


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]] > On Behalf Of Romano Paolo Tenca > Sent: Monday, January 13, 2003 11:46 PM > To: [rebol-list--rebol--com] > Subject: [REBOL] Re: FACE questions
Thanks a lot, that helps :-). Robert

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted