예제 #1
0
파일: LineEdit.cpp 프로젝트: pedia/raidget
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);
}
예제 #2
0
파일: LineEdit.cpp 프로젝트: pedia/raidget
void LineEdit::LeftUp(Point p, dword flags)
{
	if(!HasCapture() && selclick) {
		mpos = GetMousePos(p);
		PlaceCaret(mpos, flags & K_SHIFT);
		SetWantFocus();
	}
	selclick = false;
}
예제 #3
0
파일: LineEdit.cpp 프로젝트: pedia/raidget
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();
}
예제 #4
0
bool DropGrid::Accept()
{
	if(!Ctrl::Accept())
		return false;
	if(must_change && !change)
	{
		Exclamation(must_change_str);
		SetWantFocus();
		return false;
	}
	return true;
}
예제 #5
0
void MultiButtonFrame::FrameRemove()
{
	Remove();
	SetWantFocus();
}