How to trigger LMB outside a window
Posted: Sat Aug 31, 2013 12:59 am
Hi, just almost finished docky support in Mixer, my only problem is when I show/open DockWindow I quit such window with RMB, ok no problem, but want to quit such window when I click LMB outside the DockWindow too.
Is it possible to trigger such LMB_outside_DockWindow?
Is there some kind/sort of signalbit/mask to add to Wait()?
Creating a input.device MsgPort and "point" to LMB?
TIA
Is it possible to trigger such LMB_outside_DockWindow?
Is there some kind/sort of signalbit/mask to add to Wait()?
Creating a input.device MsgPort and "point" to LMB?
Code: Select all
..
OpenDockWindow(Props[CurrentProp].MasterFaderNr);
while( !ProcessDockWindow(DockWindow) )
{
Wait( (1L << (DockWindow->UserPort->mp_SigBit)) );
}
FreeDockWindow();
..
ULONG ProcessDockWindow(struct Window *Win)
{
struct IntuiMessage *my_message;
ULONG closeme = 0, MsgClass = 0;
while( (my_message = (struct IntuiMessage *)GT_GetIMsg(Win->UserPort)) )
{
MsgClass = my_message->Class;
code = my_message->Code;
GT_ReplyIMsg(my_message);
switch(MsgClass)
{
..
TIA