PowerPoint 2007 Add-in...Capture Size Change of PowerPoint Window

G

Guest

Hi,

I am working on a project which requires me to create a Managed Add-in to
work with PowerPoint 2007.

I have created a WinForm to hold the buttons required for Add-in as the
Add-in requires to have a Floating Toolbar.

Now here in PowerPoint we don't have any event as WindowSize like we have in
Word.

I want to change the location of the Floating Toolbar(WinForm) if the
PowerPoint Window is Resized or Moved and Hide it if PP Window is Minimized.

I am using VS 2005, .Net 3.0, Office 2007.

Can any one please give me any solution for the same..?

Thanks in Advance...


--
D.C

....on the deadline, project should be buried where it belongs...

....can be done...
 
S

Steve Rindsberg

Hi,

I am working on a project which requires me to create a Managed Add-in to
work with PowerPoint 2007.

I have created a WinForm to hold the buttons required for Add-in as the
Add-in requires to have a Floating Toolbar.

Now here in PowerPoint we don't have any event as WindowSize like we have in
Word.

I want to change the location of the Floating Toolbar(WinForm) if the
PowerPoint Window is Resized or Moved and Hide it if PP Window is Minimized.

WindowActivate and WindowDeactivate wouldn't be quite the same but would
probably be the place to start.
 
A

Austin Myers

How about using,

Returns or sets the state of the specified window. Read/write PpWindowState.

PpWindowState can be one of these PpWindowState constants.
ppWindowMaximized
ppWindowMinimized
ppWindowNormal

expression.WindowState

expression Required. An expression that returns one of the objects in the
Applies To list.



Austin Myers
MS PowerPoint MVP Team

Provider of PFCMedia, PFCPro, PFCExpress
http://www.pfcmedia.com
 
S

Steve Rindsberg

I think OP needs an event to respond to when the Window size/state changes.

Imagine you have a modeless form pretending to be a toolbar and you want to
make it also pretend to stay docked as though it were a real toolbar. You'd
need it to follow PPT around, disappear when PPT's minimized, stuff like that.
 
G

Guest

Hey Austin,

Thanks for the post...I am sorry for being late but I was busy with some
other releases...

I am a novice to Office Programming can you please tell me, how I can check
weather the power point window has been resized or minimized..?

--
D.C

....on the deadline, project should be buried where it belongs...

....can be done...
 
G

Guest

Hey Austin,

Thanks for the post...I am sorry for being late but I was busy with some
other releases...

I am a novice to Office Programming can you please tell me, how I can check
weather the power point window has been resized or minimized..?

--
D.C

....on the deadline, project should be buried where it belongs...

....can be done...
 
S

Steve Rindsberg

Hey Austin,

Thanks for the post...I am sorry for being late but I was busy with some
other releases...

I am a novice to Office Programming can you please tell me, how I can check
weather the power point window has been resized or minimized..?

Start here (though this is VBA code, not managed):

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

You might trap the Activate or Select events.
 
G

Guest

Hi Steve,

I will give it a go and try to find the way...

Thanks.
--
D.C

....on the deadline, project should be buried where it belongs...

....can be done...
 

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