World: r3wp
[View] discuss view related issues
older newer | first last |
Anton 14-Nov-2006 [6137] | You mean, use the current directory instead of looking in the public dir ? |
Henrik 14-Nov-2006 [6138] | not using caching at all |
Anton 14-Nov-2006 [6139x3] | Ok, that's just a matter of temporarily patching path-thru to your taste. I've done this before. |
I patched path-thru to allow urls with query strings (from a particular website). The urls were mapped to the filesystem in a particular way. But your case sounds really easy. | |
(Except for the fact that rebol creates the public/ dir.) | |
Henrik 14-Nov-2006 [6142] | ok, then it doesn't really matter since it was the public dir I wanted to get rid of in the first place |
Anton 14-Nov-2006 [6143] | Ok, maybe a rambo ticket then. |
Gabriele 14-Nov-2006 [6144] | use rebface ;) |
Henrik 15-Nov-2006 [6145] | view layout [button "test" rate 1 [print "hello"]] Nothing gets printed, but the button looks depressed, as it should, once per second. Is this a bug? |
Pekr 15-Nov-2006 [6146x2] | do you expect code block to be printed? |
I mean - executed ... | |
Henrik 15-Nov-2006 [6148] | yes I do. I'm not sure it makes sense to visually press the button down and then it does nothing. |
Pekr 15-Nov-2006 [6149x2] | all it does on time is face/blinker: not face/blinker, - what is that anyway? :-) |
probe svvf/button | |
Henrik 15-Nov-2006 [6151] | I guess it blinks the button. How useful! |
Anton 15-Nov-2006 [6152] | An action could "recommend" the next button to push by setting it to blink for a few seconds. (I don't think I would ever use that myself, but maybe visually impaired users would find such a feature invaluable.) |
Pekr 15-Nov-2006 [6153] | what does 'cue function do? Does it do action block submitted to style? (button here) |
Anton 15-Nov-2006 [6154] | http://anton.wildit.net.au/rebol/doc/cue.txt |
Pekr 15-Nov-2006 [6155] | thanks! |
[unknown: 5] 15-Nov-2006 [6156] | what is the purpose of /blinker ? What would code look like that uses this? |
Anton 15-Nov-2006 [6157x3] | blinker looks like just another on/off variable that tracks the blinking state. Have a look at the button feel. Time events toggle the blinker between on and off. Then redraw mashes BLINKER and STATE together to get the final visual STATE. This is the "bug" that Henrik would rightfully be complaining about. It's just a very minimalist way to show the blinking state. (Henrik, feel free to stylize the button so it shows the blinking in a more expectable way.) I think it's good this way because it's very clear how this feature works, and it does not impact on any other feature of the button. For example, a better look might be to toggle LUMA in the effect dialect block, but then that would have to be taken into consideration every time by button restylists. Even if the blink feature wasn't used, just having code in there which affects the effect block would waste some of your time while you considered whether it had a negative impact on your custom style's effect block management. |
So, the way it is now is minimalist - it's crying out for someone to stylize it. | |
Example code is as Henrik's blinking button, above. | |
[unknown: 5] 15-Nov-2006 [6160] | Thanks Anton. |
Maxim 17-Nov-2006 [6161x3] | does anyone know how I can make a line's pattern "rotate" so that it animates as if a shape's contour revolves around it? |
I cannot achieve this with line-pattern, cause I have discovered a while ago that specifying more than one dash/stroke combination will crash view, really, crash rebol itself! | |
if you have a working example of multiple dash/stroke line-pattern which does not crash when shown many times, I'd also like to see it. This way I might understand what makes rebol crash and have the RAMBO ticket updated !? | |
Anton 17-Nov-2006 [6164x2] | Did you notice my LINK style in the style-gallery.r ? http://anton.wildit.net.au/rebol/gui/link.r do http://anton.wildit.net.au/rebol/gui/demo-link.r |
I use a small 2x2 image, pixels set in checkerboard arrangement, to produce the outline when the links are focused. | |
Maxim 17-Nov-2006 [6166] | ahh, so I could just use a rotation image pattern... I guess. |
Anton 17-Nov-2006 [6167] | By animating that image you could get something close to what you want. (I don't think rotation will be easy, have to think about it.) |
Maxim 17-Nov-2006 [6168x2] | it sort of depends how view uses the pattern, but there is probably a way to make it work... |
but how to get that working in draw... does draw support image patterns for the pen? or only the fill pattern? | |
Anton 17-Nov-2006 [6170x2] | Have a look at the link style. I just used it in the edge, I think. |
Yes, when focused, I set the face/edge/image to the special checkerboard image. | |
Maxim 17-Nov-2006 [6172] | but I need to enable this for draw shapes... hummm not easy... I don't want to implement a shape resampling algorythm. |
Anton 17-Nov-2006 [6173] | That bug is in rambo right ? Maybe send a feedback to raise its priority. It is a crashing bug, so it should be pretty high. It may just be fixed in this round. |
Maxim 17-Nov-2006 [6174] | yes its in rambo... I'll be sure to nag Carl about it when the alpha's start rolling out ;-) |
Anton 17-Nov-2006 [6175] | They asked for our favourite bugs recently so now's a good time - hopefully they're still in bug-fixing mode. |
Thorsten 17-Nov-2006 [6176] | Hi, it seems quite a while ago that i did something in /view so i lost some knowledge about it. Can anybody help me out with how to change the color of a button when i press it? |
Maxim 17-Nov-2006 [6177] | specify two colors attributes, same thing for text ex: showing button and toggle styles: view layout [button "ok" red blue toggle "press" "me" black green] |
Thorsten 17-Nov-2006 [6178] | and what if the color should only change when a condition is true??? is there something like button/color?? |
Geomol 17-Nov-2006 [6179x2] | Thorsten, yes, but button/colors are used for that. Try this: >> l: layout [b: btn "Red/Blue" red blue btn "Make Yellow" [b/colors: [yellow blue] show b]] You can view it by: >> view l and look at the button with: >> ? b |
You can also see the colors block with: >> ? b/colors | |
Thorsten 18-Nov-2006 [6181] | Hi Geomol, this seems to me what i was looking for. Will try it out asap. Thanks |
[unknown: 5] 18-Nov-2006 [6182] | Anyone know what the to-vector function is for in the new view 2.7 build for windows? |
Anton 19-Nov-2006 [6183] | There's a what ? |
Henrik 19-Nov-2006 [6184] | >> to-vector "1" crashes |
Anton 19-Nov-2006 [6185x2] | TO-VECTOR doesn't look implemented. There are other bugs with it: >> v: to-vector 1 == 1 >> v/1 == #"^]" >> v/2 == none >> v: to-vector 2.2 == 2.2 >> v/1 == #"^!" |
If you want to see the new crash error message window, type this: to-vector "x" | |
older newer | first last |