From: Daan L. <daa...@xs...> - 2004-06-24 15:04:44
|
On Thu, 24 Jun 2004 14:46:35 +0200, Sander Evers <sa...@cs...> 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? > > --Sander 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, Daan. > > > ------------------------------------------------------- > 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 www.blackhat.com > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |