set_change_palette_hook



Hi,
I've a colorselection widget, the palette, i can show and hide using set_has_palette() function. But if i show the palette, the colors in the palette are predetermined. I want to have the palette, with those 20 colors in the palette of my choice.

I was looking at the documentation which can do this and came across set_change_palette_hook. I really do not know whether this is the function to achieve my objective, but started looking at it anyway. This function happened to be a static member function. I've used this function in my code, but it does not seem to be working.

Two questions, based on whether i can achieve my objective with this function. Yes or No?

1. If Yes, how?
2. If No, what is the function i've to look at?

Thanks in advance.
Surya


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]