Change the button state
| 166 | // Change the button state |
| 167 | // |
| 168 | void Grabber::PushButton(bool state ) |
| 169 | { |
| 170 | if( mAsSpacer ) |
| 171 | return; |
| 172 | if (!state) |
| 173 | mPressed = state; |
| 174 | wxRect r = GetRect(); |
| 175 | mOver = r.Contains(ScreenToClient(wxGetMousePosition())); |
| 176 | |
| 177 | // Redraw button |
| 178 | mPressed = state; |
| 179 | Refresh(false); |
| 180 | } |
| 181 | |
| 182 | // |
| 183 | // Handle left button down events |