git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27177
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+const short kTextColumnId = 1024 ;
+
// new databrowserbased version
// Listbox item
// new databrowserbased version
// Listbox item
{
long ref = GetControlReference( browser ) ;
if ( ref )
{
long ref = GetControlReference( browser ) ;
if ( ref )
columnDesc.headerBtnDesc.btnFontStyle.style = normal;
columnDesc.headerBtnDesc.titleString = NULL ; // CFSTR( "" );
columnDesc.headerBtnDesc.btnFontStyle.style = normal;
columnDesc.headerBtnDesc.titleString = NULL ; // CFSTR( "" );
- columnDesc.propertyDesc.propertyID = 1024;
+ columnDesc.propertyDesc.propertyID = kTextColumnId;
columnDesc.propertyDesc.propertyType = kDataBrowserTextType;
columnDesc.propertyDesc.propertyFlags =
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2
columnDesc.propertyDesc.propertyType = kDataBrowserTextType;
columnDesc.propertyDesc.propertyFlags =
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2
void wxListBox::MacScrollTo( int n )
{
void wxListBox::MacScrollTo( int n )
{
- // TODO implement scrolling
+ UInt32 id = m_idArray[n] ;
+ verify_noerr( ::RevealDataBrowserItem((ControlRef) m_macControl , id , kTextColumnId , kDataBrowserRevealWithoutSelecting ) ) ;
}
void wxListBox::OnSize( wxSizeEvent &event)
}
void wxListBox::OnSize( wxSizeEvent &event)