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

World: r3wp

[View] discuss view related issues

Gabriele
4-Jul-2005
[1812]
i think /value is the remains of a very old scroller style :)
Anton
4-Jul-2005
[1813x2]
Yes, If you examine
 write clipboard:// mold svv/vid-styles/text-list

then you cannot see any reference to "value:"  (ie. the text-list's 
scroller is not extended with the 'value facet either).
I agree. So maybe the text-list/update function is not used much 
any more ?
Gabriele
4-Jul-2005
[1815x2]
submit to rambo (if not already there)
well, /update should be used by users. maybe noone found the bug 
so far.
Anton
4-Jul-2005
[1817x2]
OK.
I'm too tired right now to do a more full analysis unfortunately.. 
but I'll submit at least.
Gabriele
4-Jul-2005
[1819]
yes, just a reminder about this problem. replacing that with data 
will fix it.
Anton
4-Jul-2005
[1820x2]
layout [t: text-list]
t/update   ; <--- what is strange is this doesn't cause any error
t/sld/value
;** Script Error: Invalid path value: value
;** Near: t/sld/value
anyway...
Gabriele
4-Jul-2005
[1822]
hehe, it's not strange. but, i had to look at it very closely to 
see why :)
Anton
4-Jul-2005
[1823]
oh.. :-/ ok.. c'mon brain...
Gabriele
4-Jul-2005
[1824]
and, this explains why noone noticed it so far.
Anton
4-Jul-2005
[1825]
(submitted ticket)
Gabriele
4-Jul-2005
[1826x2]
there's an if instead of an 'either too.
so looks like someone changed that code while being a bit distracted 
:)
Anton
4-Jul-2005
[1828x2]
oh my god ! I just fixed a bug of mine like that earlier today. :) 
It survived a couple of days before I noticed it.
you might want to update the ticket with that bug fix too..
Gabriele
4-Jul-2005
[1830]
actually i changed my local version of teh code already, so i'm sure 
not to forget about this. that pane/offset: 0x0 seems pointless too, 
but i'll need to investigate.
Volker
4-Jul-2005
[1831]
if you look closer at the code, you also note that there is an 'if 
instead of an 'either, so its death code. IIRC update was somewhat 
broken, maybe not cleanly fixed?
Geomol
6-Jul-2005
[1832]
View 1.3 bug!?:

>> img: to-image layout [slider with [data: 0.5]]
>> view layout [image img]


I see a black square at the top of the slider. Can others confirm 
this?
Gregg
6-Jul-2005
[1833]
Confirmed. I think something similar (a problem rendering without 
diplsaying) came up recently.
Geomol
6-Jul-2005
[1834]
I've made a quick list of the VID-styles found in REBOL/View 1.3. 
Some are explained with a definition, some by an image showing the 
style in use. The list can be found here:
http://home.tiscali.dk/john.niclasen/
Anton
6-Jul-2005
[1835x5]
Geomol, I think the problem is because the dragger is only correctly 
positioned in feel/redraw. See the feel:
	layout [slider with [?? feel]]

This means that the dragger is only set in the correct position when 
there is a redraw event, and the face must be viewed in order to 
receive events. The initial position ( layout [slider with [?? init]] 
) does not take into account that DATA may be non-zero.
This could be fixed by modifying INIT, I am pretty sure.
Indeed:
view layout [image to-image layout [slider with [append init [feel/redraw 
self 'draw none] data: 0.5]]]
OK, submitted this bug and fix to RAMBO.
Geomol
7-Jul-2005
[1840]
Thanks! :-)
Geomol
9-Jul-2005
[1841x2]
I have a problem with the arrow style. It's default pointing up, 
but should be able to be rotated (according to the old REBOL/View 
Developer's Guide) like:

view layout [arrow effect [rotate 90]]


I can't get it to work in View 1.3 or View 1.2 for that matter. Is 
it a real old not found bug, or am I doing something wrong?
Oh, this works:

view layout [arrow right]

so maybe the rotation is not needed.
Anton
9-Jul-2005
[1843x2]
Do this and you will see why your first test didn't work:
layout [arrow with [?? init]]
Geomol
9-Jul-2005
[1845]
So to use effect with arrow, you have to do something like this:

view layout [arrow effect [fit arrow black 0.7 rotate 90]]
same as:
view layout [arrow right]
Anton
10-Jul-2005
[1846]
Geomol, what were you doing when you discovered the slider bug, above 
? I would like to know the reason why you needed that functionality. 
It might be good in the bug report.
Geomol
11-Jul-2005
[1847]
Anton, I was producing the quick list of VID-styles found on my homepage 
and needed some images to go with it. I saw the bug, when I was making 
the image to show slider functionality.
Anton
11-Jul-2005
[1848]
Great, thanks. That's the same reason (documentation) I stumbled 
on this long ago. Now it's in rambo it can't escape.
Rebolek
12-Jul-2005
[1849]
work in progress:  do http://krutek.info/rebol/styles/demo.r
Pekr
12-Jul-2005
[1850x3]
there is a bug somewhere ...
knob.r or tachometer.r - run clean View session ....
ah, now it works, strange ...
Rebolek
12-Jul-2005
[1853x2]
yes there was a bug
it's fixed now
Pekr
12-Jul-2005
[1855]
Visually it is really nice, but it is nearly impossible to move the 
knob. When I drag it around, it does not follow the mouse ...
Rebolek
12-Jul-2005
[1856]
that's because you must drag mouse up/down and not in circle
Pekr
12-Jul-2005
[1857]
I am not sure it should work by dragging the mouse up and down ... 
you should be able to hold the knob and do circular movement imo 
...
Rebolek
12-Jul-2005
[1858x2]
I'll probably add circular movement too - but IMO mouse really not 
suitable for circular movements (try to paint a circle with mouse...)
in Cubase there's option for up/down or circular movement for knobs, 
I'll add it later (it's just work in progress)
Anton
12-Jul-2005
[1860x2]
Pekr, there's a reason why up/down is the preferred way. It's weird 
to start with but it's better control in the long run. The hand is 
more precise in just one direction of mouse movement than two (or 
more, as you might like to see it).
Kru, nice demo ! :) Incidentally, this is just what I have been working 
hard on the last couple of days. Now I must post a demo :)