×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Toggle Button for a VB in Ribbon Menu

Toggle Button for a VB in Ribbon Menu

Toggle Button for a VB in Ribbon Menu

(OP)
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:



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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources