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

World: r3wp

[!REBOL3 GUI]

Pekr
12-Oct-2010
[3774]
As for me, I can imagine Henrik doing much more important work, especially, 
as we have just few basic styles, which are even not working properly 
yet. But - we can't see the big picture. Henrik's work can go in 
parallel, and I think that Robert is sane enough to know what he 
is doing/requesting and why. That means - we have to be missing something 
...
Henrik
12-Oct-2010
[3775]
Graham, yes.
Pekr
12-Oct-2010
[3776x2]
I hope soon enough we will be able to see fully working area, navigation 
by keyboard, tabbing system (including the ability to set the order, 
skip certain widgets, etc.), styles like tabs, tree (fully keyboard 
navigation support), table/grid (ditto). With those three styles, 
we can be kings ....
I just think that the work is running in multiple levels (native 
- Cyphre, styles - Rebolek, high-level - Henrik), and at some point 
in time, it will all settle down and merge together ...
Henrik
12-Oct-2010
[3778x2]
Pekr, I see you don't understand the design of the only-chars validator: 
Each validator is single-purpose. This one checks only if only chars 
exist in the field. You can combine it with another validator to 
get stricter validation.
There is no problem with checking for an empty string, but the only-chars 
validator does not check for empty strings. The not-empty validator 
does that.
Pekr
12-Oct-2010
[3780x2]
Of course I am tempted to see things we expect most - more complete 
styleset and at least basically usable gui, but I will test what 
comes-out, as I think talking about what will come next just makes 
guys nervous :-) Of course some basic time-frame  would be usefull 
...
but only-chars CAN'T be imo true for an empty string, no? :-)
Henrik
12-Oct-2010
[3782x2]
Time frame is ASAP. The work is being done for apps (now not one, 
but two) that need to get into the field by RM Asset as soon as possible.
Pekr, what if you have a case, where you want both?
Pekr
12-Oct-2010
[3784]
Henrik - can you please repost link to your validation related doc?
Henrik
12-Oct-2010
[3785x2]
The doc is not yet updated for the latest validation prototype.
Perhaps the discussion should wait until that is completed.
Pekr
12-Oct-2010
[3787x2]
Henrik - that would be OK, no? It is imo about perception of what 
are you expecting. If I ask - non-empty, that means something is 
entered, whatever. If I ask only-chars, it should validate only if 
chars are entered = include non-empty state by default ...
Simply:

not-empty - some value of any type has to be entered
only-chars - only chars allowed (len > 1)
only-numbers - only numerical values allowed (len > 1)
Henrik
12-Oct-2010
[3789]
yes. what if you want to allow both empty and only-chars?
Rebolek
12-Oct-2010
[3790]
some-chars, any-chars?
Henrik
12-Oct-2010
[3791]
possible, but adds more validators.
Pekr
12-Oct-2010
[3792]
If I want to allow both empty and only-chars, then I have to explicitly 
express that. But only-chars itself has to fail on an empty field, 
no? Maybe I am just wrongly guessing something from the validation 
test example form field descritions ... I will wait for docs ...
Henrik
12-Oct-2010
[3793]
Pekr, I understand what you say, but I would call it "going the long 
way around".
Pekr
12-Oct-2010
[3794]
I think I still don't understand the issue. And also - many users 
might not care much about the implementation issues, but about the 
validity of the output. And not-numers positive validation for an 
empty field is simply incorrect imo ... I will wait for the planned 
changes, and then reevaluate ...
Henrik
12-Oct-2010
[3795]
The output is entirely valid from the system's point of view, but 
the question is if users will understand it.
Pekr
12-Oct-2010
[3796]
Machine should have never a precedence instead of the human common 
sense :-)
Henrik
12-Oct-2010
[3797]
The trick is to make the two concepts mesh. That is why I asked the 
question above in the first place.
Pekr
12-Oct-2010
[3798]
What about introducing special validators then? I know that would 
create several possible combinations - not-empty-only-chars, but 
you could still be safe. Just thinking loud. And also - the naming 
conventions: 

not-empty --> required
not-empty only-chars --> required-chars
not-empty only-numbers --> required-numbers


Also thinking about the analogy to parse, but ppl would have to be 
familiar with parse dialect:

