Hello,
It known bug, and it already fixed. As hotfix you need to replace void CXTPEditListBoxToolBar::Initialize(bool bAutoFont /*= true*/) function in next file C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v19.2.0\Source\Controls\ListBox\XTPEditListBox.cpp
with
void CXTPEditListBoxToolBar::Initialize(bool bAutoFont /*= true*/) { // Create the ToolTip control. m_tooltip.Create(this); m_tooltip.Activate(TRUE);
for (int i = 0; i < _countof(m_arButton); ++i) { if ((!m_bShowNewDeleteButtons) && ((i == 0) || (i == 1))) continue;
if ((!m_bShowUpDownButtons) && ((i == 2) || (i == 3))) continue;
if (!m_arButton.Create(NULL, WS_CHILD | WS_VISIBLE | BS_ICON | BS_CENTER | BS_VCENTER, CRect(0, 0, 0, 0), this, _arButtonID)) { TRACE0("Unable to create edit button.\n"); continue; }
CString strToolTip; CXTPResourceManager::AssertValid( XTPResourceManager()->LoadString(&strToolTip, _arButtonID)); // Add tooltips to group buttons. m_tooltip.AddTool(&m_arButton, strToolTip);
// make sure the button is Windows XP theme compatible using // the toolbar button theme. if (m_arButton.SetTheme(xtpControlThemeFlat)) { CXTPButtonTheme* pTheme = m_arButton.GetTheme(); if (pTheme) { pTheme->EnableToolbarStyle(TRUE); } m_arButton.SetUseVisualStyle(TRUE); }
m_arButton.EnableMarkup(); }
if (m_bShowNewDeleteButtons) { CString xamlAdd, xamlDel; VERIFY(XTPResourceManager()->LoadXAML(xamlAdd, IDR_XAML_ICON_LIST_SYMBOL_ADD)); VERIFY(XTPResourceManager()->LoadXAML(xamlDel, IDR_XAML_ICON_LIST_SYMBOL_DELETE)); GetNewButton().SetWindowText(xamlAdd); GetDeleteButton().SetWindowText(xamlDel); } if (m_bShowUpDownButtons) { CString xamlUp, xamlDown; VERIFY(XTPResourceManager()->LoadXAML(xamlUp, IDR_XAML_ICON_LIST_SYMBOL_ARROW_UP)); VERIFY(XTPResourceManager()->LoadXAML(xamlDown, IDR_XAML_ICON_LIST_SYMBOL_ARROW_DOWN)); GetUpButton().SetWindowText(xamlUp); GetDownButton().SetWindowText(xamlDown); }
// Move the buttons to their correct location. MoveButtons();
// Set the font for this window. if (bAutoFont) { SetFont(&XTPAuxData().xtpFont); } }
Regards, Artem Gontarenko
|