当前位置: 首页>>代码示例>>C++>>正文


C++ wxButton::SetLabel方法代码示例

本文整理汇总了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();
	}
开发者ID:MorganCabral,项目名称:rpcs3,代码行数:26,代码来源:Debugger.cpp

示例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);
}
开发者ID:371816210,项目名称:vlc_vlc,代码行数:7,代码来源:wx_player.cpp

示例3: OnConnectionEstablished

void StreamerFrame::OnConnectionEstablished(wxSocketEvent& event){
   
   connect->SetValue(true);

   connect->SetLabel("Disconnect");
  
   SetStatusText( "Connection Established" );

}
开发者ID:tanerochris,项目名称:Streamer,代码行数:9,代码来源:Clients.cpp

示例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();
	}
开发者ID:deadpool101,项目名称:RPCS3-Fork,代码行数:21,代码来源:Debugger.cpp

示例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");
		}
	}
开发者ID:cornytrace,项目名称:rpcs3,代码行数:14,代码来源:Debugger.cpp

示例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));
	}
}
开发者ID:r10s,项目名称:silverjuke,代码行数:19,代码来源:mymusic.cpp

示例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");

		}
     

}
开发者ID:tanerochris,项目名称:Streamer,代码行数:22,代码来源:Clients.cpp

示例8: pause

void MainWindow::pause() {
    libvlc_media_player_pause(media_player);
    playpause_button->SetLabel(wxT("Play"));
}
开发者ID:371816210,项目名称:vlc_vlc,代码行数:4,代码来源:wx_player.cpp


注:本文中的wxButton::SetLabel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。