本文整理汇总了C++中EndModal函数的典型用法代码示例。如果您正苦于以下问题:C++ EndModal函数的具体用法?C++ EndModal怎么用?C++ EndModal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了EndModal函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: EndModal
void EditCppCodeEvent::OncancelBtClick(wxCommandEvent& event)
{
EndModal(0);
}
示例2: WXUNUSED
void VampEffectDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
{
EndModal(FALSE);
}
示例3: WXUNUSED
void EditHouseDialog::OnClickCancel(wxCommandEvent& WXUNUSED(event)) {
// Just close this window
EndModal(0);
}
示例4: EndModal
void AutocloseMessageBox::OnUnlock(wxTimerEvent& /*evt*/)
{
EndModal(wxID_OK);
}
示例5: EndModal
void ExportMixerDialog::OnCancel(wxCommandEvent &event)
{
EndModal( wxID_CANCEL );
}
示例6: TransferDataFromWindow
void LevellerDialog::OnOk(wxCommandEvent &event)
{
TransferDataFromWindow();
EndModal(true);
}
示例7: EndModal
void DIALOG_NON_COPPER_ZONES_EDITOR::OnCancelClick( wxCommandEvent& event )
{
// do not save the edits.
EndModal( ZONE_ABORT );
}
示例8: WXUNUSED
void ShareTransactionDialog::OnOk(wxCommandEvent& WXUNUSED(event))
{
double num_shares = 0;
if (!m_share_num_ctrl->checkValue(num_shares))
{
return;
}
double share_price = 0;
if (!m_share_price_ctrl->checkValue(share_price))
{
return;
}
double commission = 0;
m_commission_ctrl->GetDouble(commission);
double current_price = share_price;
if (m_stock && ((m_stock->PURCHASEPRICE != m_stock->CURRENTPRICE) && (m_stock->PURCHASEPRICE != 0)))
{
current_price = m_stock->CURRENTPRICE;
}
// allow for loyalty shares. These are "Free"
bool loyalty_shares = (share_price == 0) && (num_shares > 0);
if (m_stock && loyalty_shares)
{
current_price = m_stock->CURRENTPRICE;
}
// Only update the current price when adding new shares
if (!m_checking_entry)
{
m_stock->CURRENTPRICE = current_price;
Model_Stock::instance().save(m_stock);
}
if (m_transaction_panel->ValidCheckingAccountEntry())
{
// addition or removal shares
if ((num_shares > 0) && (m_transaction_panel->TransactionType() == Model_Checking::DEPOSIT))
{
// we need to subtract the number of shares for a sale
num_shares = num_shares * -1;
}
int checking_id = m_transaction_panel->SaveChecking();
/*
// The PURCHASEDATE, field in STOCK table becomes obsolete.
// NUMSHARES, PURCHASEPRICE and COMMISSION fields in the Stocks table are used as
// a summary and allows Stock history to work in its current form.
// The Shares table now maintains share_num, share_price, and commission on the
// date of purchase, together with a record in the checking account table.
*/
if (!m_translink_entry)
{
Model_Translink::SetStockTranslink(m_stock->STOCKID
, checking_id, m_transaction_panel->CheckingType());
}
Model_Shareinfo::ShareEntry(checking_id, num_shares, share_price, commission, m_share_lot_ctrl->GetValue());
Model_Translink::UpdateStockValue(m_stock);
if (!loyalty_shares)
{
Model_StockHistory::instance().addUpdate(m_stock->SYMBOL, m_transaction_panel->TransactionDate(), m_stock->CURRENTPRICE, Model_StockHistory::MANUAL);
}
}
else
{
mmErrorDialogs::MessageWarning(this, _("Invalid Transaction"), m_dialog_heading);
return;
}
EndModal(wxID_OK);
}
示例9: EndModal
void ChooseAutomatismDialog::OnChoisirBtClick(wxCommandEvent& event)
{
automatismChosen = automatismsList->GetStringSelection();
EndModal(1);
}
示例10: EndModal
void moNewEffectDialog::OnCancelButtonClick(wxCommandEvent& event)
{
EndModal( wxID_CANCEL );
}
示例11: EndModal
void
scanning_for_playlists_dlg::on_scanner_finished(wxCommandEvent &) {
EndModal(m_aborted ? wxID_CANCEL : wxID_OK);
}
示例12: EndModal
void DIALOG_PAGES_SETTINGS::OnCancelClick( wxCommandEvent& event )
{
EndModal( false );
}
示例13: EndModal
void PathBehaviorEditor::OncancelBtClick(wxCommandEvent& event)
{
EndModal(0);
}
示例14: EndModal
void AddBotDialog::OnClose( wxCommandEvent& /*event*/ )
{
EndModal( wxID_CANCEL );
}
示例15: StoreData
void wxsFontEditorDlg::OnButton2Click(wxCommandEvent& event)
{
StoreData(Data);
EndModal(wxID_OK);
}