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
[2842]
2. I check this .... there is indeed some stuff which might interfere
Volker
6-Oct-2005
[2843]
You deal with code here. isnt the console-window your friend anyway?
MichaelB
6-Oct-2005
[2844x2]
2. do/args %tools/anamonitor.r false
I had this inside - and without it it works ... ?
Volker: what I think it should be like is, that you have during coding 
always the word-browser open and if we have the option to evaluate 
the examples by mouse-click we do so .... but do this a couple of 
times and you have a window mess, so closing them seams natural, 
doesn't it ? :-)
Volker
6-Oct-2005
[2846x2]
i understood the console-window pops open, and there is only one. 
sho i misunderstood something.
i have only the console open and all examples print there. how did 
you made multiple windows, is there some vid-example?
MichaelB
6-Oct-2005
[2848x4]
ääähmm :-) I was too fast with the many windows, there is just one, 
you're right in this case (i apologize for the wrong comment)
nevertheless closing it shouldn't close the wordbrowser - at least 
would be nice without it
without it = without closing it
2. just to end this question: with anamonitor 3 it's working
Volker
6-Oct-2005
[2852x4]
no, it must. its the "rescue the programmer"-window. if something 
goes mad, close this window, phew. thats why debug-scripts have always 
a print "console" on top.
(my debug-scripts)
but maybe it would be something for an article, placed there, for 
newbies. its prominently placed. people who try /desktop first time 
will click there too, and then your arguments are right.
btw word-browser could also be linked from documentation.
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]
.