World: r3wp
[!REBOL3-OLD1]
older newer | first last |
PeterWood 18-Oct-2008 [7484x2] | In the DocBase page for GUI_Panels, Carl wrote A group has no backdrop or border and arranges horizontally by default. I feel this is ambiguous; do groups have no backdrop or border ever or only by default? I'd like to edit the wiki to make this more clear but I can't tell from the rest of the page whether a panel can have backdrops and borders. Can anybody with access to R3 clarify this? |
By the way it looks a lot like a Java GridBag. | |
Chris 18-Oct-2008 [7486] | I'd imagine that's the distinction between Panels and Groups? |
PeterWood 18-Oct-2008 [7487] | So you think that a Panel is an invisible container? |
Anton 18-Oct-2008 [7488x2] | I think adding integers used to produce a decimal, when it overflowed. There were problems caused by this, and discussions followed, so it was changed to the current system. |
Peter, I also think that, as Chris suggests, borders are designed to be invisible, while panels can be seen. I don't see any reason why a border couldn't be restyled to be visible, though. It will be one of the first things I'll want to do - hacking if I have to. | |
PeterWood 18-Oct-2008 [7490] | From re-reading the Docbase page, it seems that both panels and groups may be visible as they have styles: Panels are implemented with the panel and group styles. You will use these two styles together to create a wide range of layouts. I don't think that I'll try to clarify the DocBase entry just yet though. |
Anton 18-Oct-2008 [7491] | They /are/ styles, both. |
Gabriele 18-Oct-2008 [7492x3] | Henrik, so far this looks exactly just like VID3, except that there is no separation between look and feel. |
Gregg, I think what you remember about coercing to decimal is that if you type a number greater than maxint it gets loaded as decimal. | |
>> type? 2147483647 == integer! >> type? 2147483648 == decimal! | |
Pekr 18-Oct-2008 [7495x2] | Gabriele - your desing used and combined multiple gobs. What we can see so far is the one gob design, plus gob style face being placed upon it. If we use only one draw block for various states, I wonder how do we do conditional drawing in one single draw blog - e.g. focused, vs normal state. |
IMO instead of adding additional styles, we should be sure, that we can easily express such things as focusing, display of accelerator keys, etc. | |
PeterWood 18-Oct-2008 [7497] | Is it really one gob with a gob style face placed upon it? Isn't even something as simple as : panel [ button "Start" button "End" ] at least 5 gobs? |
Pekr 18-Oct-2008 [7498x2] | Peter - I am talking about one single style, not multiple styles being one gob. |
From Henrik's code above, it seems we have only one draw block and various states (e.g. button up, down, over) are being handled only by parametrising via facets, but still one draw block. But is imo nicely simplified concept, BUT - it may not work for more complex styles. What if I conditionally want to draw (or not), if the style is focused, disabled, etc. Not everything can be imo expressed in one single draw block. That is why so far the removal of frames concept (having different draw blocks for various situations) was imo preliminary, but we will see .... | |
PeterWood 18-Oct-2008 [7500] | My guess is that the worst case would be that you have to use different styles and unhide and hide them as needed. |
Henrik 18-Oct-2008 [7501] | Currently, PANEL produces a background along with a border. That's why there are a lot of rounded borders in the first screenshots. Due to a bug (?) in the layout engine, PANEL must have a draw block assigned that fills out the background with a neutral color. GROUP behaves as follows: - No background - When not specifying elements in a group block, they layout vertically. - When specifying elements in a group block, they layout horizontally. - When specifying a number for the group block, each element lays out horizontally until the number is reached and then a new row is started. Differences from VID3: - There is no concept of rows and columns. Elements of uneven sizes will uncritically be laid out right next to eachother. I've not yet discussed with Carl whether this goes in or if there is a different solution. I've observed code for grid management in both GROUP and PANEL and a facet reading "grid: true", but it seems not to be working. |
Graham 18-Oct-2008 [7502] | are you the only person testing AltVid? |
Henrik 18-Oct-2008 [7503] | no |
Graham 18-Oct-2008 [7504] | Just the only one talking :) |
Henrik 18-Oct-2008 [7505] | So far :-) |
GiuseppeC 18-Oct-2008 [7506] | A couple of articles I found interesting about the future of interpreted programming languages. http://weblog.infoworld.com/fatalexception/archives/2008/10/virtual_machine.html http://weblog.infoworld.com/archives/emailPrint.jsp?R=printThis&A=/article/08/10/13/42TC-dynamic-futures_1.html VM, JIT and access to other programming languages libraries is the future... Maybe Rebol 4 ? |
Henrik 19-Oct-2008 [7507] | There is no concept of rows and columns. <--- this was a bug and has been fixed. |
Gabriele 19-Oct-2008 [7508] | Petr, most of the styles in VID3 use just one draw block. Also when using multiple gobs, eg. in a scroller, they have one draw block each too, and state is just changing the value of some words. Carl's version just limits this to a single draw block, without automatic resizing. Which, you're forced to do if you remove the distinction between feel and look (you're stuck with whatever gob structure was in the original style anyway without that distinction). |
Pekr 20-Oct-2008 [7509] | Henrik - it seems your button design does not work for darker button variants, does it? |
Henrik 20-Oct-2008 [7510] | It's very difficult to produce anything useful with a darker color. |
Pekr 20-Oct-2008 [7511] | maybe changing button text color to white will be needed in such cases, or white 1px outline of text, but not sure how would it turn out ... |
Henrik 20-Oct-2008 [7512] | That would complicate the code a bit too much. We can only recommend that people don't use dark buttons. :-) It's easy for the user to adjust anyway. |
Pekr 20-Oct-2008 [7513x3] | Henrik - you latest screenshot simply shows, that 'label should be antialiased imo .... |
Carl's now describing a bit sizin model in following chapter - http://www.rebol.net/wiki/GUI_Panels | |
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 [7532x2] | guessing so |
can't be all events ... | |
older newer | first last |