Bingo! Adding the /list-lay: none fixed it...

Here is problem with rebol...undocumented features.
This was a thing I assume many people would need to know but a search
produces nothing...

How do I probe the source again?

Thanks a lot gregg1

Alan Macleod

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
Gregg Irwin
Sent: Tuesday, December 11, 2007 4:25 PM
To: Alan
Subject: [REBOL] Re: Updating a drop list


Hi Alan,

A> I noticed that if I press the change button before using the drop-down it
A> will change but if I click to view the drop-list first I can not get it
to
A> update the change.

Aha! I can dupe that here. I obviously didn't drop it down first when
I tested it. If you probe the code for the style, you'll see that it
creates then reuses the list-lay sub-layout. That seems to be the
culprit.

form: layout [
  sel: drop-down 50 "A" "B" "C"
  btn "Change" [
      sel/list-data: [ "D" "E" "F" ]
      sel/list-lay: none
      show sel
  ]
]
inform form

-- Gregg

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to