-
1. Re: Wierd focus issue with Panelator window.
shachar carmi May 10, 2010 4:11 AM (in response to dheeraj_c)why yes.
set the PF_OutFlag_I_AM_OBSOLETE during global setup, and the effect will not appear in the effects list.
-
2. Re: Wierd focus issue with Panelator window.
dheeraj_c May 10, 2010 4:18 AM (in response to shachar carmi)Hi Shachar, I think you answered for hiding effect query.
This is about focus issue.
-
3. Re: Wierd focus issue with Panelator window.
sum_07 May 10, 2010 5:18 AM (in response to shachar carmi)Thank u so much shachar.
-
4. Re: Wierd focus issue with Panelator window.
shachar carmi May 10, 2010 7:53 AM (in response to sum_07)oh dear...
my old age is getting the better of me. (i'm only 33)
on the ambarressement scale of 1 to 10, i'd give this a 2.
i've had an 8 before.
now THAT was a moment i'd like to forget.
:-)
-
5. Re: Wierd focus issue with Panelator window.
shachar carmi May 10, 2010 8:23 AM (in response to dheeraj_c)dheeraj_c wrote:
Hi Shachar, I think you answered for hiding effect query.
This is about focus issue.
focus does seem to be an issue for me...
anyways,
have you by any chance used RunApplicationEventLoop() to activate your component?
just checking.
in any case you could use kEventControlGetFocusPart and kEventControlSetFocusPart,
to force the focus back to your main contorl.
what more can you tell me about this control and the way you set it up?
maybe that'll spark some ideas.
-
6. Re: Wierd focus issue with Panelator window.
dheeraj_c May 11, 2010 12:21 AM (in response to shachar carmi)Ha ha. Thank you for the reply Shachar.
No I have not used RunApplicationEventLoop() for activation.
If I use kEventControlGetFocusPart and kEventControlSetFocusPart I will get callback only if the window gets closed. In this case if I click on my custom component and then try to close the Panelator window, the window stays there and does not close.
This is how I'm doing it :
I'm creating a view using HIObjectCreate call and then I'm adding it to the AE window handle using :
HIViewAddSubview (viewToAttachTo, viewRef);
HIViewSetVisible (viewRef, true);Also, Is there any callback when the Panelator window close button is clicked? If the close is successful then I get callbacks for kEventControlGetFocusPart and kEventControlSetFocusPart but if the window does not get closed then I do not receive any callbacks.
Thanks & Regards,
Dheeraj.


