Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toggle Button for a VB in Ribbon Menu

Status
Not open for further replies.

MEichWey

Industrial
Apr 16, 2014
39
Hi,

I´m searching for the Keywords in RTB-File or a function in VB, to toggle the status of the bitmap in the ribbon like this example here:

show_grid_on_off_n1dsbc.jpg


So with this button I can see, if the raster is ON (dark background) or OFF (light background).

How can I do this in my own ribbons. I have written some VB´s which toogle some preferences in drafting. So it is usful to see the status by the button.
We need it e.g. for switching on and off of the automatic dimension break or for the fit with or without datums.


I found something like that in an other forum:

Private Sub _button1_Click(ByVal control As RibbonControl)
_button1.Checked = Not _button1.Checked
End Sub

But I do not no if this does what I want. Where do I have to set the button bitmap-filename in this solution?



Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor