本文整理汇总了C++中CheckButton::AddActionSignalTarget方法的典型用法代码示例。如果您正苦于以下问题:C++ CheckButton::AddActionSignalTarget方法的具体用法?C++ CheckButton::AddActionSignalTarget怎么用?C++ CheckButton::AddActionSignalTarget使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CheckButton
的用法示例。
在下文中一共展示了CheckButton::AddActionSignalTarget方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FillList
void CDialog_PPEPrecache::FillList()
{
ScrollBar *pScroll = m_pList_Effects->GetScrollbar();
int scrollValue = pScroll ? pScroll->GetValue() : 0;
m_pList_Effects->DeleteAllItems();
GetPPCache()->ClearInvalidEntries();
HFont fontMarlett = scheme()->GetIScheme( GetScheme() )->GetFont( "Marlett", false );
for ( int i = 0; i < GetPPCache()->GetNumPostProcessingEffects(); i++ )
{
EditorPostProcessingEffect *effect = GetPPCache()->GetPostProcessingEffect( i );
Label *pL = new Label( m_pList_Effects, "", effect->pszName );
Button *pDel = new Button( m_pList_Effects, "", "Delete", this, VarArgs("del_effect_%i",i) );
CheckButton *pCheck = new CheckButton( m_pList_Effects, effect->pszName, "" );
pCheck->AddActionSignalTarget( this );
pCheck->SetSelected( effect->bStartEnabled );
Button *pDown = new Button( m_pList_Effects, "", "u", this, VarArgs("movedown_effect_%i",i) );
Button *pUp = new Button( m_pList_Effects, "", "t", this, VarArgs("moveup_effect_%i",i) );
pDown->SetFont( fontMarlett );
pUp->SetFont( fontMarlett );
pDel->SetContentAlignment( Label::a_center );
pDown->SetContentAlignment( Label::a_center );
pUp->SetContentAlignment( Label::a_center );
m_pList_Effects->AddItem( NULL, pCheck );
m_pList_Effects->AddItem( NULL, pDown );
m_pList_Effects->AddItem( NULL, pUp );
m_pList_Effects->AddItem( pL, pDel );
}
if ( pScroll )
pScroll->SetValue( scrollValue );
}