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

World: r3wp

[View] discuss view related issues

Anton
7-Oct-2005
[2874x2]
Purpose: {Mimic DO EVENT (which is called in wake-event) with a mezzanine 
function of our own.
	The mimicry is good for two things:
	1) as a document of how DO EVENT works inside

 2) as a way of achieving crazy magical tricks not otherwise possible, 
 like 
	   - faces transparent to events

    - restoring and saving facets of iterated faces before and after 
    events are sent to them 
	     (see shell-list.r)
}
Currently shell-list, with the help of mimic-do-event, is iterating 
buttons and toggles, and they operate just like standalone buttons 
and toggles. If you've tried putting buttons and toggles in a list 
you know it is not easy to achieve.

I've just submitted a patch to RAMBO which should allow progress, 
slider and scroller to also be iterated without problems.
Brock
7-Oct-2005
[2876]
Anton, I saw what looked like buggy behaviour in the very bottom 
gui elements in your example, the iterated slider's I guess.   Pressing 
in various slider areas in random sequences I had redraw problems 
and movement of the upper slider when pressing in lower sliders.
Brock
8-Oct-2005
[2877]
Anyone here use Ammon's drop-down.r?
Allen
8-Oct-2005
[2878x2]
No. Does it have an advantage over the one in VID?
ah I see, it allows the drop-down to float and not get restricted 
by the parents size. Quite useful.
Brock
9-Oct-2005
[2880x2]
More common to what we see in windows apps.
Hmm, don't recall seeing the vid drop-down before.
Anton
10-Oct-2005
[2882x2]
Brock, just try iterating scrollers (changing face/data on each iteration) 
and you see that it is much better this way. :)

This patch doesn't try to do everything, but makes a small step to 
ease iteration.

Having said that, I discovered that my patches show visual artefacts 
when resizing under other scrollers etc.. Agh! !
But I will try to isolate the cause of that, too...
(... when resizing a slider or progress underneath another scroller 
etc... Agh!)
Pekr
10-Oct-2005
[2884x2]
Anton - I saw your RAMBO ticket ... interesting ...
is it a VID related fix, or View internal one?
Anton
10-Oct-2005
[2886]
Well... they're both inextricably intertwined.
Pekr
10-Oct-2005
[2887]
going home, back in one hour, see you :-)
Anton
10-Oct-2005
[2888]
ok ciao...
MichaelB
14-Oct-2005
[2889]
Gregg: probably you noticed it already, but when one presses the 
up or down arrow buttons while in the search field in the Word Browser 
it crashes with the following statement:


** Script Error: index? expected series argument of type: series 
port
** Where: pick-next
** Near: sync-funcs-list index? f
show-word first
>>

so it's not possible to navigate the words via the coursor keys
Gregg
14-Oct-2005
[2890]
Thanks Michael!
Tomc
15-Oct-2005
[2891]
.
Anton
19-Oct-2005
[2892x3]
Here is SHELL-LIST showing the VID styles BUTTON BTN TOGGLE and TOG, 
iterated without modification of them:
do http://www.lexicon.net/antonr/rebol/gui/demo-shell-list.r
It looks simple, but I'm telling you, it really isn't. Just look 
inside :)  The aim is to be able to iterate any style, swapping facet 
values in and out at just the right times so that all interaction 
with the style seems to be as if it were not iterated.
Pekr
19-Oct-2005
[2895]
Include: Cannot include word: sum-face-offsets is not available
Anton
19-Oct-2005
[2896]
thanks, hang on..
Volker
19-Oct-2005
[2897]
testbed for downloading: http://polly.rebol.it/test/guest/
Anton
19-Oct-2005
[2898]
Sorry, my previous demo has left older files in your public caches. 
I'll make a "get the latest" script for you....
Volker
19-Oct-2005
[2899]
there is a delete-dir now. shortest way is clean cache.
Anton
19-Oct-2005
[2900x2]
This should fix you:
site: select load-thru http://www.reboltech.com/index.r[folder "Anton"]
clear find site %index.r
foreach url [
	site/gui/mimic-do-event.r
	site/library/window.r
	site/library/stack.r
	site/gui/shell-list.r
	site/gui/percent-progress.r
][
	read-thru/update url
]
Pekr
19-Oct-2005
[2902]
will hve to move to home PC. Notebook kebord got some problems, cnt 
write .... uhm, first letter in lphbet for e.g. :-))
Anton
19-Oct-2005
[2903x3]
Mistake, make that:

	read-thru/update do url
(to evaluate the paths).
site: select load-thru http://www.reboltech.com/index.r[folder "Anton"]
clear find site %index.r
foreach url [
	site/gui/mimic-do-event.r
	site/library/window.r
	site/library/stack.r
	site/gui/shell-list.r
	site/gui/percent-progress.r
][
	read-thru/update do url
]
do http://www.lexicon.net/antonr/rebol/gui/demo-shell-list.r
Volker
19-Oct-2005
[2906]
That could be in a download-script onthat site itself? :)
Anton
19-Oct-2005
[2907]
Yes, I know. But there are issues.
Volker
19-Oct-2005
[2908]
Hu?
Anton
19-Oct-2005
[2909]
When I test locally, I do not want to download files I already have 
each time, do I ?
Volker
19-Oct-2005
[2910]
No, why should you? You would not use the download-script then?
Anton
19-Oct-2005
[2911x2]
I am trying to be minimalist here. I don't want to have a download-script 
for every demo I have. That will end up in hundreds of extra scripts. 
I would like to move that functionality into my replacement include 
system, which is still in progress.
... and which is on hold because I wanted to use shell-list for it.....
Volker
19-Oct-2005
[2913]
simplest way: have a clear-my-site. then all downloads are fresh.
Anton
19-Oct-2005
[2914]
I could do stuff like that, but I am a perfectionist, reluctant to 
admit there might be a simple way that's good enough for now. But 
I'm coming round... :)
Volker
19-Oct-2005
[2915]
Just sharing my latest experience :)
Anton
19-Oct-2005
[2916x2]
My original thought process was that I don't want to automate the 
deleting of files in the cache, on my computer or someone else's. 
I think if the user wants to delete their files, they should do it 
themselves. I don't want to get involved in any data loss.

So I thought it preferable to do an intelligent update. But for that 
I need an intelligent interface... -> shell-list.
Shell-list is designed to be highly flexible and configurable, for 
maximum code re-use. I didn't like the thought of writing a new custom 
list for every program.
Volker
19-Oct-2005
[2918x2]
I use cache more like, uhm, cache now. like a browser. before leaving 
data is cleared.
advantage, besides simple: I have only the used files in cache. and 
since i can upload too by a filerequester, having only used files 
there helps.
Anton
19-Oct-2005
[2920]
Note to everyone: shell-list is nowhere near finished, but the hook 
system I use to iterate those styles is so significant to me I have 
to make a demo of it.
Volker
19-Oct-2005
[2921]
except for large files, i have to do some "dont-delete" for them.
Anton
19-Oct-2005
[2922]
Mmm... in practice it may work ok, your system. But it begins to 
make unclear to the user what is in his computer.
Volker
19-Oct-2005
[2923]
everything since last deletetion? or the "keep big files"?