Embed a colour picker into toolbar

Hello. I’m having trouble to embed a colour picker into a toolbar (like in photoshop or paint).
First I tried to put in the toolbar as a regular control but it doesn’t look right.

The second way I tried is just attach an event for color pick to a toolbar button and then based on the picked color to change the bitmap of the button, but I didn’t find any methods to do that.

Any Idea how I can perform that? Thank you.

Have you played with the toolbar and picker demos?

Oh, Thank you, I didn’t think this was a wx.lib.colourselect instead of wx.ColourPicker.

Well, the end result is this:

self.color_pick_tb = csel.ColourSelect(self.left_toolbar2, -1)
self.left_toolbar.AddControl(self.color_pick_tb)

``

···

On Monday, 11 August 2014 19:12:08 UTC+3, Nathan McCorkle wrote:

Have you played with the toolbar and picker demos?