|
From: Daan L. <daa...@xs...> - 2004-06-16 14:20:59
|
Hi Anders,
On Wed, 16 Jun 2004 15:06:21 +0200, Anders H=F6ckersten <ch...@dt...=
mers.se> wrote:
> Hi! I've been toying around a bit with wxHaskell lately and have run in=
to a problem. My application needs to be able to add elements to a Choice=
control. The elements are read from a HaskellDB-based database as a list.
>
> My question is this: When clicking my "add" button, how do I tell the C=
hoice control to re-read
> its list from source? I'm assuming I need to send it some event, but w=
hich one?
I think you can just use the "items" attribute to set the form of the cho=
ice
control. Something like:
c <- choice ...
...
set c [items :=3D ["hi", "there"]]
Furthermore, I think you need to use the "dynamic" attribute on the
layout of the choice control.
set f [layout :=3D .... dynamic (widget c) ... ]
I hope this helps,
All the best,
Daan.
>
> Anders
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKN=
D
> _______________________________________________
> wxhaskell-users mailing list
> wxh...@li...
> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
>
|