• Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 315 from 2005/3/27
    From: Poland, Zdzies...
    Quote:

    igracki wrote:
    Why don't you create a notify on MUIA_ColorAdjust_RGB?

    Code:

    domethod(ca, [MUIM_Notify, MUIA_ColorAdjust_RGB, MUIV_EveryTime, MUIV_Notify_Self, 2, MUIM_CallHook, get_colHook])



    Thanks. Now it works with the whole gadget :-)

    Quote:

    igracki wrote:
    Also better use subclassing, then you can use own methods instead of hooks.


    But hooks are better than putting all the handling stuff into MUI's main loop in SELECT CASE ENDSELECT block, and that was the way I did in my very first E/MUI programming attempts :-)

    There's still something wrong in my code. Now the hook is executed each time the color changes, but it allways returns the same color value.
    And I forgot to mention now I use ECX to make use of your Lamp module.
    Mac mini G4@1,5GHz silent upgrade + Xerox Phaser 3140 + EPSON Perfection 1240U
    Commodore C64C + 2 x 1541II + Datasette + SD-Box

    I really miss draggable screens... do you? I guess I'm in the minority unfortunately.
  • »15.01.17 - 20:26
    Profile