r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[View] discuss view related issues

Graham
14-Jan-2005
[202]
Yeah .. strange that it has laid hidden for such a long time.
Geomol
14-Jan-2005
[203]
num: 1 view layout [cnt: label (form num) rate 1 feel [engage: [cnt/text: 
form num show cnt num: num + 1]]]
Ryan
14-Jan-2005
[204x3]
Slick
num: 1 view layout [cnt: label (form num) rate 1 feel [engage: [cnt/text: 
form num: num + 1 show cnt]]]
quick and dirty though, the minor problem is that reponds to ui events.
PhilB
14-Jan-2005
[207]
I have a timer/clock style if you are interested.
Ryan
14-Jan-2005
[208]
Submit it to the rebol.org for me.
Geomol
14-Jan-2005
[209]
To prevent ui events and have counter start with 1 using your short 
form:

num: 0 view layout [cnt: label (form num) rate 1 feel [engage: func 
[face action event] [if action = 'time [cnt/text: form num: num + 
1 show cnt]]]]
PhilB
15-Jan-2005
[210x2]
Ryna ... see ... http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=timer-styles.r
Its quite old ..... but I have used it daily.

(Note .... There is a bug with the timers if you are timing an inerval 
over midnight)
Its so old it was done before now/precise was available :-/
Ryan
15-Jan-2005
[212]
It seems to me that a timer style should be considered for VID. Its 
such a commonly used thing, it should be able to be tapped without 
any underlying knowledge of VID. Plus, it would take very little 
room and be widely used.
Vincent
15-Jan-2005
[213]
Funny: 
downloaded an old /View beta (0.9.9) from web.archive.org

http://web.archive.org/web/20000830122735/www.rebol.com/downloads/view/rebol909031.exe

and started it. Pushed "Check REB Site": Before /View desktop, "REB 
Services"!
james_nak
15-Jan-2005
[214]
I asked Anton directly but some of you may know a work-around. I'm 
using his scroll-table style but when I call a face using it within 
a reblet it does not "do" it. It works from the command line with 
a "view face" but not within. Is there something akin to "reduce" 
which would, for lack of a better phrase, force a face to recompute 
itself entirely? I tried "show" and "focus."
Vincent
15-Jan-2005
[215]
(sorry, message cut by altme?) ... lanched /View 0.9.9, clicked on 
"Check REB Site": Before /View desktop, "REB Services"!
eFishAnt
15-Jan-2005
[216]
anyone know a where I can find some discussions on caret ?  I want 
to sort out some things in text area and feels.
Ryan
15-Jan-2005
[217]
nature of the problem?
eFishAnt
15-Jan-2005
[218]
I want to change the color, I want to be sure how to find it, set 
it, etc...and review the know problems...get up to speed.
Ryan
15-Jan-2005
[219x2]
Dont know about color.
I do know a bit about selecting text.
eFishAnt
15-Jan-2005
[221]
have you tried chainging the shape of the caret?
Ryan
15-Jan-2005
[222]
nope, thats one level beyond me.
eFishAnt
15-Jan-2005
[223x3]
well, for a baby step, I want to have the caret by default at the 
beginning of the text, without having to tap it with the mouse.
and some keycodes to move the caret about.
(this might just be as simple as finding a good style to use...
Ryan
15-Jan-2005
[226x3]
try setfocus
err, focus rather
caret position is simply the text position (series position) of the 
text.
eFishAnt
15-Jan-2005
[229]
ah, that is simple...thanks.
Ryan
15-Jan-2005
[230x3]
there is some caret functions for decoding relative position too, 
but I havent used them in years.
caret-to bla bla bla
bla bla bla to-caret
eFishAnt
15-Jan-2005
[233]
sounds like "eh, what's up, doc?"
Ryan
15-Jan-2005
[234x2]
ahh, offset-to-caret
and caret-to-offset
eFishAnt
15-Jan-2005
[236]
is that for drag-selecting text?
Ryan
15-Jan-2005
[237x2]
you would use it to implement text dragging possibly. offset-to-caret 
 returns the position of text relative to a graphical position x/y.
i assume you have probably already used highlight-start and highlight-end.
eFishAnt
15-Jan-2005
[239x2]
no, I have just used text-area for stuff like that...now I need to 
change the behavior of it some.
it's a skinny caret on the left side of the area...but thick everywhere 
else.
Ryan
15-Jan-2005
[241x2]
sel-start: does [
	if none? system/view/highlight-start [return none]	

 if (index? system/view/highlight-end) < (index? system/view/highlight-start) 
 [
		return system/view/highlight-end
	] 
	system/view/highlight-start
]
sel-end: does [
	if none? system/view/highlight-end [return none]	

 if (index? system/view/highlight-start) > (index? system/view/highlight-end) 
 [
		return system/view/highlight-start
	] 
	system/view/highlight-end
]
try para [origin: 4x4]
eFishAnt
15-Jan-2005
[243]
understand...but that is there already...origin: 4x4 I mean
Ryan
15-Jan-2005
[244x2]
BTW: The above functions keep sel-start as a lower index position 
than sel-end. These can be either way with highlight
cant replicate the skinny caret. view layout [area]
eFishAnt
15-Jan-2005
[246]
is there some old discussions on this where I can read some discussions?...I 
don't want to hog the channel as I play text area catch up.
Ryan
15-Jan-2005
[247]
Dont know, I figured it out largely by examining the ctx-edit object 
(view editor)
eFishAnt
15-Jan-2005
[248]
ah, cool, I will play with that some.  Aren't you making an editor 
of some type?
Ryan
15-Jan-2005
[249]
A rebol code editor.
eFishAnt
15-Jan-2005
[250]
ah, one that is syntax sensitive, right?
Ryan
15-Jan-2005
[251]
I have played with that, but not this one.