Currently ctbicon() has icon and background as one field, so you can't set/change those individually.
Would be good to have background separated into 2nd parameter after comma, and current shape/darkmode param moved to 3rd one.
Ctbicon() separate icon and background colour.
Ctbicon() separate icon and background colour.
Win 7 SP1 x64 100% 1366x768|1900x1080
-
admin
- Site Admin
- Posts: 65389
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Ctbicon() separate icon and background colour.
You can't set/change those individually? Why not? They are separated by an asterisk instead of a comma, who cares?
I can't change the syntax anyway. Would break old code.
I can't change the syntax anyway. Would break old code.
FAQ | XY News RSS | XY X
Re: Ctbicon() separate icon and background colour.
Well, i can't do this
You can't change syntax to keep old code intact, but maybe you can add an enhancement, that if there is nothing before asterisk the icon is kept as is?(not erased with background solely)
ctbicon(*#F6F6F6,r) to simply add background to button's icon without changing icon. You can't change syntax to keep old code intact, but maybe you can add an enhancement, that if there is nothing before asterisk the icon is kept as is?(not erased with background solely)
Win 7 SP1 x64 100% 1366x768|1900x1080
XYplorer Beta Club