mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix flickering of the Activity window for linux.
Окно Activity теперь использует при создании стиль wxBG_STYLE_TRANSPARENT. (только linux) Мерцание устроняется, но начинается повышенная нагрузка на CPU. Также в режиме показа только раскрашенных строк отключается пользовательский ввод. По причине аварийного завершения приложений при обработке нажатий мыши по строкам которые буду удалены при обновлении данных.
This commit is contained in:
parent
241ded0138
commit
c5bf4410a9
1 changed files with 19 additions and 2 deletions
|
|
@ -32,14 +32,31 @@ MyCompareFunction(wxIntPtr item1, wxIntPtr item2, wxIntPtr WXUNUSED(sortData))
|
|||
}
|
||||
|
||||
ctlListView::ctlListView(wxWindow* p, int id, wxPoint pos, wxSize siz, long attr)
|
||||
: wxListView(p, id, pos, siz, attr | wxLC_REPORT)
|
||||
// : wxListView(p, id, pos, siz, attr | wxLC_REPORT)
|
||||
{
|
||||
nosort = false;
|
||||
autohint=false;
|
||||
order = 1;
|
||||
prev_col = -1;
|
||||
storelongstring = false;
|
||||
Connect(wxID_ANY, wxEVT_LIST_COL_CLICK, wxListEventHandler(ctlListView::OnSortGrid));
|
||||
#ifdef __WXGTK__
|
||||
if (id==CTL_STATUSLIST) {
|
||||
SetBackgroundStyle(wxBG_STYLE_TRANSPARENT);
|
||||
//SetBackgroundColour(wxTRANSPARENT);
|
||||
//SetBackgroundStyle(wxBG_STYLE_PAINT);
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
Create(p, id, pos, siz, attr | wxLC_REPORT);
|
||||
|
||||
if (id!=CTL_STATUSLIST)
|
||||
Connect(wxID_ANY, wxEVT_LIST_COL_CLICK, wxListEventHandler(ctlListView::OnSortGrid));
|
||||
else {
|
||||
// SetDoubleBuffered(true);
|
||||
// SetBackgroundStyle(wxBG_STYLE_PAINT);
|
||||
// Bind(wxEVT_ERASE_BACKGROUND, [] (wxEraseEvent&) {} );
|
||||
}
|
||||
}
|
||||
#include <map>
|
||||
bool ctlListView::IsNumberColumn(const wxString& columnlabel) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue