本文整理汇总了C++中wxButton::SetLabel方法的典型用法代码示例。如果您正苦于以下问题:C++ wxButton::SetLabel方法的具体用法?C++ wxButton::SetLabel怎么用?C++ wxButton::SetLabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxButton
的用法示例。
在下文中一共展示了wxButton::SetLabel方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HandleCommand
void HandleCommand(wxCommandEvent& event)
{
event.Skip();
switch(event.GetId())
{
case DID_STOP_EMU:
m_btn_run->SetLabel("Run");
break;
case DID_PAUSE_EMU:
m_btn_run->SetLabel("Resume");
break;
case DID_START_EMU:
case DID_RESUME_EMU:
m_btn_run->SetLabel("Pause");
break;
case DID_EXIT_THR_SYSCALL:
Emu.GetCPU().RemoveThread(((PPCThread*)event.GetClientData())->GetId());
break;
}
UpdateUI();
}
示例2: play
void MainWindow::play() {
libvlc_media_player_play(media_player);
playpause_button->SetLabel(wxT("Pause"));
playpause_button->Enable(true);
stop_button->Enable(true);
timeline->Enable(true);
}
示例3: OnConnectionEstablished
void StreamerFrame::OnConnectionEstablished(wxSocketEvent& event){
connect->SetValue(true);
connect->SetLabel("Disconnect");
SetStatusText( "Connection Established" );
}
示例4: HandleCommand
void HandleCommand(wxCommandEvent& event)
{
switch(event.GetId())
{
case DID_STOP_EMU:
m_btn_run->SetLabel("Run");
break;
case DID_PAUSE_EMU:
m_btn_run->SetLabel("Resume");
break;
case DID_START_EMU:
case DID_RESUME_EMU:
m_btn_run->SetLabel("Pause");
break;
}
UpdateUI();
event.Skip();
}
示例5: UpdateUI
void UpdateUI()
{
const auto status = Emu.GetStatus();
if (m_last_status != status)
{
m_last_status = status;
m_btn_run->Enable(status != system_state::stopped);
m_btn_stop->Enable(status != system_state::stopped);
m_btn_restart->Enable(!Emu.GetPath().empty());
m_btn_run->SetLabel(status == system_state::paused ? "Resume" : status == system_state::running ? "Pause" : "Run");
}
}
示例6: UpdateButtons
void SjMyMusicConfigPage::UpdateButtons()
{
bool enable = GetSelFromDialog()!=NULL;
if( m_configMenuButton )
{
m_configMenuButton->Enable(enable);
}
if( m_removeButton )
{
m_removeButton->Enable(enable);
}
if( m_updateButton )
{
m_updateButton->SetLabel(wxString::Format(m_idxChanged? "* %s%s" : " %s%s ", _("Update music library"), SJ_BUTTON_MENU_ARROW));
}
}
示例7: OnConnectDisconnect
void StreamerFrame::OnConnectDisconnect(wxCommandEvent& event){
string connect_label = "Connect";
string disconnect_label = "Disconnect";
//we connect to the client
//we first check the label of the btn
if(connect->GetLabel() == connect_label){
client = new wxSocketClient(wxSOCKET_WAITALL);
client->Connect(ip,0);
}else if(connect->GetLabel() == disconnect_label){
//we will disconnect
connect->SetValue(false);
connect->SetLabel("Connect");
SetStatusText("Disconnected");
}
}
示例8: pause
void MainWindow::pause() {
libvlc_media_player_pause(media_player);
playpause_button->SetLabel(wxT("Play"));
}