JeremK wrote:
Nice example Simulanics.
The only problem is the flickering I get on Windows 7.
Is this fixed on Windows 8?
It works on windows 8 perfect. To stop the flicker change the .refresh's to .invalidate. This was merely a 15 minute demo..if I had taken longer time (which I just might now), I would have added a property for the last selected index and changed the deselectall method to only set the background of the last selected index back to the unselected color. At the moment it loops through all segments, de-selects them all and sets the current clicked segment index to selected. (very inefficient) this looping is what causes the flicker..but if you don't want to change the code or wait a day for me to post the updated fully "proper" methods..just change refresh to invalidate to "reduce" the flicker. Like artists do, at least once a day I come up with a control or code idea and code as much as I can in that 15 minutes..have noticed greater productivity and shorter completion time in "non-demanding" situations because of this as well

By the way, I love ideas for demos so if you ever have any, I'd love to hear them.