git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43370
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool HasColumnInfo( unsigned int column );
virtual void SetColumnTextValue( unsigned int column, const wxString& text );
virtual bool HasColumnInfo( unsigned int column );
virtual void SetColumnTextValue( unsigned int column, const wxString& text );
- virtual const wxString& GetColumnTextValue( unsigned int column );
+ virtual wxString GetColumnTextValue( unsigned int column );
virtual int GetColumnImageValue( unsigned int column );
virtual void SetColumnImageValue( unsigned int column, int imageIndex );
virtual int GetColumnImageValue( unsigned int column );
virtual void SetColumnImageValue( unsigned int column, int imageIndex );
paneStyle &= ~wxSTATIC_BORDER;
if ( !wxWindow::Create(parent, id, pos, size, paneStyle | wxNO_BORDER, name) )
return false;
paneStyle &= ~wxSTATIC_BORDER;
if ( !wxWindow::Create(parent, id, pos, size, paneStyle | wxNO_BORDER, name) )
return false;
// since the generic control is a child, make sure we position it at 0, 0
m_genericImpl = new wxGenericListCtrlHook(this, id, wxPoint(0, 0), size, style, validator, name);
m_genericImpl->PushEventHandler( new wxMacListCtrlEventDelegate( this, GetId() ) );
// since the generic control is a child, make sure we position it at 0, 0
m_genericImpl = new wxGenericListCtrlHook(this, id, wxPoint(0, 0), size, style, validator, name);
m_genericImpl->PushEventHandler( new wxMacListCtrlEventDelegate( this, GetId() ) );
{
wxListItem colInfo;
GetColumn(col, colInfo);
{
wxListItem colInfo;
GetColumn(col, colInfo);
colInfo.SetWidth(width);
SetColumn(col, colInfo);
colInfo.SetWidth(width);
SetColumn(col, colInfo);
m_dbImpl->SetColumnWidth(col, mywidth);
}
}
m_dbImpl->SetColumnWidth(col, mywidth);
}
}
{
wxListItem colInfo;
GetColumn(col, colInfo);
{
wxListItem colInfo;
GetColumn(col, colInfo);
colInfo.SetWidth(width);
SetColumn(col, colInfo);
m_dbImpl->SetColumnWidth(col, mywidth);
colInfo.SetWidth(width);
SetColumn(col, colInfo);
m_dbImpl->SetColumnWidth(col, mywidth);
int row = y / rowHeight;
DataBrowserItemID id;
m_dbImpl->GetItemID( (DataBrowserTableViewRowIndex) row, &id );
int row = y / rowHeight;
DataBrowserItemID id;
m_dbImpl->GetItemID( (DataBrowserTableViewRowIndex) row, &id );
enclosingRect.bottom - enclosingRect.top);
active = IsControlActive(GetControlRef());
enclosingRect.bottom - enclosingRect.top);
active = IsControlActive(GetControlRef());
// don't paint the background over the vertical rule line
if ( list->GetWindowStyleFlag() & wxLC_VRULES )
{
// don't paint the background over the vertical rule line
if ( list->GetWindowStyleFlag() & wxLC_VRULES )
{
long itemNum = (long)itemOneID;
long otherItemNum = (long)itemTwoID;
itemText = list->OnGetItemText( itemNum-1, colId );
long itemNum = (long)itemOneID;
long otherItemNum = (long)itemTwoID;
itemText = list->OnGetItemText( itemNum-1, colId );
//if (item)
{
wxMacListCtrlItem* listItem = dynamic_cast<wxMacListCtrlItem*>(dataItem);
//if (item)
{
wxMacListCtrlItem* listItem = dynamic_cast<wxMacListCtrlItem*>(dataItem);
if (!listItem->HasColumnInfo( column ))
return;
if (!listItem->HasColumnInfo( column ))
return;
{
if ( HasColumnInfo(column) )
return GetColumnInfo(column)->GetImage();
{
if ( HasColumnInfo(column) )
return GetColumnInfo(column)->GetImage();
GetColumnInfo(column)->SetImage(imageIndex);
}
GetColumnInfo(column)->SetImage(imageIndex);
}
-const wxString& wxMacListCtrlItem::GetColumnTextValue( unsigned int column )
+wxString wxMacListCtrlItem::GetColumnTextValue( unsigned int column )
{
if ( column == 0 )
return GetLabel();
{
if ( column == 0 )
return GetLabel();
- if ( HasColumnInfo(column) )
+ if ( HasColumnInfo(column) )
return GetColumnInfo(column)->GetText();
return GetColumnInfo(column)->GetText();