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

World: r3wp

[View] discuss view related issues

Maxim
4-Jan-2007
[6562x2]
event/time is different when comming from the wake-event, it seems.
I need to skip events which are too old... my current event mungings 
work, but are hard to adapt as refresh slows down... having this 
time accurately would allow me skip events
Geomol
4-Jan-2007
[6564]
If it's in milliseconds, try: to-time event/time / 1000
Maxim
4-Jan-2007
[6565]
hum  good guess.
Joe
15-Jan-2007
[6566x2]
resize-image: func [
	dest [file!]
	size [pair!]
	file [file!]
	/local im
][	
	im:		load-image file
	save/png 	dest to-image layout [origin 0x0 image (im) (size)]
	im:		none
]
i use the above function to resize images but it leaks on 1.3.2.4.2 
 Am I doing something wrong or is it a bug ?
Ryan
16-Jan-2007
[6568x3]
code looks good to me, though try: draw size [image im 0x0 size]
You might ask rambo group about it being a bug.
(notice you did)
Pekr
16-Jan-2007
[6571x2]
I know it is preliminary, but maybe we should rethink button design 
:-) If you try following, there is some visual effect, you see small 
circles among buttons :-)


do http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=periodictable.r
... but maybe it is because there is zero pixel space amongst buttons
Rebolek
16-Jan-2007
[6573]
there's nothing wrong with the cirles I think
Pekr
16-Jan-2007
[6574]
hey, - there is - they hypnotise me :-))
Henrik
16-Jan-2007
[6575]
actually moving the space between the buttons to -1 might improve 
the visuals a bit
Rebolek
16-Jan-2007
[6576]
as long as they're not changing their color and radius, it's hypnotizing 
level is OK i think ;)
Pekr
16-Jan-2007
[6577x2]
for the VID 2 (or better let's call it VID 3.0?), we should count 
with things like space for hilite and visual focus representation 
....
Rebolek :-))
Volker
16-Jan-2007
[6579]
Electrons should  jump randomly around, no? ;)
Pekr
16-Jan-2007
[6580]
but nice app indeed, no?
Volker
16-Jan-2007
[6581]
yes
Pekr
16-Jan-2007
[6582]
someone on ml suggested to turn it into plug-in version ...
Henrik
16-Jan-2007
[6583]
I suggest making a section in the viewtop for educational tools and 
put it in there.
Volker
16-Jan-2007
[6584]
i likethe idea. Isnt it  time for anothercontest  anyway?
Rebolek
16-Jan-2007
[6585]
it's one in five years, no? ;)
Volker
16-Jan-2007
[6586]
hoped  that  was5 month, and i missedone^^
Henrik
18-Jan-2007
[6587]
anybody made a VID text area that can handle large amounts of text 
without spending minutes to display the face?
Rebolek
18-Jan-2007
[6588]
display just visible lines. but i don't think i've something right 
here to show you.
Anton
18-Jan-2007
[6589]
That's a good question.
Chris
18-Jan-2007
[6590]
How much is large?
Anton
18-Jan-2007
[6591x2]
mold system
but yeah, Henrik, what's your data ?
Henrik
18-Jan-2007
[6593x2]
I had about 1 MB of text (output in Tester). It took 2-3 minutes 
at 100% cpu before it finished formatting it.
(or what ever it was doing)
Volker
18-Jan-2007
[6595]
can you split the  text in paragraphs yourself? then you could use 
 multiple faces.
Rebolek
18-Jan-2007
[6596]
split in lines and use just that part that fits the screen
Henrik
18-Jan-2007
[6597]
copy/part at text first-visible-line <areasize> ?
Volker
18-Jan-2007
[6598x2]
should do the  trick. if  you do not  wrap
but even then should be good enough for theslider.
Henrik
18-Jan-2007
[6600]
to get it precisely, it would be a matter of calculating the number 
of lines based on line height. A little more difficult if you are 
wrapping text.
Volker
18-Jan-2007
[6601]
yes. would  drop that.
Henrik
18-Jan-2007
[6602]
actually, I found another thing: The data was really consisting of 
an almost 1 MB large line without linebreaks. It could be that it's 
very difficult to calculate the size of the text this way, but I'm 
not sure.
Maxim
18-Jan-2007
[6603x7]
henrik, yes, the engine to calculate line breaks can be manually 
harnessed and its *VERY* slow.
it is used when you set face/para/wrap?: true.
you're best bet is to use a monospace font and do a very fast char 
count instead.
using scroll offset, window width you can select a line of text immediately.
using parse you can also break up a big text pretty quickly.  but 
you need to have a way to re-assemble the text later on, when you 
export the face's data.
obviously, you shouldn't using area, and well, the complexity is 
that you have to implement all the cursor managment manually..  :-(
glayout has an integrated function which can give you a line-block 
of wrapped text.  I had done tests for large files and this engine 
really is inadequate.
Oldes
18-Jan-2007
[6610]
1MB line without breaks would kill my favourite text editor so it's 
not so bad:-)
Maxim
18-Jan-2007
[6611]
this is direct REBOL useage...  a simple  loop using native rebol 
calls.  no fancy code... so it really is RT implementation which 
is ugly.


they should have made a native which returns a block of  lines directly 
using a face