Color Bar

I display textures on my nodes, which is calculated from a value on the node. I want now to display a color bar, which shows the values of the color. It is build up of 10 rectangulars with different colors and a dexcription for each. How can i do that?

Take a look at
“2D Contour Plotting” at

Its in MFC but it should be helpfull if this is the type of colorbar you have in mind.