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

World: r3wp

[!REBOL3 GUI]

Henrik
26-Jul-2010
[2124]
- Bolek is working on style code, but I've not seen any activity 
for the past few days.
Pekr
26-Jul-2010
[2125]
thanks Henrik - such a short summary is absolutly perfect to keep 
us informed. I will ask in 2 weeks the same question :-)
Ladislav
26-Jul-2010
[2126x2]
Resizing news: the latest state is, that there are two "container 
styles", the first one being a group - a layout in which graphic 
objects are arranged into either rows or columns, not necessarily 
into *both rows and columns* at the same time, the second one is 
a panel - a layout in which graphic objects are arranged into both 
rows and columns at the same time.
I guess, that it does not surprise you, that the resizing algorithms 
for group and panel differ...
Henrik
26-Jul-2010
[2128]
yes, I've suggested calling PANEL a TABLE instead, since it more 
clearly defines how it lays things out.
Ladislav
26-Jul-2010
[2129]
Regarding the names: Cyphre thought, that the "table" name should 
be reserved for something even more "specialized"
Pekr
26-Jul-2010
[2130]
Table could be mixed with ppl expecting grid widget imo ...
Henrik
26-Jul-2010
[2131]
Ladislav, ok, maybe "array" or something?
Pekr
26-Jul-2010
[2132]
or "block", "matrix" ... but I am ok with "panel" anyway ...
Henrik
26-Jul-2010
[2133]
the problem with PANEL as it works now is that it lies, name wise 
too close to GROUP, which has significantly changed behavior now.
Ladislav
26-Jul-2010
[2134x2]
It may be the time to discuss the style name, I just do not know 
what is the best forum for it
(we should let Carl to have his say too, I guess)
Henrik
26-Jul-2010
[2136x2]
we'll take it here for now, then make one conclusion and bring that 
conclusion to Carl.
If it's not clear, the GROUP style produces this flow:

http://rebol.hmkdesign.dk/files/r3/gui/225.png


If you turn that 90 degrees, you'll see that it's like how newspapers 
arrange columns, so I would want to find a familiar DTP term for 
it.
Ladislav
26-Jul-2010
[2138]
Henrik, sorry, this is a misunderstanding
Henrik
26-Jul-2010
[2139]
ok, backpedalling a bit :-)
Ladislav
26-Jul-2010
[2140]
Do you have a picture for the other orientation?
Henrik
26-Jul-2010
[2141]
it seems 214 is the closest one
Ladislav
26-Jul-2010
[2142x5]
OK, thanks.
So, both http://rebol.hmkdesign.dk/files/r3/gui/214.pngand http://rebol.hmkdesign.dk/files/r3/gui/225.png
are examples of the Group style now.
The style uses a LAYOUT-MODE attribute, which determines the preferred 
orientation.
The http://rebol.hmkdesign.dk/files/r3/gui/214.pnghas LAYOUT-MODE 
set to columns, while the http://rebol.hmkdesign.dk/files/r3/gui/225.png
has LAYOUT-MODE set to rows.
Neither of the pictures represents the Panel style now. The Panel 
style would have "regular" rows as well as "regular" columns at the 
same time.
Henrik
26-Jul-2010
[2147x2]
Is it possible to define the number of columns or rows?
(depending on LAYOUT-MODE)
Ladislav
26-Jul-2010
[2149]
The columns or rows are "internally" implemented as lines, and if 
you switch the LAYOUT-MODE you just tell the resizing algo to handle 
the lines as rows or as columns
Pekr
26-Jul-2010
[2150]
well, why not to use LAY-X, LAY-XY or something like that?
Ladislav
26-Jul-2010
[2151]
No, it is just one style, not two
Pekr
26-Jul-2010
[2152x2]
It may sound a bit cryptic, but LAY simply exactly states that we 
are going to somehow layout the elements
Ladislav - I thought about unifying the naming, so replacing GROUP 
by specific LAY-XY
Ladislav
26-Jul-2010
[2154x2]
in group the objects are organized into either rows or columns (internally 
lines all the time), i.e. XY is misleading
Summary: in a group, objects are arranged into lines, that are handled 
depending on the LAYOUT-MODE as either rows or columns
Pekr
26-Jul-2010
[2156]
LAY-ANY, LAY-COLUMNS, LAY-ROWS :-)
Ladislav
26-Jul-2010
[2157]
Pekr, we do not need three names, it is just one style
Pekr
26-Jul-2010
[2158]
btw - why "panel" is not fitting anymore? I can see no problem in 
using a panel name for what you described ...
Ladislav
26-Jul-2010
[2159]
(currently called a "group")
Pekr
26-Jul-2010
[2160x2]
I tried to propose one name LAY-* to prelace both panel and group
prelace = replace
Ladislav
26-Jul-2010
[2162x2]
no way, there are two styles, we need exactly two names
I hope, you now know, what does the group style look like
Pekr
26-Jul-2010
[2164x2]
Well, I always objected against two things - panel and group having 
different visuals, and both styles having different aproach to how 
they lay things (vertical vs horizontal)
But Carl told me, it is intentional. I always had to look at docs, 
to see, which style does what :-)
Ladislav
26-Jul-2010
[2166x2]
You still do not know *what is a group*
I mean *what is a group now*
Pekr
26-Jul-2010
[2168]
Ah, so you changed the meaning of a group style?
Ladislav
26-Jul-2010
[2169]
Didn't I succeed to explain it yet?
Henrik
26-Jul-2010
[2170]
yes, group behavior is as shown in the pictures. that is different 
from before, if you'll notice that faces are arranged in "lines".
Pekr
26-Jul-2010
[2171]
well, I don't understand the meaning of those images ... too abstract 
for me :-)
Ladislav
26-Jul-2010
[2172]
They are both groups, in the http://rebol.hmkdesign.dk/files/r3/gui/214.png
you can see the columns, in http://rebol.hmkdesign.dk/files/r3/gui/225.png
you can see rows, can't you?
Henrik
26-Jul-2010
[2173]
just look at the box arrangement, and you'll see that you can draw 
a straight line between them in one direction, but you can't in the 
other. that should be enough.