void LineEdit::RightDown(Point p, dword flags) { mpos = GetMousePos(p); SetWantFocus(); int l, h; if(!GetSelection(l, h) || mpos < l || mpos >= h) PlaceCaret(mpos, false); MenuBar::Execute(WhenBar); }
void LineEdit::LeftUp(Point p, dword flags) { if(!HasCapture() && selclick) { mpos = GetMousePos(p); PlaceCaret(mpos, flags & K_SHIFT); SetWantFocus(); } selclick = false; }
void LineEdit::LeftDown(Point p, dword flags) { mpos = GetMousePos(p); int l, h; if(GetSelection(l, h) && mpos >= l && mpos < h) { selclick = true; return; } PlaceCaret(mpos, flags & K_SHIFT); SetWantFocus(); SetCapture(); }
bool DropGrid::Accept() { if(!Ctrl::Accept()) return false; if(must_change && !change) { Exclamation(must_change_str); SetWantFocus(); return false; } return true; }
void MultiButtonFrame::FrameRemove() { Remove(); SetWantFocus(); }