World: r3wp
[Tech News] Interesting technology
older newer | first last |
[unknown: 5] 5-May-2009 [3937] | If your talking about how a container is in R3 alpha's then I follow what your talking about. |
Chris 5-May-2009 [3938] | And on Design, it is about the UI designer getting what they want! |
Henrik 5-May-2009 [3939] | The current design of a container style serves two purposes: Visual integration and actor integration. This means a container style is built from a derivative of the PANEL style as a decorative container and contains other styles that are directly built only to fit in that style. Each of those styles may contain actors that allow them to interact with other styles automatically inside the container style. So if you put a numeric field together with a mouse drag knob, the mouse drag knob automatically is able to adjust the numeric Note that this ability is generally available also outside container styles, as there is no design replication, but the conditions will be slightly different inside a container style. |
[unknown: 5] 5-May-2009 [3940] | Yep that sounds like a CANVAS component in Flex. |
Henrik 5-May-2009 [3941] | But for the casual user, all that is unimportant. Only the style designer needs to know this. The casual user simply types: view [ group 2 [ label "IP Address" ip-field label "Gateway" ip-field label "DNS" ip-field ] ] |
[unknown: 5] 5-May-2009 [3942x2] | See Henrik, Flex has Hbox and Vbox container objects. H meaning horizontal and V meaning vertical. Where things placed in them are automatically aligned within. |
Again, these are called "controls" in Flex. | |
Henrik 5-May-2009 [3944x3] | And the IP field is built of 4 numeric fields. The CONTENT facet would contain that description in the style: content: [ numeric-field options [range: [0 255]] numeric-field options [range: [0 255]] numeric-field options [range: [0 255]] numeric-field options [range: [0 255]] ] |
Layout and styles in the R3 GUI are two very separate issues. That's a very nice thing, since I can build some styles, even though the layout engine is currently broken. | |
an Hbox and Vbox equivalent would be: stylize [ hbox: group [ facets: [ columns: 0 ] ] vbox: group [ facets: [ columns: 1 ] ] ] | |
Oldes 5-May-2009 [3947] | Flex is just a really ugly mix of XML, ActionScript and hardcoded SWF components. One thing is, that you can create forms quickly (with the Flex Builder IDE?) and another to create own complete application which does something more than submits data to java server. |
Maxim 5-May-2009 [3948] | any language that uses XML as its interface should not have the right to be called a language. |
Pekr 5-May-2009 [3949] | Henrik - what is this ip-field? I don't understand it a bit. Why should it be build based upon multiple separate styles? This seems overengineered to me, and not necessary. I would rather like to see simple field with some mask dialect. With your example - with 4 separate fields, how do you guarantee me, that my keyboard navigation (Arrows, hilighting) still works across 4 fields, as if it was just one field? Anything else is not acceptable ... |
[unknown: 5] 5-May-2009 [3950] | But see that isn't very intuitive to me Henrik. Hbox and Vbox are names that give an indication of what they are going to achieve. columns: 0 or 1 isn't intuitive. |
Pekr 5-May-2009 [3951x2] | We should not use containers where really not needed. I want resizable (or not) split window (that is the most important style - you can find it even here on altme), maybe general scrollable panel, but other than that? |
Paul - what is not intuitive? Just define those two so easily as henrik showed in your stylesheet and since that time you only use their names, no? :-) | |
Henrik 5-May-2009 [3953] | Paul, the point is that you don't see that as a casual user. You just use hbox and vbox. |
[unknown: 5] 5-May-2009 [3954] | Maxim, you don't have to use XML at all. You can simply code everything in AS3 and then compile if you like. |
Henrik 5-May-2009 [3955x2] | (although we would probably just call them h-group and v-group). |
Pekr: "I don't understand it a bit. Why should it be build based upon multiple separate styles? This seems overengineered to me, and not necessary" Once you try building IP fields or any other field that is a bit more advanced for a basic field, you really will want this. :-) | |
[unknown: 5] 5-May-2009 [3957] | Correct, Pekr. |
Pekr 5-May-2009 [3958] | Henrik - I think that actually very little number of devs here played or looked into new VID and its architecture. It is completly different by its capabilities to R2, so I think that most important task is going to be - define basic set of styles, so that ppl don't complain that Flash/Flex or some other tool do have this or that widget, and second - provide some nice default skin, maybe even replica of Flash UI, so that ppl actually will think that there is some new Flash related product, which does it so easily :-) |
[unknown: 5] 5-May-2009 [3959] | Henrik, I like Horizontal and Vertical even better. |
Henrik 5-May-2009 [3960x2] | how do you guarantee me, that my keyboard navigation (Arrows, hilighting) still works across 4 fields, as if it was just one field? VID takes care of that. That's another important aspect: Keyboard navigation is also something you should have to mess with. |
Paul, whatever name you want. :-) | |
[unknown: 5] 5-May-2009 [3962] | Yes. but that needs to be the mindset going into that. There needs to be goals - not just development. |
Henrik 5-May-2009 [3963] | oops... keyboard navigation is also something you _shouldn't_ have to mess with. |
[unknown: 5] 5-May-2009 [3964] | If REBOL can't offer something NEW or something faster then it loses. |
Pekr 5-May-2009 [3965] | Henrik - as for fields, I still think that some kind of 'mask dialect would be better aproach, but we will see :-) I used it with Visual Objects (Clipper), where you have something like reg-exp, which defined allowed chars, skipped chars (dots in IP field, or parens for phone fields), etc. |
Henrik 5-May-2009 [3966] | Paul, the thing is: It takes about 3-4 minutes to implement those hbox/vbox styles. It's not a showstopper that the styles you may be looking for aren't there. |
Oldes 5-May-2009 [3967] | I think you should change a room.. it's far to be a Tech News discussion:) |
Pekr 5-May-2009 [3968x2] | Paul - you should reverse it. We do develop in REBOL. If Flash/Flex can't offer something new or faster, then it looses. Now it is upon you to show me, that you do your app faster in Flash/Flex than in R3, once architecture is finished. |
Henrik - exactly. I would be very curious, what would general developer of Flash/Flex do, if he would like to code new widget/control himself (define new class). So - Paul - do you know only how to use new or derived widgets, or do you also know, how to easily (or not so easily) extend Flash/Flex widgetset? | |
[unknown: 5] 5-May-2009 [3970] | I created a FLEX group to move discussion to. |
Maxim 5-May-2009 [3971] | henrik, I agree with paul that (Me... agreeing with paul, wtf !?!?? ;-) row [ ] and column [ ] styles MUST be part of the default style sheet, other wise every application will be using them but with different names.... its like if you said, the button style is there but it doesn't have a name. |
Pekr 5-May-2009 [3972x2] | it has a name |
each style is named, always was ... row vs columns - not sure ... | |
Henrik 5-May-2009 [3974] | Maxim, I can add them and see how much sense they make. Takes a couple of minutes. |
Maxim 5-May-2009 [3975x3] | what I'm saying is that if difference between toggle button and button is just an attribute change, the 'toggle style should still be in the stylesheet... other skins/stylesheets might use a completely different internal, but since toggle has been defined globaly, people will be using the name toggle in their apps. |
for me VID offers just about the same featureset/mindsel as GLayout already gives me, and coding GLayout without using row/column (whatever you decide to call it h-group v-group) doesn't make sense. | |
(VID 3) | |
Henrik 5-May-2009 [3978] | (this is a fun discussion. it takes much longer to discuss than it takes to fix. :-)) |
Maxim 5-May-2009 [3979x2] | scanning code with row/column it quite explicit, you immediately *see* the layout. using grid with an attribute, doesn't give you that instant verbosity. |
:-) | |
Henrik 5-May-2009 [3981] | I agree. |
Pekr 5-May-2009 [3982] | But we use grid, no? |
Maxim 5-May-2009 [3983] | wow an american, a canadian and a european ... all agreeing.... damn, I think we've reached a MILESTONE in R3 ;-D |
Henrik 5-May-2009 [3984] | Pekr, well, it's called GROUP and all that changes it is the number of columns you want and the number of faces in it. |
Maxim 5-May-2009 [3985x2] | pekr yes build using group by default, but I might create an alternative object for that stylename, and your layout still works using it.. |
and I don't have to supply ALL grid-like functionality. | |
older newer | first last |