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

[REBOL] Vid / Subpanels / Dirty?

From: sanghabum:aol at: 31-May-2001 8:43

Can someone help me out here? The Dirty? flag doesn't seem to get set when using subpanels. Take the script at the end of this email, for example, which is the Rebol How-to on Subpanels with these two lines changed to name fields mydata1: field "Field 1" mydata2: field "Field 2" Fire up the code, overtype the text in Field1 and Field2, close the window (Not with the Quit button!), and then check the values: mydata1/text - should be what you changed it to; but mydata1/dirty? - always comes up as None for me. Am I (as I often do) missing the point? I've tried researching Dirty? but there's not a single script in the library that uses it. Thanks for any clarification. I'm on View 1.2 under Win 98, --Colin =====Subpanel script===== REBOL [Title: "Subpanels"] main: layout [ vh2 "Subpanel Examples" guide pad 20 button "Panel 1" [panels/pane: panel1 show panels] button "Panel 2" [panels/pane: panel2 show panels] button "Quit" [Quit] return box 2x140 maroon return panels: box 220x140 ] panel1: layout [ origin 8x8 h2 "Panel 1" mydata1: field "Field 1" mydata2: field "Field 2" button "The Answer" [alert "I know nothing."] ] panel2: layout [ origin 8x8 h2 "Panel 2" across txt "X:" slider 150x16 return txt "Y:" slider 150x16 return check [panel2/color: maroon show panel2] txt "Don't click this" return check [panel2/color: silver show panel2] txt "Click this" return ] panel1/offset: 0x0 panel2/offset: 0x0 panels/pane: panel1 view main ===== script end =====