| 273 | } |
| 274 | |
| 275 | void AButton::SetAlternateIcons(unsigned idx, const wxImage& up, const wxImage& down, const wxImage& disabled) |
| 276 | { |
| 277 | if(1 + idx > mIcons.size()) |
| 278 | mIcons.resize(1 + idx); |
| 279 | mIcons[idx][AButtonUp] = up; |
| 280 | mIcons[idx][AButtonOver] = up; |
| 281 | mIcons[idx][AButtonDown] = down; |
| 282 | mIcons[idx][AButtonOverDown] = down; |
| 283 | mIcons[idx][AButtonDis] = disabled; |
| 284 | Refresh(false); |
| 285 | } |
| 286 | |
| 287 | void AButton::SetAlternateIdx(unsigned idx) |
| 288 | { |