World: r3wp
[!REBOL3-OLD1]
older newer | first last |
Pekr 20-Oct-2008 [7515] | New VID related blog posted - http://www.rebol.net/r3blogs/0152.html - GUI: Thin skins, thick skins, and in-between |
BrianH 20-Oct-2008 [7516] | That Panels doc is a work in process. |
Pekr 21-Oct-2008 [7517] | Color picker example - http://www.rebol.net/r3blogs/0153.html- I gues now with Carl's frequent enough blogging, there is no point in posting such links? |
Geomol 21-Oct-2008 [7518] | I mostly find links to Carl's blog these days by first going here. So it's good from my point of view. |
Pekr 21-Oct-2008 [7519] | It kind of made point, when Carl posted once in two months. But now it is almost daily, so maybe I will stop it, to not flood here. Surprised a bit by low number of reactions. I thought ppl will be more interested in new GUI and how it starts to turn out .... |
Graham 21-Oct-2008 [7520] | Generally we are people who do things, not read about them! |
Gregg 21-Oct-2008 [7521] | My free time is not proportional to Carl's posts. :-\ |
PeterWood 21-Oct-2008 [7522] | I hope the subject of the example, a colour picker, isn't an indication that the new Rebol GUI isn't going to native dialogs. Windows, Gnome, KDE and Mac OS X all have native colour pickers don't they? |
Pekr 22-Oct-2008 [7523] | Can anyone guess, what is "Face DO reactor (event action) reuse" in Color picker blog? It is represented by code like: set-clr: when [enter] do [ ... some code here ...] |
Graham 22-Oct-2008 [7524] | so, enter is the event being passed to 'set-clr ? |
Pekr 22-Oct-2008 [7525] | Yes, 'set-clr itself belongs to what widget? To window itself? |
Graham 22-Oct-2008 [7526] | It's a function of some type defined lower down |
Pekr 22-Oct-2008 [7527] | ... from source code it seems though, that the action is somehow fired from slider? But you drag slider by mouse, no? So how are you supposed to get 'enter event there? I would understand it, if particular slider would be focused ... |
Graham 22-Oct-2008 [7528x3] | it's not an enter |
it's an event | |
when you slide the slider, the event is passed to set-clr | |
Pekr 22-Oct-2008 [7531] | what is "when [enter]" then? 'enter being just a function argument name? |
Graham 22-Oct-2008 [7532x3] | guessing so |
can't be all events ... | |
so perhaps 'enter refers to some particular type of event | |
Pekr 22-Oct-2008 [7535x2] | So we have got high level (VID) ability to define actions .... |
I would welcome more real-life scenarios, which are not yet implemented. Accelerator keys and focusing. We need to be able to follow OS compatible behavior. | |
Graham 22-Oct-2008 [7537] | basics first |
Pekr 22-Oct-2008 [7538] | Isn't it basic? Those things can not be easily plugged into imo. They might influence the design (look at VID2). VID3 hopefully counts on it. E.g. if button or other elements are supposed to support accelerator keys, you need to use rich-text there instead of text for the description .... |
Graham 22-Oct-2008 [7539] | what's an accelerator key? |
Pekr 22-Oct-2008 [7540] | Hmm, keyboard shortcut to get focus to the element you want? #key in R2 VID. |
Graham 22-Oct-2008 [7541] | uh.. ok |
Gabriele 22-Oct-2008 [7542x2] | petr, from what i see, on [enter] means that the action is executed when the window is shown (you "enter" the window), and it is also executed when the sliders change (do 'set-clr), so it's reused. |
i don't like at all the lab50 thing. that will NOT allow localization, just to make an example. i consider having to size things explicitly a HUGE mistake and i will never say it loud enough. | |
Pekr 22-Oct-2008 [7544] | E.g. with labels the situation is interesting :-) You have to somehow display in label (usually by underscoring particular letter), what key is going to be used as an accelerator, but the focus is supposed to be given to the field .... |
Henrik 22-Oct-2008 [7545] | Gabriele, Carl does not like it either. |
Pekr 22-Oct-2008 [7546] | Gabriele - such opinions are strongly needed. Please go and put them into blog comments section ... |
Henrik 22-Oct-2008 [7547x2] | Status: |
Ah crap... sorry | |
Pekr 22-Oct-2008 [7549] | was it supposed to be private? :-) |
Henrik 22-Oct-2008 [7550] | Pekr, no, it's that stupid default that Enter sends the message. I hate it. I want to KILL IT! :-) |
Graham 22-Oct-2008 [7551] | So, if the enter refers to the slider moving event, what about other events like mouse over etc? |
Pekr 22-Oct-2008 [7552] | Henrik - you can change it in settings, no? |
Henrik 22-Oct-2008 [7553] | Pekr, yes... but the point is that it's default and I set up new AltMEs all the time. I hate it. |
Pekr 22-Oct-2008 [7554x2] | Gabriele - how is lab50 thing different from simply creating new style? Or is just the specification of size the problem you are talking about? |
So, Henrik, what's the status? | |
Henrik 22-Oct-2008 [7556] | Status: - Asset management is a big question. There are design questions to solve with regards to loading and unloading assets to make it easy to switch skins. Carl has mentioned the three skinning layers in his blog post. - I proposed a method to specify lists of materials in a very simple way like FONTIZE and Carl liked it, but it's not yet implemented. This is inspired by what 3D modeler software does to manage materials, rather than what other GUI engines do. It's much more formal. - I proposed a method to generate materials for gradients in styles in a very simple way. Carl liked it. This is halfway implemented. - There's a function to generate a gradient from a description in a compact way and then apply a function to it to create a real adjustable specular highlight. This means you don't have to work with a big set of tuples in a block to create a good gradient. You can see that in action here: http://rebol.hmkdesign.dk/files/r3/gui/026.png - Carl is working on panels and groups. We're building small apps to try to reveal bugs in the layout engine. - Panels has a bug that cause cells to overlap when resizing. This is not evident in my screenshots though. - Resizing with refresh bug has not yet been fixed and you may see it sneaking in, in some of my screenshots. - Text handling (cursor movement, selecting, etc.) is still pretty basic. I think it's due to the event system being grabbed directly from VID3, as it behaves the same way. There needs to be a person capable of writing this code, as it can be done as an isolated project. Gabriele is a prime suspect here, but he's probably too busy at the moment. If not possible to do now, then it will have to wait a bit. - Carl talks about getting more people working with VID3.4 this month to get them to write real apps to reveal bugs in the layout engine. Needs lots of testing. - Text fields allow text to be painted right out to the edge of the area-size, which looks a little silly. Carl wants Cyphre to look at DRAW clipping. - Accelerator keys - no work done yet. - Disabled or focused items - no work done yet. - I have skinned button, toggle, slider, text, area and progress. I hope to skin scroller and panel today. - Constantly working towards simplifying styles. |
Pekr 22-Oct-2008 [7557] | Henrik - you still feel no need for frames to return? |
Henrik 22-Oct-2008 [7558x2] | I've not needed it so far. In fact the last remnants of frames have been removed in the latest build. |
Code example: do %load-gui.r files: read %*.r view/options [ tight [ text-list files do [set-face ca read-string pick files value] scroller ] ca: code-area ][ title: "REBOL Scripts" columns: 0 ] Produces http://rebol.hmkdesign.dk/files/r3/gui/036.png | |
Pekr 22-Oct-2008 [7560] | That is why I suggest strategy of not adding new styles, but adding ALL subsystems. Because then you can see, if your upper layers do fit. Accelerators, focusing, disabling or other states combinations might change the view, if one single draw block is sufficient, or not ... |
Geomol 22-Oct-2008 [7561] | Henrik, that's cute! :-) |
Pekr 22-Oct-2008 [7562x2] | what is read-string? |
oh no, I hope we did not go with read-string and all possilbe read-my-file-format instead of clean read/as and decoders aproach? | |
Henrik 22-Oct-2008 [7564] | >> source read-string read-string: make function! [[file][deline to-string read file]] |
older newer | first last |