Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: binding object content to layout items ...

From: petr:krenzelok:trz:cz at: 24-May-2001 15:14

GS Jones wrote:
> > There is also one other issue - there > > are items we would like to represent by different than "field" item on > > the screen - e.g. "rotary", but how to do it? > > > > > > inet-obj: context [ > > name: "" > > IP: "172.25." > > email-type: ["POP3" "Lotus Notes"] > > ] > > > > view layout [rotary inet-obj/email-type .... will not work, as we > don't > > expect block here, but two separate valuues ... > > Try: > view layout [rotary data inet-obj/email-type] >
that's what I wrote above :-) It doesn't know, because in VID, you have to provide arguments to 'rotary as space delimited strings ...,e.g. rotary "A" "B" but: rotary ["A" "B"] <--- will not work ...
> > Is there also any easy way of how to auto-layout object to window? > > I am sorry, Petr, I am not sure what you mean by this. Can you explain > it in different words? >
Well, I had it almost done one day during some earlier beta View stage. I mean - you take object (pairs of word-name + word-value) and will create layout in such way, that word-name will serve you as description for field, and word-value will be put into field ... e.g.: obj: context [ Name: "Petr Krenzelok" Email: [petr--krenzelok--trz--cz] ] should result in: lo: layout [ across text "Name:" name: field obj/name text "Email:" email: field obj/email ] ... or something like that .. Anyway - thanks :-) Cheers, -pekr-