• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ausPPC
    Posts: 543 from 2007/8/6
    From: Pending...
    Recently I've been studying various C sources that create MUI interfaces and writing my own experimental programs to better understand MUI. I do like that MUI takes a lot of the burden of laying out interfaces away from the programmer and that it makes such pretty output and certain aspects of object oriented programming but I don't like having to adopt an entirely object oriented programming style for the sake of an interface. I prefer the intuition style event loop and to avoid the use of hooks. Can MUI be coerced into simply providing information about user events? Also, do Intuiticks still exist within MUI? Is a MUI window object pointer the same as a window handle? If not, can I obtain a window handle from a MUI window object? Can I get Intuimessages from an MUI window containing MUI buttons / gadgets?

    btw What do the numbers following App mean? How is it decided what the number should be?

    void notifications(void)
    {
    DoMethod(Win, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, App, 2,
    MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);

    /* Notifications on action buttons */

    DoMethod(findobj(OBJ_BUTTON_FFT, App), MUIM_Notify, MUIA_Pressed, FALSE,
    App, 1, APPM_FastFourierTransform);

    DoMethod(findobj(OBJ_BUTTON_SOR, App), MUIM_Notify, MUIA_Pressed, FALSE,
    App, 1, APPM_SuccessiveOverRelaxation);

    DoMethod(findobj(OBJ_BUTTON_MTC, App), MUIM_Notify, MUIA_Pressed, FALSE,
    App, 1, APPM_MonteCarloPiCalculation);

    DoMethod(findobj(OBJ_BUTTON_SMM, App), MUIM_Notify, MUIA_Pressed, FALSE,
    App, 1, APPM_SparseMatricesMultiplication);

    DoMethod(findobj(OBJ_BUTTON_LUD, App), MUIM_Notify, MUIA_Pressed, FALSE,
    App, 1, APPM_LUMatrixDecomposition);

    DoMethod(findobj(OBJ_BUTTON_ALL, App), MUIM_Notify, MUIA_Pressed, FALSE,
    App, 1, APPM_AllBenchmarks);

    /* Notification on "Large Data" button. */

    DoMethod(findobj(OBJ_BUTTON_LGD, App), MUIM_Notify, MUIA_Selected, MUIV_EveryTime,
    App, 3, MUIM_Set, APPA_LargeData, MUIV_TriggerValue);
    }

    [ Edited by ausPPC 23.06.2013 - 06:03 ]
    PPC assembly ain't so bad... ;)
  • »22.06.13 - 19:24
    Profile Visit Website