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

World: r3wp

[View] discuss view related issues

MichaelB
6-Oct-2005
[2856]
well, I still don't like it as somehow this is a kind of hidden connection 
which one doesn't expect - kind of "if something is on the screen 
it should be obvious what's going to happen if I do this or that" 
:-)
Volker
6-Oct-2005
[2857]
maybe popping the console up immediate, with some note in it? "this 
is the rebol-console. here you see results of examples"?
MichaelB
6-Oct-2005
[2858]
might make sense, at least according to the principle I meant above


actually I think it really wouldn't be that simple, because it is 
only one process and as you mentioned above it's a console-window 
and the only windows I know which would be closeable easily are view 
windows and the console seams to be none in this sense
Gregg
6-Oct-2005
[2859x2]
The ability to evaluate code examples in the word browser was done 
without inserting a "proxy" print statement, or probe, or others, 
and the code examples were not updated either. It's a bad solution 
for now; just a first step.
It's good to hear complaints like this though. Thanks!
Volker
6-Oct-2005
[2861x2]
*smackme* how about using Cyphres view-console? That should be good 
enough for examples.
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