some-chars (includes not-empty)
any-chars (empty or any char)
Henrik
12-Oct-2010
[3799x3]
not-empty --> required -> already in use, but others could be considered.
new validation prototype at:

http://94.145.78.91/files/r3/gui/validation.r3

requires a new R3 GUI:

http://94.145.78.91/files/r3/gui/r3-gui.r3
the ON-VALIDATE actor allows you to modify the face, based on the 
validation result. also simplified the validation process a bit, 
while adding the ability to use ANY for validators, as shown in the 
"Eric or James" field.
Pekr
12-Oct-2010
[3802x2]
Not sure it would be usefull today, but would it be possible to have 
some validation per keypress? In the past I remember fields, which 
were defined as variable to get VTG = $("A", "B"), allowing to enter 
only A and B (for the floppy drive purpose :-)
Will give it a try in the evening ...
Henrik
12-Oct-2010
[3804]
yes, I'm considering how that will work. it needs to be simple.
Ashley
13-Oct-2010
[3805]
need to get into the field by RM Asset as soon as possible

 ... wouldn't they be better off using R2? I gather SDK is not a requirement?
Henrik
13-Oct-2010
[3806]
It was decided a long time ago to do future projects in R3 as we 
felt that continuing to write testing tools, frameworks, etc. under 
R2 would give a big pile of work later, when converting that to R3.

Considering also that the result of that decision is that Carl is 
now in tight communication with RM Asset, I think it was a good decision, 
as we avoid the months of darkness without info. It gives RM Asset 
control in what direction to take the GUI and to work towards R3 
being a usable product as quickly as possible, when you have to answer 
to other companies and customers. SDK is also a requirement, that 
we hope can be pushed through as quickly as possible.
Pekr
13-Oct-2010
[3807]
Ashley - forget R2 :-)
Rebolek
13-Oct-2010
[3808]
Pekr, I'd like to hear your opinion on this: Instead of PANEL and 
GROUP there will be VPANEL, HPANEL, VGROUP and HGROUP. Is it end 
of the world as we know it, or are you fine with it? ;)
Henrik
13-Oct-2010
[3809]
There are some more details: The reason would be to no longer have 
it be unclear from source what the layout direction is. Prepending 
V and H removes that doubt. Also you would no longer need to write:

panel 0 [...

to get a horizontal panel with an infinite amount of columns.

just write:

hpanel [...
Maxim
13-Oct-2010
[3810]
that's how glayout has been doing it for years... :-)
GrahamC
13-Oct-2010
[3811]
Is anyone using glayout though?
Maxim
13-Oct-2010
[3812]
well yes... some clients.  :-)
GrahamC
13-Oct-2010
[3813]
I thought it was a great pity you never finished it
Maxim
13-Oct-2010
[3814x2]
it always was a prototype.... and the finished product always was 
meant to be glass.
right now, glass is being used in my largest commercial app I've 
ever developped and its 100% stable.
GrahamC
13-Oct-2010
[3816]
100% stable just means not enough beta testers!s
ChristianE
13-Oct-2010
[3817]
Henrik, I too think the biggest difference between a VPANEL and a 
HGROUP is the orientation, more so than applied or missing spacing/padding 
as is established thru PANELs vs GROUPs. Yet with this naming is 
encoded in just one letter H and V.  

What's the reasoning to not use something like PILE [...] vs LINE 
[...] or just COLUMN [...] vs ROW [...] or, even, HORIZONTAL [...] 
vs VERTICAL [...]?
Henrik
13-Oct-2010
[3818]
ChristianE, good suggestions, I'll pass them on.
ChristianE
13-Oct-2010
[3819]
And making the difference between GROUPs and PANELs an attribute 
to those? Are there fundamental behavioural differences between panels 
and groups?
Henrik
13-Oct-2010
[3820]
groups flow faces by their individual size, like Google Images, while 
panels use a grid of cells.
Rebolek
13-Oct-2010
[3821]
Yes, unlike in Carl's R3GUI, PANEL and GROUP are now different internally.
ChristianE
13-Oct-2010
[3822]
Ok, I see. In Carl's R3GUI it was mainly spacing/padding, IIRC.
Rebolek
13-Oct-2010
[3823]
the thing is the we now need 4 names instead of just two.