I am trying to design a custom push button control class using vpOverlay2DImage.
I can add several bitmaps to my vpOverlay2DImage object representing my button in its various states ie
Normal image at, say, index 0
Mouse Over image at index 1
Pressed image at index 2
Disabled image at index 3
How can I explicitly set the vpoverlay_2d_image to display an image at a particular index in the list (ie depending on the user input)?
I have looked in the documentation and in vpoverlay_2d_image.h for how to do this, but I haven’t found out how, yet.
Any suggestions would be appreciated.