I'm working on a toolbar type application. My current plan is to create a "toolbar" class and a "button" class. The toolbar class would create an instance of the "button" for each item on the toolbar. Each instance of the "button" class would handle its button's GUI events (Mouse Over, Click, etc). I also want to have global options that would affect how these GUI events are handled (highlite in a certain color on mouse over, etc). My problem is that I'm not sure how to let each instance "know" what the current values are for the global options.
What is a good way to handle this? One thought I have is to create an "Options" class, create a single instance of it in the main toolbar class, and then pass a reference to the button class in its the constructor.