Small fix for generic print dialog.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -513,6 +513,8 @@ void wxGenericPrintSetupDialog::Init(wxPrintData* data)
|
|||||||
item2.SetMask( wxLIST_MASK_IMAGE );
|
item2.SetMask( wxLIST_MASK_IMAGE );
|
||||||
item2.SetImage( 0 );
|
item2.SetImage( 0 );
|
||||||
m_printerListCtrl->SetItem( item2 );
|
m_printerListCtrl->SetItem( item2 );
|
||||||
|
// also select item
|
||||||
|
m_printerListCtrl->SetItemState( item.GetId(), wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED );
|
||||||
}
|
}
|
||||||
|
|
||||||
item.SetId( 1+ item.GetId() );
|
item.SetId( 1+ item.GetId() );
|
||||||
@@ -549,6 +551,8 @@ void wxGenericPrintSetupDialog::Init(wxPrintData* data)
|
|||||||
item2.SetMask( wxLIST_MASK_IMAGE );
|
item2.SetMask( wxLIST_MASK_IMAGE );
|
||||||
item2.SetImage( 0 );
|
item2.SetImage( 0 );
|
||||||
m_printerListCtrl->SetItem( item2 );
|
m_printerListCtrl->SetItem( item2 );
|
||||||
|
// also select item
|
||||||
|
m_printerListCtrl->SetItemState( item.GetId(), wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED );
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString command = wxT("lpstat -p ");
|
wxString command = wxT("lpstat -p ");
|
||||||
|
Reference in New Issue
Block a user