Peter T pretended :
"GS" wrote in message ...
I suspect the OP is using a custom toolbar created via the 'Customize'
dialog. If so then setting 'State' has no effect, though no error is
generated by attempting to set this property.
Attempting to do same with any of the built-in commandbars generates an
'automation' error.
That wouldn't have occurred to me but on checking, indeed as you say, a
button added that way doesn't seem to respond to State. However a button
added programmatically to a built-in bar does respond to State.
OP, how did you add your button?
Regards,
Peter T
Just to clarify...
The popup menu you refer to can't be a built-in popup unless the
menuitem was added programmatically. Otherwise, (as with all built-in
menuitems) any attempt to setting 'State' generates the 'automation'
error.
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc