Hi,

> Hi, can someone explain me what is exactly ctx-text?
> I tried using  "? ctx-text" but Rebol shown me a lot of
> code!

Short answer 1: It is a lot of code! :)

Short answer 2: It holds a lot of the functions that FIELD, AREA, TEXT, H1,
H2, etc. need.

Longer answer:

You can build VID programs without knowing about it.

ctx-text is an object! which holds some words, some objects and a lot of
functions.
All these things are grouped in the object ctx-text because they relate to
text handling.
For example, these functions and objects work together to give the ability
to copy text from a View window to the clipboard. Like this:

view layout [text {Highlight this text with
you mouse and copy it to the clipboard
using ctrl-c.}]

If I deliberately "cut the link" to ctx-text - see what happens:

view layout [text "Try to copy this text now." with [feel: none]]

Normally this prints true:

layout [text-object: text "Some text"]
print same? text-object/feel ctx-text/swipe

So the summary is VID styles use ctx-text to handle keystrokes, and other
text handling.

Brett.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to