aMule Forum
English => Skins & GUI => Topic started by: greek on July 13, 2008, 12:59:12 PM
-
Hello, I am trying to refactor the skin support code. My intention is to replace the Apply_Toolbar_Skin, Apply_Clients_Skin and Check_Init_Skin function with just a single one called SetSkin, which will replace all the icons in one pass. I want to ask, is there anyway to replace the icon of a toolbar without removing and adding it?
Any hint will be wellcome.
-
http://docs.wxwidgets.org/stable/wx_wxtoolbar.html#wxtoolbarsettoolnormalbitmap
and similar. That's what we're using, afaik.
-
Actually I saw this :)
I just noticed something annoying about wxWidgets, when I was refactoring ShowConnectionState (at the point where it replaces the connection button):
There is SetToolShortHelp, SetToolNormalBitmal but NO SetToolLabel!!
This is stupid. It forces you to remove and insert the button. This causes a problem at least under macosx, cause those additions and removals make the toolbar flicker very noticeably.