LibDoGadgetMethod() in reaction.lib just calls intuition.library/DoGadgetMethod() in reality on systems greater than v39. Since you are programming for Reaction, you should have no problem using the intuition.library version.
If it keeps giving you problems, you may as well save yourself the hassle and use DoGadgetMethod().
I used DoGadgetMethod() in my own Reaction programs with no problems.
Can you tell me how to use LBM_SORT and LBM_REMNODE with DoGadgetMethod() ? I'm having trouble working it out..
DoGadgetMethod(listbrowser2, win, NULL, LBM_SORT, 1, TAG_DONE); Doesnt seem to work.. compiles fine but it doesnt sort my list..
-Edit- I've worked out LBM_REMNODE, but I'm not sure what they mean in LBM_SORT...
(pasted from the listbrowser header file)
struct lbSort
{
ULONG MethodID; /* LBM_SORT */
struct GadgetInfo *lbs_GInfo; /* to provide rendering info */
ULONG lbs_Column; /* Column to sort by */
ULONG lbs_Reverse; /* Reverse sort */
struct Hook *lbs_CompareHook; /* Optional hook to compare items */
};
What do I put for Column? listbrowser2 has only got
one column.. so '0' should sort that column? i.e.
DoGadgetMethod(listbrowser2, win, NULL, LBM_SORT, listbrowser2, 0, TAG_DONE); .. ?