Home away from home
Joined: 2006/11/30 18:43 Last Login
: Yesterday 22:43
From Norway
Group:
Registered Users
|
@Coder Here is how i add text to my listbrowser. I have 3 rows. But always deatach the list from the listbrowser before altering it. And then reattach it afterwards. Hope it helps.
SetGadgetAttrs(gadgets[GID_LISTVIEW], windows[WID_MAIN], NULL,LISTBROWSER_Labels, ~0,TAG_DONE); node = (struct Node *)AllocListBrowserNode(3, LBNA_Column, 0, LBNCA_CopyText, TRUE, LBNCA_Text,"This is row 1", LBNA_Column, 1, LBNCA_CopyText, TRUE, LBNCA_Text,"This is row 2", LBNA_Column, 2, LBNCA_CopyText, TRUE, LBNCA_Text,"This is row 3", TAG_DONE); AddTail( &liste, node); RefreshSetGadgetAttrs(gadgets[GID_LISTVIEW], windows[WID_MAIN], NULL,LISTBROWSER_Labels,&liste ,TAG_DONE);
|