I've noticed that a checkBox only shows its label (text attribute, which
I directly set using the checkBox creation function) if you apply
"dynamic" to its layout. This is probably a bug, or not?
On Thu, 24 Jun 2004 14:46:35 +0200, Sander Evers <sandr@...> wrote:
> I've noticed that a checkBox only shows its label (text attribute, which I directly set using the checkBox creation function) if you apply "dynamic" to its layout. This is probably a bug, or not?
Funny, I was just discussing this with Arjan. I don't know yet if this is
a bug or just not well documented behaviour. I'll have to think about it a bit more.
However, you need dynamic as you change the "text" later on, which means that
the layout needs to change... In wxWidgets, you normally give the text at
creation time, and there the "dynamic" is not needed. I guess I could default
to dynamic for checkboxes (and radioboxes), or I could make the text attribute
reflective and set it at creation time when possible.
(but the latest solution means that:
c <- checkBox [text := "hi"]
does no longer equal:
c <- checkBox ; set c [text := "hi"]
All the best,
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit http://www.blackhat.com
> wxhaskell-users mailing list
Get latest updates about Open Source Projects, Conferences and News.