World: r3wp
[View] discuss view related issues
older newer | first last |
Gabriele 4-Jul-2005 [1804] | set-face and get-face are the answer to this problem. accessors still need to be written for some styles though. |
Anton 4-Jul-2005 [1805] | A puzzle this brings up; where is the 'value referred to by this function >> layout [text-list with [print mold :update]] func [/local item value][ sld/redrag lc / max 1 length? data if item: find data picked/1 [ sld/data: min 1 (index? item) / (max 1 lc) sn: max 0 to-integer sld/data * ((1 + length? data) - lc) ] [ sld/value: 0.0 ; <----------- ? pane/offset: 0x0 ] self ] >> layout [scroller with [?? value]] ** Script Error: value has no value ** Where: ?? ** Near: mold name: get name |
Gabriele 4-Jul-2005 [1806] | that's face/sld/value, not face/value |
Anton 4-Jul-2005 [1807] | yes, I know. |
Gabriele 4-Jul-2005 [1808] | ah, also, you're comparing text-list and scroller. mmm. |
Anton 4-Jul-2005 [1809x2] | sld is a scroller |
but if you do: >> find mold svv/vid-styles/scroller "value:" == none | |
Gabriele 4-Jul-2005 [1811x2] | that's most likely a bug. should be sld/data |
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 [1853] | yes there was a bug |
older newer | first last |