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

World: r3wp

[View] discuss view related issues

Graham
16-Nov-2005
[3233]
If this is the case, I suggest that a font dialect be created to 
support fonts inside the draw dialect
Graham
17-Nov-2005
[3234x8]
This is my hack of Frank's paint.r program

http://www.compkarori.com/reb/paintplus.r
paint  image [ image! none! ] data [block!]


if given an image as first parameter, it loads it.  If not, it creates 
a canvas of 300x300

if given a data block of draw commands, it applies it to the canvas
It adds freehand drawing, arrows, and text.  **BUT** can't load back 
in text yet due to the restrictions on fonts above.
if data block is empty, it ignores it.
This is a simplistic tool is to be used to mark up images to point 
out areas of interest in medical images.
Feel free to fix it for me before uploading to the Rebol.org ( forgot 
my password ... )
Frank had a very clever way of creating the draw block, but I found 
I couldn't do it the same way with all the combinations that were 
emerging.
Bizarre .. loading text works in this version !
Volker
17-Nov-2005
[3242]
A syntax-trick: #[object![a: 123]]
Graham
17-Nov-2005
[3243]
huh?
Volker
17-Nov-2005
[3244]
try that for your font
Graham
17-Nov-2005
[3245x2]
it's working anyway now!
Ahh... I see. My other version used mold and not mold/all :(
Anton
17-Nov-2005
[3247]
Graham, I notice with arrow, undo/redo and circle, it's possible 
to get a circle with an arrow-head on it.
Graham
17-Nov-2005
[3248x2]
yes ... :(
that's what I was saying .. arrow is a state
Anton
17-Nov-2005
[3250x2]
DideC, yes, that is a simpler solution to this particular problem. 
I guess I wanted to show a more general way, keeping the original 
binding, instead of guessing what the binding should be.
Graham, oh I see. Not really your fault then ?
Graham
17-Nov-2005
[3252x3]
and if you undo on an arrow draw, you lose the state setting, and 
so everything after that has arrows on it :(
I can catch when you change from arrow to something else... but .. 
if I undo, I can't ...
probably needs some type of stack
Anton
17-Nov-2005
[3255]
It sounds like arrow should not be a tool, rather a mode that affects 
all/most tools.
Graham
17-Nov-2005
[3256]
Hmm.  Perhaps so.
Anton
17-Nov-2005
[3257x2]
Otherwise I suggest switch arrow on, draw line with arrow head on 
it, switch arrow off.
If it's a mode, then it should be a check-box, not a radio.
Graham
17-Nov-2005
[3259x2]
I did that before I realised it was a state.
that might work .. undo the arrow immediately after the draw.
Anton
17-Nov-2005
[3261x2]
Actually, even if it's a mode, you should compose the draw block 
like (very pseudo-code):

 compose [ (either arrow-on? [enable-arrow][])  (draw-cmd-eg.line) 
  (either arrow-on? [disable-arrow][])  ]
Just ideas, I didn't look at the code this time.
Graham
17-Nov-2005
[3263x2]
That works ... turning off arrow immediately.
now up on rebol.org
Graham
18-Nov-2005
[3265]
what would it take to have text flow automatically around a rectangular 
image in a area field?
Pekr
18-Nov-2005
[3266]
There is new release of View - no docs though ...
Graham
18-Nov-2005
[3267]
probably a rebcode update
Rebolek
18-Nov-2005
[3268]
maybe, but rebcobe binding bug is still not fixed :(((
Pekr
18-Nov-2005
[3269]
or rebservices already integrated? looks smaller though ...
Rebolek
18-Nov-2005
[3270]
can't find string "rebservice" anywhere in system object
Graham
18-Nov-2005
[3271]
we've got draw text which can follow a spline .. so why not have 
text that knows the boundary of an image object ?
Pekr
18-Nov-2005
[3272x3]
I have noticed, that there is new (dunno how long it is in rebol) 
command line parameter, called -v (noviewtop) and I have few comments. 
I am not sure that it was not added in-there because of my Rambo 
ticket, which asked for introduction of no-connect option instead. 
So, the trouble with obtrusive and annoying View desktop trying to 
connect to internet, is still there, and it really puts rebol worth 
sending into trashcan on such affected machine ;-)
Second - why ViewTop? and if ViewTop, why we still call desktop a 
Desktop? That is imo inconsistent ...
so -v might be usefull though, but - please, if we can't do proper 
async, where even system buttons are blocked and you can't even shut-down 
rebol task via ctrl, alt, del, then add noconnect option, please 
....
Volker
18-Nov-2005
[3275]
What does async in such circumstances? rebservices (should) have 
http-async, then it may be solvable easily.
Pekr
18-Nov-2005
[3276]
dunno. It does not matter. But it seems rudiculoust to see app blocked 
for 10 - 30 secs, not being able to even shut it down ...
Volker
18-Nov-2005
[3277]
AFAIK os takes that long to report an error. and with sync, rebol 
can do nothing before an os-reply.
Pekr
18-Nov-2005
[3278x2]
don't care ;-)
.... because .... OS does not take so long imo :-)) Isn't it just 
a question to set lower default time-out thant 30 sec, or what was 
the value?
Volker
18-Nov-2005
[3280]
I don't know. Thought i read somewhere something can not be influenced.
Pekr
18-Nov-2005
[3281]
IIRC rebol uses 30 secs for timeout ... :

get in make port! http://www.rebol.com'timeout
== 30
Volker
18-Nov-2005
[3282]
WHat does a normal read? also timeout for so long?