Is there a way to append an image object (a box for example) to a face that
has already been displayed. I'm looking to get simple highlight
functionality in an app in which a string is scanned for in a series of text
faces.
I've been able to highlight the search word in each face but if I
Hi Alan,
The problem is, VID only provides one highlight-start and
highlight-end, and one caret, shared amongst all faces.
('Highlights' are separate from the concept of 'selection',
but VID calls the current text selection a 'highlight').
Therefore, you need to patch VID and the focus system
On Wed, Oct 1, 2008 at 10:17 AM, Anton Rolls [EMAIL PROTECTED] wrote:
Anton, how do you solve marking up multiple lines? I'm building
something similar with boxes, but have yet to find out how to figure
out where text is broken into multiple lines for display, so I can
detect start of line and
Henrik,
I was going to map the start and endpoints using caret_to_offset on find
text and find/tail text. And knowing the text field width paint multiple
boxes to fit the shape. Not pretty but I think good enough for what I want.
Or is the function that highlight_start and highlight-end uses
On Wed, Oct 1, 2008 at 2:14 PM, Alan Macleod [EMAIL PROTECTED] wrote:
Henrik,
I was going to map the start and endpoints using caret_to_offset on find
text and find/tail text. And knowing the text field width paint multiple
boxes to fit the shape. Not pretty but I think good enough for what
Henrik,
How do you use size-text to find the size for a row or highlighted section?
I can only find the size of the entire text face.
-Original Message-
From: rebol-bounce@rebol.com [mailto:[EMAIL PROTECTED] On Behalf Of
Henrik Mikael Kristensen
Sent: Wednesday, October 01, 2008 8:26 AM
On Wed, Oct 1, 2008 at 2:41 PM, Alan Macleod [EMAIL PROTECTED] wrote:
Henrik,
How do you use size-text to find the size for a row or highlighted section?
I can only find the size of the entire text face.
You shouldn't use size-text on the original face.
Something like:
size-text make t
I tried some similar things to get the highlighted text in a temp face but
could not get it to work...
Thanks again..
-Alan Macleod
-Original Message-
From: rebol-bounce@rebol.com [mailto:[EMAIL PROTECTED] On Behalf Of
Henrik Mikael Kristensen
Sent: Wednesday, October 01, 2008 9:03 AM
On Wed, Oct 1, 2008 at 5:47 PM, Alan Macleod [EMAIL PROTECTED] wrote:
I tried some similar things to get the highlighted text in a temp face but
could not get it to work...
My code so far (stolen from your original code submission):
rebol []
pad: 20x30
set-highlight: func [
Sets the
Looks nice. I can't get it to do multiple faces though. I'll work on it.
Thanks.
-Alan
-Original Message-
From: rebol-bounce@rebol.com [mailto:[EMAIL PROTECTED] On Behalf Of
Henrik Mikael Kristensen
Sent: Wednesday, October 01, 2008 11:54 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re:
Graham,
It appears it was partially 'call to blame (even though I also tried the
'run command from Autoit via REBOL's dll facilities with similar results).
However, the main problem seems to be running a REBOL executable as a
Windows service. Here are the service types:
Type is a type
Hi Henrik,
In my edit-panel style, I stored the text data as lines
(a block of strings), not a single string, so I didn't have
this problem.
face/line-list used to be a block of offsets to each line,
but, while the facet still exists, it is set to none by
the View system, probably natively. So
Hi Alan,
Alan Macleod wrote:
Henrik,
I was going to map the start and endpoints using caret_to_offset on find
text and find/tail text. And knowing the text field width paint multiple
boxes to fit the shape. Not pretty but I think good enough for what I want.
Or is the function that
Hi Bo,
asn REBOL executables running as a service are moderately to severely
asn sterilized. Executables launched from a service-launched REBOL
asn executable generally cannot display their interface and interact with
asn the operating system in a normal manner.
Are you using Doc's
On Wed, Oct 1, 2008 at 6:36 PM, Anton Rolls [EMAIL PROTECTED] wrote:
Hi Henrik,
In my edit-panel style, I stored the text data as lines
(a block of strings), not a single string, so I didn't have
this problem.
face/line-list used to be a block of offsets to each line,
but, while the
[REBOL] [REBOL.org] Recent changes
This is an automatic email from REBOL.org, the REBOL Script Library to notify
you of recent changes to the Library.
===changes===
snmp.r
--change: discussion post(s) made
--title: SNMP v1 protocol
--owners: vdemong
--author: VDemong
--purpose:
A quick response...
One simple way to have an image appear after the layout has been shown would be
to include it in the original layout and change its offset to -100x-100 (or
whatever's required to stop it being visible) before the layout is shown. Then
when you want to show the image just
17 matches
Mail list logo