Hi.

--- In [email protected], Marko Bozikovic <[EMAIL PROTECTED]> wrote:
> However, it seems that COM controls are recreated each time 
PowerPro
> configuration changes.

You mean configuration changed from the PPro Config-dialog? Hmm, I 
never tried this. Simply because I don't use the Config-dialog 
anymore. My bars are created mainly from script. Much better IMO...
Anyway, highly probable that controls will be recreated on config-
change.

> However, when the script is run, two things happen:
> - com.get_object shows the bar with the control
> - shown control is back to its default settings

Try to run the script after the bar is shown. I made the experience 
that com.get_object needs a _visible_ bar to get a proper 
ctrlHandle. I always have to show a bar before I can use get_object 
(bar created from script anyhow...)

> There's another interesting thing: if I change control id 
from 'cal' to
> something that doesn't exist on the bar (e.g. 'call'), get_object 
will fail.
> After that even if I return id to 'cal', get_object will still 
fail until I
> restart PPro.

Yes, I had that, too. COM-failures make PPro hang pretty easily. And 
com.unload doesn't seem to help...

Mockey


Reply via email to