World: r3wp
[Tech News] Interesting technology
older newer | first last |
Henrik 5-May-2009 [3925] | Carl was really clever here: Each addition to the GUI system has so far only been about 5-10 lines of code in one location. No redesign was required at any point. |
[unknown: 5] 5-May-2009 [3926x2] | Components are usually a class with methods that can be invoked for handling event processing. |
Henrik, I would definately recommend you get your hands on Flex and try it out and see some of the advantages it brings. It will change a great deal of how you look at REBOL. | |
Henrik 5-May-2009 [3928] | Ah, those are called container styles here. They can be built a bit like LEGO bricks very easily. See this shot: http://rebol.hmkdesign.dk/files/r3/gui/142.png Design and naming is not finalized, however. |
Chris 5-May-2009 [3929] | Paul: I didn't necessarily say VID was 3rd rate either, just that the experience is not all it could be. Obviously I see merit in View if I take time to offer suggestions... |
[unknown: 5] 5-May-2009 [3930] | Didn't mean to imply you did Chris. |
Chris 5-May-2009 [3931] | NP |
[unknown: 5] 5-May-2009 [3932] | Yes, Henrik, a style in REBOL is like a component in Flex. |
Henrik 5-May-2009 [3933] | I hope the container styles make it into the final design. This will make it very simple to make smart fields. |
Chris 5-May-2009 [3934] | Petr: D-D-I - all things that struck me about Air that I've missed in View. Integration is the feeling that the application fits. |
Henrik 5-May-2009 [3935] | Note that container styles are not available publicly yet. |
[unknown: 5] 5-May-2009 [3936x2] | A container style implies to me something like the canvas component in Flex. I'm not sure what a container style is. |
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. |
older newer | first last |