I would like to retrieve the GadgetID of the gadget where I use Right Mouse Button or where I drag an external object on it. Is it possible ?
For now, it works for me in Left mouse button release.
- case WMHI_GADGETUP:
- if ( ((result & WMHI_GADGETMASK) - LAST_NUM) < nb_program)
- printf("GadgetID = %d \n",(result & WMHI_GADGETMASK) - LAST_NUM) ;
but no in "case WMHI_MOUSEBUTTONS:" or in WINDOW_AppMsgHook hook.
For these 2 cases, I have to calculate the coordinate of the targeted object with Window->MouseX or msg->am_MouseX and to determine the gadgetID on my window by calculating the width of the existing gadgets... Not very nice.
Is it a easier solution ?
Thank you by advance