Slide show visible issue

S

Steven

Dear all,

I use visual basic toolbar and add 3 button in powerpoint2000's slide!
then I click commandbutton1 add the following method, commandbutton2 as
same!

Private Sub CommandButton1_Click()
CommandButton3.Visible = False
End Sub

Private Sub CommandButton2_Click()
CommandButton3.Visible = True
End Sub

then I click powerpoint slide show, I click commandbutton1, I still can see
commandbutton3 visible! But when I use alt+table swith to normal view mode,
I can't see commandbutton3, I can see commandbutton3 in slide show mode!

Can anyone tell me why? How do I do ? if we add the 3 button in
powerpoint2003, It has not so issue!

Thanks
 
D

David M. Marcovitz

What happens if you add a line to go to the slide. Sometimes things don't
change their visibility until the slide is re-entered. Try:

ActivePresentation.SlideShowWindow.View.GotoSlide _
ActivePresentation.SlideShowWindow.View.Slide.SlideIndex

Also, check to see if you have any animation or animated GIFs on the
slide. That sometimes interferes with objects being shown or hidden.

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
B

Bill Dilworth

The visibility (and layering) of all the activeX controls is ... ummmm....
troublesome. They do not always update or display as intended, this is a
long standing issue. Why not avoid the whole activeX thing and just set a
shape to look like a button, then set an action setting to make it run a
macro (act like a button)? PowerPoint does not have issues with making
shapes visible or invisible.

--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 
S

Steven

Thanks for reply!

Becuase we design some function in this activex control, commandbutton is
only simply sample, If we must use this activex control, How to solve this
visiblility issue for this activex control in powerpoint2000? Thanks
 
B

Bill Dilworth

The only way is to hard code force the slide to completely redraw. Try this
in a new presentation....

2 Command buttons on a slide with this code

Private Sub CommandButton1_Click()
CommandButton2.Visible = True
CommandButton1.Visible = False
End Sub

Private Sub CommandButton2_Click()
CommandButton1.Visible = True
CommandButton2.Visible = False
End Sub



If the code does not act as expected (toggling command buttons) than try
this ...

Private Sub CommandButton2_Click()
CommandButton1.Visible = True
CommandButton2.Visible = False
ForceRefreash (SlideShowWindows(1).View.CurrentShowPosition)
End Sub

Private Sub CommandButton1_Click()
CommandButton2.Visible = True
CommandButton1.Visible = False
ForceRefreash (SlideShowWindows(1).View.CurrentShowPosition)
End Sub

Private Sub ForceRefreash(iSld As Integer)
SlideShowWindows(1).View.GotoSlide 1
SlideShowWindows(1).View.GotoSlide iSld
End Sub

Make sure that slide 1 and the current slide have no slide transitions and
this should do what you need.


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 
D

David M. Marcovitz

Should ForceRefreash be ForceRefresh?
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
D

David M. Marcovitz

Nah, he spells it funny in both places. ;-)

Oops. Now I see that. That'll teach me to glance through code quickly and
try to correct typos. I thought he was referring to some built-in procedure
that I didn't know about. I didn't realize, he wrote his own.
--David
 

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