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

[REBOL] Re: Injecting data into VID?

From: joel:neely:fedex at: 27-Apr-2001 9:03

One bit of clarification (mea culpa...) Joel Neely wrote:
...
> 8<-------------------- > test1: make object! [ > firstNames: ["John" "Jane" "Bob"] > lastNames: ["Smith" "Doe" "Doaks"] > ui: layout [ > across > vh2 "Names:" > return > firstName: choice "John" "Jane" "Bob" [sayName] > lastName: choice "Smith" "Doe" "Doaks" [sayName] > return > fullName: text " " 200 > return > button "Close" [unview] > ] > sayName: function [] [theName] [ > fullName/text: theName: join firstName/text [ > " " lastName/text > ] > print mold theName > show fullName > ] > run: function [][][ > sayName > view center-face ui > ] > ] > > test1/run > 8<-------------------- >
If I use 8<-------------------- ; ... firstName: choice texts firstNames [sayName] lastName: choice texts lastNames [sayName] ; ... 8<-------------------- then the choice buttons get populated from the blocks, but when the window first appears, the choice buttons are unlabeled and the full name text is none none This implies to me that using 'texts is somehow different from supplying the literal sequence of strings in-line. (Is this a "bug" or a "feature"? ;-) I'd be content, however, if I knew what code to place before sayName view center-face ui to force each choice to set itself to the first alternative. -jn-