本文整理汇总了C++中CheckButton::SetBitmapDown方法的典型用法代码示例。如果您正苦于以下问题:C++ CheckButton::SetBitmapDown方法的具体用法?C++ CheckButton::SetBitmapDown怎么用?C++ CheckButton::SetBitmapDown使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CheckButton
的用法示例。
在下文中一共展示了CheckButton::SetBitmapDown方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: create_controls_in_group
//---------------------------------------------------------------------------------------
void GrpRhythmicDictation::create_controls_in_group(wxBoxSizer* pMainSizer)
{
//create the common controls for a group
set_group_title(_("Rhythmic dictation tools"));
wxBoxSizer* pCtrolsSizer = create_main_sizer_for_group(pMainSizer);
//create the specific controls for this group
//buttons for adding notes
//whole note/rest
wxBoxSizer* pRow1Sizer = new wxBoxSizer( wxHORIZONTAL );
wxSize btSize(24, 24);
CheckButton* pButton;
pButton = new CheckButton(this, k_id_button_note, wxBitmap(24,24),
wxDefaultPosition, wxSize(24, 24));
pButton->SetBitmapUp("tie", "", btSize);
pButton->SetBitmapDown("tie", "button_selected_flat", btSize);
pButton->SetBitmapOver("tie", "button_over_flat", btSize);
pButton->SetBitmapDisabled("tie_dis", "", btSize);
pButton->SetToolTip(_("Add/remove a tie to/from selected notes"));
pRow1Sizer->Add( pButton, wxSizerFlags(0).Border(wxALL, 2) );
//half note/rest
pButton = new CheckButton(this, k_id_button_note+1, wxBitmap(24,24),
wxDefaultPosition, wxSize(24, 24));
pButton->SetBitmapUp("tuplet", "", btSize);
pButton->SetBitmapDown("tuplet", "button_selected_flat", btSize);
pButton->SetBitmapOver("tuplet", "button_over_flat", btSize);
pButton->SetBitmapDisabled("tuplet_dis", "", btSize);
pButton->SetToolTip(_("Add/remove tuplet to/from selected notes"));
pRow1Sizer->Add( pButton, wxSizerFlags(0).Border(wxALL, 2) );
//quarter note/rest
pButton = new CheckButton(this, k_id_button_note+2, wxBitmap(24,24),
wxDefaultPosition, wxSize(24, 24));
pButton->SetBitmapUp("toggle_stem", "", btSize);
pButton->SetBitmapDown("toggle_stem", "button_selected_flat", btSize);
pButton->SetBitmapOver("toggle_stem", "button_over_flat", btSize);
pButton->SetBitmapDisabled("toggle_stem_dis", "", btSize);
pButton->SetToolTip(_("Toggle stem in selected notes"));
pRow1Sizer->Add( pButton, wxSizerFlags(0).Border(wxALL, 2) );
pCtrolsSizer->Add( pRow1Sizer, 0, wxEXPAND, 5 );
// wxButton* pButton;
// for (int i=0; i < 4; ++i)
// {
// pButton = LENMUS_NEW wxButton(this, k_id_button_0 + i, _("11"));
// // m_clefs[i] = LENMUS_NEW wxBitmapButton(this, k_id_button+i, create_bitmap(i),
// // wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
// pCtrolsSizer->Add( pButton, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
// }
//buttons for moving cursor
wxBoxSizer* pRow2Sizer = new wxBoxSizer( wxHORIZONTAL );
pButton = new CheckButton(this, k_id_button_cursor, wxBitmap(24,24),
wxDefaultPosition, wxSize(24, 24));
pButton->SetBitmapUp("toggle_stem", "", btSize);
pButton->SetBitmapDown("toggle_stem", "button_selected_flat", btSize);
pButton->SetBitmapOver("toggle_stem", "button_over_flat", btSize);
pButton->SetBitmapDisabled("toggle_stem_dis", "", btSize);
pButton->SetToolTip(_("Toggle stem in selected notes"));
pRow2Sizer->Add( pButton, wxSizerFlags(0).Border(wxALL, 2) );
pCtrolsSizer->Add( pRow2Sizer, 0, wxEXPAND, 5 );
//other commands: backdelete, delete & insert barline
//push button for dots
this->Layout();
}