World: r3wp
[View] discuss view related issues
older newer | first last |
Anton 12-Nov-2006 [6116x2] | I've pretty much finished commenting LAYOUT. (Of course there is always more that can be done to explain the workings of this high-use function, but 24 hours later......) http://anton.wildit.net.au/rebol/doc/investigate-layout.r |
If anyone has any questions about how LAYOUT works, now is a good time to ask me, because my head is full of it right now. | |
Henrik 14-Nov-2006 [6118] | is it possible to prevent the creation of the Public folder when running a rebol/view that isn't installed, but just run on a windows PC? |
Pekr 14-Nov-2006 [6119x2] | I am not sure it is - well, it is - just don't run desktop! |
run view.exe -i, to prevent install process .... | |
Henrik 14-Nov-2006 [6121] | well, I'm not. I'm running View from a dos script, using all the options to keep it as quiet as possible. |
Pekr 14-Nov-2006 [6122] | just throwing ideas around, dunno if it really works ... |
Henrik 14-Nov-2006 [6123] | using all that already, so... |
Anton 14-Nov-2006 [6124x2] | PATH-THRU specifies the directory in its source. READ-THRU creates public cache directories to store the files in. Maybe if you remove or replace the "public" in PATH-THRU you will see different behaviour. |
The problem might be that the directory is created before user.r is done. In that case, you would have to resort to other tactics. | |
Henrik 14-Nov-2006 [6126] | oh well, no biggie. it's just not "pretty" |
Anton 14-Nov-2006 [6127x2] | It should be easy to just try patching path-thru in user.r. I'd like to know if that works for you. |
I just tried it. The public dir is always created (empty) despite patching path-thru in the user.r file. | |
Henrik 14-Nov-2006 [6129] | I suppose that rebol simply requires it always. |
Anton 14-Nov-2006 [6130] | I don't see any technical reason why it should be hardcoded. |
Henrik 14-Nov-2006 [6131] | well, the public dir is solely for cache use, isn't it? |
Anton 14-Nov-2006 [6132] | Yes, everything that comes from the net *thru* the cache : path-thru , read-thru, load-thru, do-thru |
Henrik 14-Nov-2006 [6133] | then it would be nice with a global option to turn it off for these cases. |
Anton 14-Nov-2006 [6134x2] | ...and exists-thru? They all hang off path-thru, which specifies the cache directory, and the way the path is constructed. |
Turn what off ? | |
Henrik 14-Nov-2006 [6136] | caching and thereby the public folder. |
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. | |
older newer | first last |