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

[REBOL] Re: Vid / Subpanels / Dirty?

From: gjones05:mail:orion at: 31-May-2001 8:39

From: <[Sanghabum--aol--com]>
> 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,
Hi, Colin, We normally try not to talk "dirty?" on the list. ;-) Here is an extension that more graphically show some of what is going on: update-text: does [ mytext1/text: rejoin [mydata1/text " " mydata1/dirty?] mytext2/text: rejoin [mydata2/text " " mydata2/dirty?] show [mytext1 mytext2] ] lo: layout [ mydata1: field "Field 1" [update-text] mytext1: txt 100 mydata2: field "Field 2" [update-text] mytext2: txt 100 do [update-text] ] view lo So, it appears as though your assumption about dirty? changing to true on a change is correct (did that make sense??). You will notice that pressing return and tab leave the dirty? flag in a different state in the other faces than when you use the mouse to click. Hope this illucidates the dirty? -talk phenomenon. --Scott Jones