void RGBACtrl::Ramp() { color = ~ramp; alpha.SetColor(color); UpdateActionRefresh(); SyncText(); }
void RightTabs::LeftDown(Point p, dword) { int c = GetPos(p); if(c >= 0 && c != cursor) { cursor = c; UpdateActionRefresh(); if(GetParent()) GetParent()->RefreshFrame(); } }
void DropGrid::ClearValue() { change = false; value = Null; rowid = -1; list.ClearCursor(); if(null_action) UpdateActionRefresh(); else UpdateRefresh(); }
void RGBACtrl::LeftDown(Point p, dword keyflags) { int x = (p.x - cs.x) / cbox.cx; int y = (p.y - cs.y) / cbox.cy; if(x >= 0 && x < 18 && y >= 0 && y < 18) { color = GetColor(x + 18 * y); ramp <<= color; alpha.Set(255); alpha.SetColor(color); UpdateActionRefresh(); SyncText(); } }
void ColorPusher::AcceptColors() { push = false; color = colors.Get(); UpdateActionRefresh(); }