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

World: r3wp

[!REBOL3 GUI]

shadwolf
14-Feb-2010
[713]
no multitouch wit threading  ( you can't have several sources of 
 event and treat them at the same time without threading system)
Graham
14-Feb-2010
[714x2]
The OS detects the multitouch event and sends it View
I don't see why we need multithreading for that
shadwolf
14-Feb-2010
[716]
cause you need to clip the actions to the event you receive
Henrik
14-Feb-2010
[717]
next issue is storing the tab face in the window face... this is 
necessary to store a tab navigation frame per window. I wonder how 
this is going to be done...
BrianH
14-Feb-2010
[718]
I thought that the whole point of Carl's GUI was to allow app developers 
ignore all of the little details about how the app looks and acts 
at runtime and just focus on the semantics. Let the stylist worry 
about the appearance, and let the infrastructre people worry about 
whether the input came from multitouch, mouse and keyboard, whatever. 
Separation of form and function.
Henrik
14-Feb-2010
[719]
people are so used to R2 VID, that it's hard to get out of that thought 
process that the GUI must be completely hackable. :-)
BrianH
14-Feb-2010
[720]
And I think it should be, by the GUI hackers. But those hacks should 
be able to be used by others who don't want to have to worry about 
that stuff (like me).
Henrik
14-Feb-2010
[721]
The challenge is to provide a GUI that you don't need to hack to 
make it do what you want. We can go much further with that in R3 
than we ever would be able to with R2.
Graham
14-Feb-2010
[722]
The challenge is to make a GUI that ordinary users can hack :)
Robert
14-Feb-2010
[723]
I'm more with Henrik here.
BrianH
14-Feb-2010
[724]
No, the challenge is to make a GUI that ordinary users won't have 
to hack. Ordinary users are terrible at making GUIs, and their attemps 
to hack them look terrible.
Henrik
14-Feb-2010
[725]
worse is that when GUIs scale up, you really don't want to do hacks. 
you want faces to be churned out smoothly, like a  modern car factory.
AdrianS
14-Feb-2010
[726x2]
is stylus input being considered at all?
if not, can the design at least not make it diffucult to be added 
later?
Graham
14-Feb-2010
[728]
for handwriting?
AdrianS
14-Feb-2010
[729]
yes
Graham
14-Feb-2010
[730]
I wish ...
AdrianS
14-Feb-2010
[731]
I love my Tablet PC...
Graham
14-Feb-2010
[732]
I have a Dell XT2 tablet with multitouch ... so yes, I would want 
that as well
Henrik
15-Feb-2010
[733]
hmm... it seems that the on-key actor requires keyboard focus for 
the specific face before it works. I figure that the tab navigation 
stuff would fit nicely in the window's on-key actor, but the focus 
requirement is a problem. Ideas?
Graham
15-Feb-2010
[734]
So, what happens to the keyboard strokes??
Geomol
15-Feb-2010
[735]
I really like this line: 

he wants his last 15 years of life to mean something to more than 
himself"
I think of that every day."

Some ideas on focus:

- If REBOL should be feature rich, maybe concentrate on one platform 
reducing the work load.

- Make REBOL less feature rich, but make it work 100% the same on 
all platforms.

- Focus on defining the language, not on implementation. Like Kernighan 
and Ritchie defined C (and later ANSI C), Stroustrup defined C++, 
Meyer defined Eiffel, etc. Why don't we really see more implementation 
of REBOL? Because the language isn't well defined. Would it be ok 
to have it well defined and then see alternative implementations?
Pekr
15-Feb-2010
[736]
... belongs to advocacy :-)
Geomol
15-Feb-2010
[737x2]
Yeah, maybe I should repost it here? I put it here, because it was 
a reply to something written here.
repost it *there* :-)
Pekr
15-Feb-2010
[739x2]
I know :-) It is just that such discussion might turn into advocacy 
rather easily :-)
And as for Max, he is a bit fanboying here :-) I see absolutly no 
reason to not coordinate with Carl, and it was already taken care 
for :-)
Henrik
15-Feb-2010
[741x2]
Graham, keyboard strokes are lost, when the focal face is not set. 
The culprit is this function in event handling:

key: key-up: context [
	do-event: func [event /local win face] [
		if face: guie/focal-face [
			; bubble up if necessary
			until [
				event: do-style face 'on-key event
				not all [face: parent-face? face event? event]
			]
		]
	]
]


Ideas on how best to solve this? We want keyboard events always to 
be captured and responded to in the correct window regardless of 
focal-face.
I guess I need to capture which window is active, store it in guie/window-face 
and add that to the 'key and 'key-up context to handle the event 
there.
Robert
15-Feb-2010
[743]
Can't we send the event first to the focal-face, if not handled, 
bubble up (using the traversal functions) until someone handled it? 
The last instance to handle the key-event would be the window.
Henrik
15-Feb-2010
[744]
sometimes we don't have a focal face
Robert
15-Feb-2010
[745]
than it should bubble up directly.
Henrik
15-Feb-2010
[746]
yes... need to figure out a way to capture which window is active.
Gregg
15-Feb-2010
[747]
On tooltips, we can call them something else, but the functionality 
is important. It's not just about where the mouse is hovering, but 
things like syntax completion, context aware help, etc. touch and 
multitouch apps may use them differently, just as they have evolved 
from simple yellow boxes to rich content.
Carl
15-Feb-2010
[748]
Hello everyone.... Robert has invited me to be involved in the GUI 
project.


I thought about it for a few weeks, and decided that I would like 
to do so (become involved)... because Robert is not the only one 
asking for this.  There seems to be other interested persons, no? 


(And, just a note, I am not ignoring the other comments posted above, 
but my desire is to stay on topic here.)
Graham
15-Feb-2010
[749]
Henrik, isn't the active window always known?
Carl
15-Feb-2010
[750]
G: Yes.
Graham
15-Feb-2010
[751]
So, doesn't this mean that the active window can process keystrokes 
that are not captured by any focal face ?
Carl
15-Feb-2010
[752x2]
Yes.
That's a requirement, otherwise you can't do a lot of important key 
functions.
Graham
15-Feb-2010
[754x2]
I believe we are talking about keyboard navigation of the gui so 
that's good
What are the thoughts about alternative input devices such as multi-touch 
and styluses ?
Carl
15-Feb-2010
[756]
Thoughts, or goals?  I think we need to support them.
Pekr
15-Feb-2010
[757]
Hello Carl ... nice to see you on the surface again :-)
Graham
15-Feb-2010
[758]
At the expense of breaking the goal of running the same code on all 
platforms?
Carl
15-Feb-2010
[759x3]
Hi Pekr. Good to be here.
G: I'm hoping there are mappings for it... to some fair degree.
For example, the primary multitouch I miss in VID on OS X is 2-finger 
scroll, but it can be packaged as a scroll event, so should map. 
 (The issues we face will also be faced by all web browsers, so we're 
in good company.)
Graham
15-Feb-2010
[762]
Many recent operating systems support multitouch, including Mac OS 
X, Windows 7, Windows Vista, Windows XP Tablet PC Edition and Ubuntu 
(since version 7.10), Google's Android, Palm's webOS and Xandros. 
Application frameworks such as MT4j (Multi-touch for Java) and PyMT, 
a Python module that supports multitouch, have also been developed.