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

World: r3wp

[View] discuss view related issues

Volker
23-Jun-2005
[1552]
if you layout again, [ view layout lay1-source ], it would be executed 
again. but if i understand right, you do just [ view lay1 ]
Pekr
23-Jun-2005
[1553]
exactly, Volker ...
Volker
23-Jun-2005
[1554x2]
A while ago we had some fun "beeping" faces. IIRC Anton started that. 
He made an image! from some layout and played that as wave. Needs 
low memory in script, if you find a good one.
How about graying the grid with an alpha-face in front? or shall 
it show the old content?
Pekr
23-Jun-2005
[1556]
there is no grid ... I have just search field, focused, Close and 
Search button for mouse. If something is found, new layout appears 
- a grid, plus "focused" close button, which gets you back to first 
layout ...
Volker
23-Jun-2005
[1557x2]
flashing can be done by rate. change color, rate changes color back 
and disables itself.
hmm, then using two layouts? one with grid, another with "sorry"-message?
Pekr
23-Jun-2005
[1559]
now the only thing missing is - close window upon ESC
Volker
23-Jun-2005
[1560x2]
notify-func does not do it, and hotkey not too?
long not dealed with such events..
Pekr
23-Jun-2005
[1562]
I remember using insert-event-func to catch it on global level ... 
I have to find it - It was somewhere on rebolforces iirc ...
Gabriele
23-Jun-2005
[1563]
sensor #"^[" [unview]
Volker
23-Jun-2005
[1564]
should basically work loke closing on close-button - ah, i to late 
:)
Pekr
23-Jun-2005
[1565]
what, ESC? :-) cool!
Gabriele
23-Jun-2005
[1566x4]
(you'll use unview/only, or unview/all ... whatever you need)
^(esc) works too
mroe readable maybe
*more
Pekr
23-Jun-2005
[1570]
hmm, when I call quit from lay1, I get back to lay2, instead of quitting 
:-)
Volker
23-Jun-2005
[1571]
Hu? And you did not redefine quit?
Pekr
23-Jun-2005
[1572x2]
no ....
I will try to shorten my example ....
Anton
23-Jun-2005
[1574]
Volker, it playing images wasn't my idea at the time. It's cool though.
Pekr
23-Jun-2005
[1575x2]
try following?
lay1: layout [f: field [view lay2] btn "Quit" [quit]]
lay2: layout [text "just a try" btn "Return" [view lay1 focus f]]

view lay1
Anton
23-Jun-2005
[1577]
probe :quit  ; == native
Pekr
23-Jun-2005
[1578]
enter something in the field, press enter ... press Return on second 
dialog, press Quit on first one - instead of quitting rebol, you 
will be brought once again to lay2
Anton
23-Jun-2005
[1579]
you are right...
Pekr
23-Jun-2005
[1580]
so is that a bug or what?
Volker
23-Jun-2005
[1581x2]
interesting.
its the first time i see quit not quit. IMHO a bug.
Pekr
23-Jun-2005
[1583x2]
Gabriele is guru of modal system ... hey Gab, what's happening here? 
Can I twist even so short code or is that a bug? :-)
I will RAMBO it ....
Anton
23-Jun-2005
[1585]
looks like a bug to me. try to make the example smaller first.
Pekr
23-Jun-2005
[1586x2]
smaller? :-)
ok, will remove text ;-)
Volker
23-Jun-2005
[1588]
wanted to ask that too.. ;) removing focus?
Pekr
23-Jun-2005
[1589]
maybe focus is the cause? :-)
Anton
23-Jun-2005
[1590]
They are not modal windows. But the modal handling has changed in 
wake-event, so maybe the problem is there.
Pekr
23-Jun-2005
[1591x3]
focus does that ...
in RAMBO ...
going home, later ...
Volker
23-Jun-2005
[1594]
cu Pekr
Izkata
23-Jun-2005
[1595]
Type something in the box, press enter, click return - and unfocus 
the field (like clicking on the window) and it shows lay2 again - 
looks like it's just viewing lay2 when the field is unfocused - which 
is before the button is clicked, right?
Volker
23-Jun-2005
[1596]
good observation. when i add a 'print in the quit-button, it shows 
that action is never called. so no quit too.
Romano
23-Jun-2005
[1597]
When a field is dirty? and you click on another button the action 
of the field is done. This is a side effect of system/view/screen-face/feel/event-funcs/1
Pekr
23-Jun-2005
[1598]
I did not know View 1.3 will not work with W95??? I noticed change 
of filesystem accessor function calls, but I thought those will be 
somehow called on newer systems only. Lotsa of W95 machines still 
around. I wonder if W98 is affected too?
BrianH
23-Jun-2005
[1599]
I have found Win95 machines to be kinda rare, but 98 and 98se to 
be pretty common - 95 seems to only be used on machines without Internet 
access in my experience.
Graham
23-Jun-2005
[1600x2]
I think RT could afford to drop support for Win95
or, leave 1.2 for Win95