Hi José,
I did it like this:
main = start gui
gui = do
tv <- treeCtrl sw [style :~ (wxTR_EDIT_LABELS .+.)]
set tv [ on treeEvent := handleTreeEvent tv ]
handleTreeEvent :: TreeCtrl () -> EventTree -> IO ()
handleTreeEvent tv event =
case event of
TreeEndLabelEdit treeItem newLabel cancelled veto | not cancelled ->
... -- process event
_ -> propagateEvent
Best regards,
Bernd Holzmüller
José Miguel Vilaça schrieb:
>
> Hi
>
>
>
> Could someone please point me how can I let my labels in a tree
> control to be editable and how can I get the old and new labels to
> update my data?
>
> I looked to FileBrowse example of wxHaskell and I learn lots of things
> from there but not this one. I intended to search on the wxHaskell
> mailing list but my internet connection stays limited during all day
> due to some technical problems in the university.
>
>
>
> I would appreciate some help.
>
>
>
> Best regards
>
>
>
> Miguel Vilaça
>
|