Absolutely. Here is an exerpt from MySteel.ma, which is an extension of steel.ma. This code comes from an option button hook function. When the option button is changed, the listbox is cleared, the stringlist repopulated, then the listbox refreshed.
/* --- set global variable to list box raw item header --- */ diP = mdlDialog_itemGetByTypeAndId (dimP->db, RTYPE_ListBox, LISTBOXID_SectionList, 0); sectionRiP = diP->rawItemP;
/* --- get pointer to string list to free --- */ stringListP = mdlDialog_listBoxGetStrListP (sectionRiP); if (stringListP) { mdlStringList_destroy (stringListP); stringListP = NULL; }
/* --- repopulate master stringlist --- */
stringListP = mdlStringList_create (0, SECTION_INFO_FIELDS); steel_loadSectionStringList (stringListP);
/* --- set list box to display string list for sections --- */ mdlDialog_listBoxSetStrListP (sectionRiP, stringListP, SECTION_COLUMNS);
mdlDialog_listBoxSetTopRowRedraw (sectionRiP, 0, TRUE); mdlDialog_listBoxSelectCells (sectionRiP, 0, 0, 0, 0, TRUE, TRUE);
Hope this helps...