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(); }
VOID RestoreDialog(VOID) { PRESLINK prlSave; if (Message(MSG_RESTOREDIALOG) == IDYES) { prlSave = gcd.prl; DeleteDialog(FALSE); ResLinkToDialog(prlSave); } }
VOID FreeRes(VOID) { CancelSelection(TRUE); if (gfEditingDlg) DeleteDialog(FALSE); FreeResList(); pszResFile = NULL; gfResChged = FALSE; }
void OpenDialog::OnMouseLeftDown(const ax::Point& pos) { DeleteDialog(); }
void OpenDialog::OnMenuSelection(const ax::DropMenu::Msg& msg) { win->PushEvent(OPEN, new ax::event::StringMsg(msg.GetItem())); DeleteDialog(); }
void OpenDialog::OnCancel(const ax::Button::Msg& msg) { win->PushEvent(CANCEL, new ax::event::StringMsg("")); DeleteDialog(); }
void OpenDialog::OnGlobalClick(const ax::Window::Event::GlobalClick& gclick) { if (!win->dimension.GetAbsoluteRect().IsPointInside(gclick.pos)) { DeleteDialog(); } }