Hi, mockey_a wrote: > > > Hi. > > --- In [email protected] <mailto:power-pro%40yahoogroups.com>, > 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.
Yes, after changing config using PPro config dialog. On a different note: why do you prefer to create bars from scripts? What are the advantages? And when do you perform create? On startup? >> 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...) That's exactly what I'd like to avoid :) I'd like to set background, size and reset the date before moving it to mouse cursor and showing it... I do have a workaround in mind, though. I'd also like to set its fonts, but calling something like: objCalendar.Font.Name = "Verdana" successfully hangs PPro :) Thanks for your help, -- Marko ICQ: 5990814 I'm not under the alkafluence of inkahol that some thinkle peep I am. It's just the drunker I sit here the longer I get.
