From: Daan L. <daa...@xs...> - 2004-05-17 12:50:55
|
On Sun, 16 May 2004 12:32:31 -0500, <wxh...@al...> wrote: > Hello, > > I'm attempting to do a simple tree with 2 nodes. However, the following > is giving me a blank window with 2 tiny white tabs in the upper-left > corner. Anyone have an idea what I'm missing? I haven't tried it myself, but maybe you need to expand the root node: treeCtrlExpand tree top If that doesn't work, maybe you should download the sources of GeBoB (see application screenshots for a link). He uses a tree control for the "brain" component and maybe it gives some more info on using tree controls. All the best, Daan. > > Thanks! > > module Main where > > import Graphics.UI.WX > import Graphics.UI.WXCore > > imageNone :: Int > imageNone = (-1) > > main :: IO() > main = start test > > test :: IO() > test = do f <- frame [text := "Hello!"] > tree <- treeCtrl f [] > top <- treeCtrlAddRoot tree "Root" imageNone imageNone > objectNull > item <- treeCtrlAppendItem tree top "Child" imageNone imageNone > objectNull > set f [layout := widget tree, clientSize := sz 500 300] > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |