Order of the Butterfly
Posts: 315 from 2005/3/27
From: Poland, Zdzies...
How to notify Coloradjust Object properly to get proper response?
I have tried all available InputMode values already: RelVerify, Toggle, Immediate.
I set notification on Pressed attribute like this"
Code:
domethod(ca,[MUIM_Notify, MUIA_Pressed, MUI_TRUE, MUIV_Notify_Self,2,MUIM_CallHook,get_colHook])
The procedure installed as a hook looks like this:
Code:
DEF get_colHook:hook
PROC get_col()
get(ca,MUIA_Coloradjust_RGB,[col])
StringF(rgb,'zh[8]',col)
set(str_hex, MUIA_String_Contents, rgb)
set(str_dec, MUIA_String_Contents, rgb)
WriteF(rgb, 'dn')
ENDPROC
And inside the main() procedure:
.Code:
installhook(get_colHook, {get_col})To simplify things I made all variables global. And everything would be ok for me except the Coloradjust gadget response only when one clicks outside the triangle and outside the thick circle. When I click inside the triangle or onto the thick color ring the notification seems to not work.
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.