Example #1
0
	void OpenDialog::OnOpen(const ax::Button::Msg& msg)
	{
		//		std::string label = _txtBox->GetLabel();
		//		ax::console::Print(label);
		win->PushEvent(OPEN, new ax::event::StringMsg(_menu->GetSelectedItem()));
		DeleteDialog();
	}
Example #2
0
VOID RestoreDialog(VOID)
{
    PRESLINK prlSave;

    if (Message(MSG_RESTOREDIALOG) == IDYES) {
        prlSave = gcd.prl;
        DeleteDialog(FALSE);

        ResLinkToDialog(prlSave);
    }
}
Example #3
0
VOID FreeRes(VOID)
{
    CancelSelection(TRUE);

    if (gfEditingDlg)
        DeleteDialog(FALSE);

    FreeResList();

    pszResFile = NULL;
    gfResChged = FALSE;
}
Example #4
0
	void OpenDialog::OnMouseLeftDown(const ax::Point& pos)
	{
		DeleteDialog();
	}
Example #5
0
	void OpenDialog::OnMenuSelection(const ax::DropMenu::Msg& msg)
	{
		win->PushEvent(OPEN, new ax::event::StringMsg(msg.GetItem()));
		DeleteDialog();
	}
Example #6
0
	void OpenDialog::OnCancel(const ax::Button::Msg& msg)
	{
		win->PushEvent(CANCEL, new ax::event::StringMsg(""));
		DeleteDialog();
	}
Example #7
0
	void OpenDialog::OnGlobalClick(const ax::Window::Event::GlobalClick& gclick)
	{
		if (!win->dimension.GetAbsoluteRect().IsPointInside(gclick.pos)) {
			DeleteDialog();
		}
	}