aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Improved skin support  (Read 6224 times)

greek

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 128
Improved skin support
« 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.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Improved skin support
« Reply #1 on: July 13, 2008, 01:06:31 PM »

Logged

greek

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 128
Re: Improved skin support
« Reply #2 on: July 13, 2008, 02:39:05 PM »

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.
Logged