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

World: r3wp

[View] discuss view related issues

Volker
6-Oct-2005
[2862]
then print etc are catched quite nicely.
Gregg
6-Oct-2005
[2863]
Yes, that might work Volker. The first thing to do is make all the 
code examples consistent and define the standard for how to write 
them, so we know which "output channels" we need to handle. e.g. 
Carl put in a proxy for the VIEW function, so examples that use it 
would do a VIEW/NEW automatically.
Volker
6-Oct-2005
[2864]
another idea: we have launch now in reblets. its no problem to write 
examples to files and run them standalone now.
MichaelB
6-Oct-2005
[2865]
another thing to add would be: a shortcut to get always quick back 
into the search field (like just press #"s") - if it's not yet there
Gregg
6-Oct-2005
[2866]
Yes, but we don't want every example popping up a new window. I think 
it's better to limit examples to using PRINT and catch that to display 
in an output field of some kind, probably along with the code that 
generated it; a simulated, read-only, console.
Henrik
6-Oct-2005
[2867]
best way to get the active window if more View windows are open?
Volker
6-Oct-2005
[2868]
hmmmm... IIRC you get an de/activation-event and could track that? 
others may have better ideas.
Henrik
6-Oct-2005
[2869]
was thinking about that, but maybe there would be something like 
focal-face?
Volker
6-Oct-2005
[2870]
i don't know. but i am no full guru in that details.
Gregg
7-Oct-2005
[2871]
No better idea here.
Anton
7-Oct-2005
[2872x4]
If anyone wants to know how DO EVENT works in WAKE-EVENT, then they 
might find this script interesting:
http://www.lexicon.net/antonr/rebol/gui/mimic-do-event.r
You can see it working here:
do http://www.lexicon.net/antonr/rebol/gui/demo-mimic-do-event.r
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
[2911]
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.