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

[REBOL] Re: Problem updating a pane before being displayed

From: jvargas:whywire at: 6-May-2003 10:28

The problem happens only when displaying for the first time. When displaying layout "l1" with pane "one" the vlbl2 and vfld2 faces should be hidden. I only get vlbl2 hidden and vfld2 showing. This behavior is corrected once a refresh event is generated ie. by playing with vmenu. Any how I found a solution, but I am not sure if this is the best way to solve it. Instead of: update-one: does [ either equal? vmenu/text "opt1" [ vlbl1/text: "lbl1" vfld1/text: "text for fld1" hide [vlbl2 vfld2] show [vlbl1 vfld1] ][ vlbl2/text: "lbl2" vfld2/text: "text for fld2" hide [vlbl1 vfld1] show [vlbl2 vfld2] ] ] I am using update-one: does [ either equal? vmenu/text "opt1" [ vlbl1/text: "lbl1" vfld1/text: "text for fld1" vlbl2/show?: false vfld2/show?: false vlbl1/show?: true vfld1/show?: true ][ vlbl2/text: "lbl2" vfld2/text: "text for fld2" vlbl2/show?: true vfld2/show?: true vlbl1/show?: false vfld1/show?: false ] ] The latter one works all the time even when displaying l1 for the first time. Is there a bug with the show and hide functions? Thanks, Jaime PS. I am using REBOL/View 1.2.8.3.1 On Monday, May 5, 2003, at 08:48 PM, Alan Crandall wrote: