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

World: r3wp

[View] discuss view related issues

Anton
3-Sep-2005
[2524]
I've got a flood algorithm:
http://www.lexicon.net/antonr/rebol/library/flood-recurse.r
do http://www.lexicon.net/antonr/rebol/demo/demo-flood.r
eFishAnt
3-Sep-2005
[2525x4]
as my Furby says,   "Yummm..."    (guess the world is your canvas, 
Geomol)
As my Furby says... "Yummm..."  (guess the world is your canvas, 
Geomol"
sorry about that repeat repeat...curious, AltME was really dragging. 
 Hmmn, related to canvas???
test
Graham
3-Sep-2005
[2529]
trying to flood this forum?
Geomol
4-Sep-2005
[2530x2]
:-)
Canvas group created.
Geomol
5-Sep-2005
[2532]
In the new DRAW dialect, should SCALE have influence on LINE-WIDTH?
DideC
5-Sep-2005
[2533]
Better ask in AGG ?
eFishAnt
6-Sep-2005
[2534]
can anyone outside of our firewall ping or see this? http://66.136.133.209
Anton
6-Sep-2005
[2535x2]
http://66.136.133.209
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Geomol
6-Sep-2005
[2537x4]
Pinger 66.136.133.209 med 32 byte data:

Svar fra 66.136.133.209: byte=32 tid=793ms TTL=234
Svar fra 66.136.133.209: byte=32 tid=604ms TTL=234
Svar fra 66.136.133.209: byte=32 tid=317ms TTL=234
Svar fra 66.136.133.209: byte=32 tid=753ms TTL=234
eFistAnt, LOL Why in group "View"? :)
That's one of the groups, I'm 'monitoring'. You made me look, so 
now you earn me a beer in Italy! ;-P
(if you show up)
Anton
6-Sep-2005
[2541]
connecting to: 66.136.133.209

** User Error: Error.  Target url: http://66.136.133.209/could not 
be retrieved.  Server response: HTTP/1.0 401 Unauthorized
** Near: cont: read http://66.136.133.209


Firefox: {Enter username and password for "level_15_or_view_access" 
at http://66.136.133.209}
(a security requester prompting for username and password).
Rebolek
7-Sep-2005
[2542]
I was trying to extend iterated faces example from http://www.rebol.com/docs/view-system.html#section-10
to support feel/over but with I was not very succesful. Iterated 
faces react on over (I'm changing color of edge) but when I click 
on one of the faces, now all other iterated faces' edges use the 
"over" color. Can anybody help me?
Geomol
8-Sep-2005
[2543]
What is a good way to check for certain values in an input field?

Let's say, I want to do an integer field, I've tried this as the 
action function:

if error? try [to-integer value] [set-face face 0]


It works first time, but if I try enter an integer afterwards, it 
just get settet to zero again. Any ideas?
Volker
8-Sep-2005
[2544]
maybe "0"? if you dump the later errors, it should say something 
like "cant append to an integer" your way".
Geomol
8-Sep-2005
[2545x3]
No, doesn't work setting it to "0". Try this:
view layout [field "0" [if error? try [to-integer value] [set-face 
face "0"]]]
You can enter integers at first, but if you enter a letter, it stops 
working.
Rebolek
8-Sep-2005
[2548]
I had the same problem and did not find a solution
Volker
8-Sep-2005
[2549x10]
You can note something to rambo:
view layout [field "0" [probe face/text probe value if error? err: 
try [to-integer value] [probe disarm err set-face face "0"]]]
the face/text contains the new value, but 'value itself stays on 
the buggy one.
so this works:
view layout [field "0" [if error? err: try [probe to-integer face/text] 
[set-face face "0"]]]
because ctx-text/edit-text uses /data, not /text.
not updated because of error.
                if flag-face? face return [
                    if flag-face? face hide swap-text 

                    if flag-face? face tabbed [focus next-field face] 
                    action face face/data 
                    exit
                ]
so setting /data by hand works too:
view layout [field "0" [probe face/text if error? err: try [to-integer 
value] [probe disarm err set-face face "0"]]]
pasted wrong version
view layout [field "0" [if error? try [ probe to-integer value] [set-face 
face "0" face/data: face/text ]]]
Geomol
8-Sep-2005
[2559]
Thanks Volker!
Volker
8-Sep-2005
[2560]
(dont forget to met rambo ;)
Geomol
8-Sep-2005
[2561]
Sent it to RAMBO.
Anton
8-Sep-2005
[2562]
Kru, you need to maintain external state data just like the SELECTED 
index in the example.
Here are my diffs from the original example:

over-index: 0

	;edge: none

		over: func [face action position][
			print ["Over" action]
			over-index: all [action face/data]
			show main-face
		]

			aface/edge/color: either over-index = index [sky][coal]
MikeL
13-Sep-2005
[2563]
Can someone point me to the syntax for radio-line?  and check-line?
Geomol
13-Sep-2005
[2564]
Mike, a bit here: http://home.tiscali.dk/john.niclasen/vid-styles.html#section-5
If you do e.g.: 
layout [mycheck: radio-check "something"]

then mycheck/data will be true or false. Is that, what you needed?
Anton
14-Sep-2005
[2565]
view layout [radio-line "one" radio-line "two" radio-line "a" with 
[related: 'my-alphabet-radios] radio-line "b" with [relate
d: 'my-alphabet-radios]]
MikeL
14-Sep-2005
[2566]
Thanks Anton and John.
Chris
14-Sep-2005
[2567]
Shorthand for "with [related: 'group]" -- radio-line "one" of 'group
DideC
14-Sep-2005
[2568]
Anybody here with already done notes on text-list internals (lc, 
sn, cnt...) ???
Graham
14-Sep-2005
[2569x2]
do you mean like this http://www.compkarori.com/vanilla/display/textlist
posted over 2 years ago!
DideC
14-Sep-2005
[2571]
Graham: smack ;-)
Geomol
14-Sep-2005
[2572x2]
Is it possible in the VID style "key" to check, if SHIFT is pressed 
too?
sorry, lol confusing