WxWidgets wxSingleChoiceDialog

来自泡泡学习笔记
BrainBs讨论 | 贡献2024年9月30日 (一) 19:02的版本 (创建页面,内容为“This dialog shows a list of choices, plus OK and (optionally) Cancel. The user can select one of them. The selection can be obtained from the dialog as an index, a string or client data. if (dialog.ShowModal() == wxID_OK) { ... } ===ShowModal()=== Shows the dialog, returning either wxID_OK or wxID_CANCEL. ===GetStringSelection()=== Returns the selected string.”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

This dialog shows a list of choices, plus OK and (optionally) Cancel. The user can select one of them. The selection can be obtained from the dialog as an index, a string or client data.

if (dialog.ShowModal() == wxID_OK)
{
    ...
}


ShowModal()

Shows the dialog, returning either wxID_OK or wxID_CANCEL.


GetStringSelection()

Returns the selected string.