struct Tune {
STRPTR tu_Name;
STRPTR tu_BitRate;
STRPTR tu_Codec;
STRPTR tu_Country;
STRPTR tu_Description;
};
HOOKPROTONH(DisplayCode, VOID, char **array, struct Tune *tune) {
if (tune != NULL) {
*array++ = tune->tu_Name;
*array++ = tune->tu_Codec;
*array++ = tune->tu_BitRate;
*array = tune->tu_Country;
} else {
// Column headers
*array++ = "\033c\033uName";
*array++ = "\033c\033uCodec";
*array++ = "\033c\033uBitRate";
*array = "\033c\033uCountry";
}
}
MakeStaticHook(DisplayHook, DisplayCode);MUIA_List_Format, "BAR MIW=70 P=\033l, BAR MIW=10 P=\033c, BAR MIW=10 P=\033c, BAR MIW=10 " "P=\033c", MUIA_List_DisplayHook, &DisplayHook,
tune1.tu_Name = "Chillout Radio"; tune1.tu_BitRate = "128bits"; tune1.tu_Codec = "MP3"; tune1.tu_Country = "UK - United Kingdom"; tune1.tu_Description = "Chillout Radio description"; DoMethod(objApp->LSV_Tune_List, MUIM_List_Clear); set(objApp->LSV_Tune_List, MUIA_List_Quiet, TRUE); DoMethod(objApp->LSV_Tune_List, MUIM_List_InsertSingle, &tune1, MUIV_List_Insert_Bottom);

@sand, post #1
@michal_zukowski, post #5