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

World: r3wp

[!REBOL3 GUI]

Rebolek
7-Mar-2011
[6568]
Yes, there's support for alignment. I'm not how much of it is currently 
accessible, but you should be able to align cells in panel.
Pekr
7-Mar-2011
[6569]
hgroup for buttons does not work either, because that group is part 
of the first cell of the second row ...
Henrik
7-Mar-2011
[6570]
you want the button panel outside the other panel.
Rebolek
7-Mar-2011
[6571]
Pekr, it works exactly like it should.
Henrik
7-Mar-2011
[6572]
(don't be distracted by the visual frame. this will change, so you 
will have better control of what is visually framed)
Pekr
7-Mar-2011
[6573]
That is what I asked - if I should put buttons outside the first 
panel? But philosophically - that does not work
Rebolek
7-Mar-2011
[6574]
Maybe not philosophically, but technically it's perfectly working.
Pekr
7-Mar-2011
[6575x3]
Rebolek - don't drag me in that discussion - I said, that I know, 
that it works like it should. But I also said, that the result is 
undesirable for me ....
Henrik - what is planned then in that regard? New frame style, and 
new panel style?
I have to look into some forms in some other apps, how they do solve 
visually buttons belonging to form ...
Henrik
7-Mar-2011
[6578x3]
GROUP and PANEL would by default not create a frame. Derivative FRAME 
styles would create a frame.
how they do solve visually buttons belonging to form

 - when this works correctly, you will be able to do any visual combination.
Rebolek, something that bugs me though is spanning multiple cells. 
Is this possible?
Rebolek
7-Mar-2011
[6581]
in PANEL style?
Henrik
7-Mar-2011
[6582x2]
yes
or will there be a different solution of inheriting cell-sizes across 
multiple panels? this is for forms where label width is necessary 
to be identical for multiple form parts, such as 4 column forms or 
forms separated vertically by full-width spanning parts.
Pekr
7-Mar-2011
[6584]
Henrik - so you want to be able to merge cells? Hmm, not sure it 
would not be difficult for Ladislav to count into the engine? :-)
Henrik
7-Mar-2011
[6585]
I don't know how difficult it is to do, but it seems like a necessity 
to me in such cases.
Pekr
7-Mar-2011
[6586]
But generally yes, for forms, I expect easily setting up pairs of 
right alighned labels, and fields. That has to be ultra easy, along 
with the ability to set some margin, but that should be workable 
via the stylize.


Henrik - I think that if you add frameless alternatives, then it 
is not a big deal ... I just have problem with current aproach, where 
subpanels create too many lines in the GUI :-)
Henrik
7-Mar-2011
[6587]
Pekr, ok. Just ignore the lines and spacing between panels for now. 
The arrangement is not going to change.
Pekr
7-Mar-2011
[6588]
Is the change planned for the next release?
Rebolek
7-Mar-2011
[6589]
Yes.
Ladislav
7-Mar-2011
[6590x4]
#[[Pekr:

Does not work for me:


 view [hpanel 2 [label "name: " field hpanel 3 [button button button]]]


The nice thing is, that I do know, what it does not work, and I do 
know that the behaviour is correct, it is just - undesirable ... 
:-)

Pekr:]]


Could you please write it down in a form understandable to mere humans?
I would especially like to know what do you want.
Something like "does not work for me" may be understandable to some 
supernatural beings with mind-reading capabilities, but, being a 
mere human, I am lost.
How about this, would you prefer such a result?

view [hgroup [label "name: " field return button button button]]
Pekr
7-Mar-2011
[6594]
yes, this is what I would expect, if I would don't know about panel 
implementation internals (cells)
Henrik
7-Mar-2011
[6595]
you wouldn't be able to align labels and fields correctly below eachother, 
as far as I can see
Pekr
7-Mar-2011
[6596x3]
you mean without cells?
in R2, I just do:

stylize [lab: label right]

view layout [across lab "name: " field return lab "last name: " field 
return button button button]
What's the r3 equivalent to align to the right? :-)
Henrik
7-Mar-2011
[6599x2]
In R3 you would have several possibilites, depending on whether you 
want to align the label text or the label itself.
sorry, several = two
Ladislav
7-Mar-2011
[6601x4]
yes, this is what I would expect,...

 - I am sorry, but you cannot expect HPANEL to behave like HGROUP, 
 that would not make any sense at all
I guess, that what Pekr wants is just to be able to align the label 
text to the right
BTW, you can make a similar layout using hpanel as well. Are you 
able to do it, Pekr?
a similar layout
 = "a layout similar to the one I described above using HGROUP"
Pekr
8-Mar-2011
[6605]
Ladislav - I will have to think about the challenge for a while, 
let me think :-)
Henrik
8-Mar-2011
[6606]
Rebolek says, it should now be changed so that TIGHT, GROUP and PANEL 
no longer draws any frames, as this is relegated to higher level 
FRAME styles.
Pekr
8-Mar-2011
[6607x2]
how will one name - frame - cover all tight, group, panel?
or will we go for something like hfpanel, vfpanel? :-)
Rebolek
8-Mar-2011
[6609]
HPANEL [] - no background, no border
HPANEL #FRAME [] - same as current hpanel

same for all other panel styles
Henrik
8-Mar-2011
[6610]
is it a good idea to use issue! ? it will collide with build scripts.
Pekr
8-Mar-2011
[6611x2]
uh, what?
So we have got new way of how to parametrise stuff in the dialect 
level? Not sure about that
Rebolek
8-Mar-2011
[6613]
Nevermind, Pekr.
Pekr
8-Mar-2011
[6614]
besides that, # should be reserved for accelerator keys, no?
Rebolek
8-Mar-2011
[6615]
Ah, you don't like it? I was really afraid you will.
Pekr
8-Mar-2011
[6616]
I don't like anything new :-)
Rebolek
8-Mar-2011
[6617]
Which doesn't prevent you from wanting something new all the time 
:)