本文整理汇总了C++中Label::SetShowState方法的典型用法代码示例。如果您正苦于以下问题:C++ Label::SetShowState方法的具体用法?C++ Label::SetShowState怎么用?C++ Label::SetShowState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Label
的用法示例。
在下文中一共展示了Label::SetShowState方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: revealed
ListPanel::ListPanel(GHAchievement achievement)
{
Construct(IDL_PANEL_LISTPANEL);
isTouchEnable = false;
id = achievement.getId();
title = achievement.getTitle();
imgUrl = achievement.getImgUrl();
String desc = achievement.getDescription();
int isHidden = achievement.getIsHidden(); // hidden 속성 ( 0: hidden, 1: revealed(default))
int isComplete = achievement.getIsComplete(); // 업적 완료 여부
int goalPoint = achievement.getGoalPoint(); // 목표 점수
int curPoint = achievement.getCurPoint(); // 현재 점수
Label *pLabelTitle = static_cast< Label* >(GetControl(IDC_LISTPANEL_LABEL_TITLE));
Label *pLabelDesc = static_cast< Label* >(GetControl(IDC_LISTPANEL_LABEL_DESC));
Label *pLabelPoint = static_cast< Label* >(GetControl(IDC_LISTPANEL_LABEL_POINT));
Gallery *pImgComplete = static_cast< Gallery* >(GetControl(IDC_LISTPANEL_GALLERY_COMPLETE));
Panel *pPanelOverlay= static_cast< Panel* >(GetControl(IDC_LISTPANEL_OVERLAY));
pLabelTitle->SetText(title);
pLabelDesc->SetText(desc);
if(isComplete) {
pImgComplete->SetShowState(true);
pLabelPoint->SetShowState(false);
} else {
pLabelPoint->SetText(Integer::ToString(curPoint) +"/"+ Integer::ToString(goalPoint));
pImgComplete->SetShowState(false);
}
if(isHidden == 0) {
pPanelOverlay->SetShowState(false);
}
}