ActiveX control resize problem

R

russell.thamm

Hi,

I am having problems with PowerPoint resizing ActiveX controls.

I have two controls on a slide. When I "show the slide", the controls
are enlarged (but not in proportion to the slide). So one control
covers the other and often one or both extend past the slide bounds.

Even worse, when the slide show ends, the controls do not return to the
correct size. On each successive showing, the controls get bigger and
bigger.

I can use Basic code to set the controls to the correct size and
position on the slide, but am unsure on where to put the code. The code
needs to be executed when the slide is shown. Neither of the two
automatically generated functions appear to be the place for putting
the code.
Is there an equivalent to OnSlideInit() that I can hook into?

I've seen suggestions that ActiveX controls should be placed in a User
Form rather than a slide, but when I try this PowerPoint just crashes.

I'd be grateful for any pointers

cheers
Russell Thamm
 
S

Steve Rindsberg

What specific ActiveX control are you using? If it's crashing PPT when placed
on a user form, I'd be just a wee bit suspicious of it.

This explains how you can work with events in PPT:

Make PPT respond to events
http://www.pptfaq.com/FAQ00004.htm
 
S

Steve Rindsberg

I am using TeeChart controls from Steema.

I just had a quick look at their site and didn't see any specific mention of
support for Office/VBA in the info about their ActiveX control.

There are some differences between VB and VBA; not all controls are compatible
with both. I'd check with Steema to find out whether theirs is supported in
VBA.
 
N

Narcís Calvet

Hi Russell,

There is an incompatibility with TeeChart sizing and Powerpoint that makes
sizing difficult to manage on a PPT page. The cleanest solution is to
compile TeeChart into a UserControl and place the UserControl in the page.

Steps to take:

1. Make VB UserControl project.
2. Compile and register project (can be registered via last option in import
control list in Powerpoint if preferrable)
3. Make Powerpoint example using the UserControl. The usercontrol can be
found in the list of ActiveX controls after it is registered

The example project included will work to show all the steps.

Please note that if you make changes to the UserControl after having used it
in Powerpoint you should delete the temporary file (.exd) created by
Powerpoint in the following folder:

C:\Documents and Settings\Administrator\Local Settings\Temp\PPTxx.x


--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."
 
G

Guest

There is an incompatibility with TeeChart sizing and Powerpoint that makes
sizing difficult to manage on a PPT page. The cleanest solution is to
compile TeeChart into a UserControl and place the UserControl in the page.

Steps to take:

1. Make VB UserControl project.
2. Compile and register project (can be registered via last option in import
control list in Powerpoint if preferrable)
3. Make Powerpoint example using the UserControl. The usercontrol can be
found in the list of ActiveX controls after it is registered

The example project included will work to show all the steps.

Please note that if you make changes to the UserControl after having used it
in Powerpoint you should delete the temporary file (.exd) created by
Powerpoint in the following folder:

C:\Documents and Settings\Administrator\Local Settings\Temp\PPTxx.x


--
Best Regards,

Narcis Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."

I don't think it's a problem with TeeChart, some clients of mine are having
the exact same problem with my QTVRControlX control (can download it from
http://qt4all.onestop.net). It seems to be caused by PowerPoint2003 (and
maybe not all installations of it???). When they navigate back-forward from
slide to slide the QTVRControlX controls placed in there grow bigger and
bigger and after exiting slideshow mode they've stayed bigger!
 
G

Guest

There is an incompatibility with TeeChart sizing and Powerpoint that makes
sizing difficult to manage on a PPT page. The cleanest solution is to
compile TeeChart into a UserControl and place the UserControl in the page.

Steps to take:

1. Make VB UserControl project.
2. Compile and register project (can be registered via last option in import
control list in Powerpoint if preferrable)
3. Make Powerpoint example using the UserControl. The usercontrol can be
found in the list of ActiveX controls after it is registered

The example project included will work to show all the steps.

Please note that if you make changes to the UserControl after having used it
in Powerpoint you should delete the temporary file (.exd) created by
Powerpoint in the following folder:

C:\Documents and Settings\Administrator\Local Settings\Temp\PPTxx.x

this thread is at
http://www.teechart.net/support/viewtopic.php?t=5269&highlight=powerpoint

1) the solution suggested isn't that good, since VB UserControl wizard
doesn't have some facility to import another ActiveX control and wrap all its
properties/methods/events to expose them at the new control. Also maybe VB
runtime libraries would be needed at the client machine in this case

the .NET wizards don't have such functionality either, although when you add
"Implements xxInterface", the editor makes skeleton code that you can then
fill-in which is nice - in that case though would need to have .net on the
client machine

2) The thing is that this doesn't happen with TeeChart only (but with
ActiveX controls made with Delphi for example) when using them in
PowerPoint2003. Wonder what has changed compared to older PP versions and why
this resize is happening.

Sounds like a PowerPoint bug to me, although I've been told by customers
that for example ParallelGraphics VRML player Cortona ActiveX control doesn't
have this issue when used in PP slides
 
G

Guest

AREN'T MANAGED NEWSGROUPS SUPPOSED TO BE MONITORED BY MS? WHERE's THEIR REPLY
ON THIS ISSUE AND THE INFO I ADDED ON IT?
 
S

Steve Rindsberg

George Birbilis said:
AREN'T MANAGED NEWSGROUPS SUPPOSED TO BE MONITORED BY MS? WHERE's THEIR REPLY
ON THIS ISSUE AND THE INFO I ADDED ON IT?

As far as I know, this isn't a managed newsgroup.
 
S

Steve Rindsberg

strange, I got here from
http://msdn.microsoft.com/newsgroups/managed
by searching for "PowerPoint ActiveX size" or something like that

Do you know if there is any PowerPoint or Office managed newsgroup then and
where I can find it?

MSLeftHand and MSRightHand are having a spat and not talking to one another, I
guess.

From the same page, there's a link to this Quick List of Managed Groups:

http://msdn2.microsoft.com/en-us/subscriptions/aa974230.aspx

where the word PowerPoint doesn't even appear.

But here's a list of the managed groups that deal with general office dev:

http://msdn2.microsoft.com/en-us/subscriptions/aa974230.aspx#OFFICE

And by the way, I don't mean to suggest that there's anything wrong with
posting your question here; it's unfortunate that nobody had an answer for you
this time, but please do post here as well as in the managed groups if you
like.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top