本文整理汇总了C++中CGUILabelControl::ShowCursor方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUILabelControl::ShowCursor方法的具体用法?C++ CGUILabelControl::ShowCursor怎么用?C++ CGUILabelControl::ShowCursor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUILabelControl
的用法示例。
在下文中一共展示了CGUILabelControl::ShowCursor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnInitWindow
void CGUIDialogKeyboardGeneric::OnInitWindow()
{
CGUIDialog::OnInitWindow();
m_bIsConfirmed = false;
// set alphabetic (capitals)
UpdateButtons();
CGUILabelControl* pEdit = ((CGUILabelControl*)GetControl(CTL_LABEL_EDIT));
if (pEdit)
{
pEdit->ShowCursor();
}
// set heading
if (!m_strHeading.empty())
{
SET_CONTROL_LABEL(CTL_LABEL_HEADING, m_strHeading);
SET_CONTROL_VISIBLE(CTL_LABEL_HEADING);
}
else
{
SET_CONTROL_HIDDEN(CTL_LABEL_HEADING);
}
CVariant data;
data["title"] = m_strHeading;
data["type"] = !m_hiddenInput ? "keyboard" : "password";
data["value"] = GetText();
ANNOUNCEMENT::CAnnouncementManager::Announce(ANNOUNCEMENT::Input, "xbmc", "OnInputRequested", data);
}
示例2: OnInitWindow
void CGUIDialogKeyboard::OnInitWindow()
{
#ifdef __APPLE__
// Override skin defaults to always make the defaul control 'DONE' to allow
// natual entry on keyboards.
//
m_dwDefaultFocusControlID = 300;
#endif
CGUIDialog::OnInitWindow();
m_bIsConfirmed = false;
// set alphabetic (capitals)
UpdateButtons();
CGUILabelControl* pEdit = ((CGUILabelControl*)GetControl(CTL_LABEL_EDIT));
if (pEdit)
{
pEdit->ShowCursor();
}
// set heading
if (!m_strHeading.IsEmpty())
{
SET_CONTROL_LABEL(CTL_LABEL_HEADING, m_strHeading);
SET_CONTROL_VISIBLE(CTL_LABEL_HEADING);
}
else
{
SET_CONTROL_HIDDEN(CTL_LABEL_HEADING);
}
}