Hello,
Under windows, using wxWidgets v3.1.1, the wxListCtrl background is not being redrawn after erased. As you see in the attached screenshot:
What could be the issue?
Thank you for your understanding.
[wxMSW][v3.1.1] - wxListCtrl background is not redrawn after erased Topic is solved
Re: [wxMSW][v3.1.1] - wxListCtrl background is not redrawn after erased
Hi,
Can you show some code of what you are doing?
Can you reproduce the issue with the sample?
Thank you.
Can you show some code of what you are doing?
Can you reproduce the issue with the sample?
Thank you.
Re: [wxMSW][v3.1.1] - wxListCtrl background is not redrawn after erased
I have used wxFormBuilder v3.6.2 to design the application.ONEEYEMAN wrote:Hi,
Can you show some code of what you are doing?
Can you reproduce the issue with the sample?
Thank you.
Code: Select all
wxListCtrl* m_listCtrl1;
m_listCtrl1 = new wxListCtrl( m_panel1, wxID_LISTCTRL, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
Re: [wxMSW][v3.1.1] - wxListCtrl background is not redrawn after erased
Hi,
You obviously doing something after creating the control.
What is it.
Are you creating inside the aui pane.
Can you try to do exactly what you do in a sample.
Also since you said that the sample works correctly - what do you do differently.
Thank you.
You obviously doing something after creating the control.
What is it.
Are you creating inside the aui pane.
Can you try to do exactly what you do in a sample.
Also since you said that the sample works correctly - what do you do differently.
Thank you.
Re: [wxMSW][v3.1.1] - wxListCtrl background is not redrawn after erased
I found the origin of the problem, and I think it is a bug.ONEEYEMAN wrote:Hi,
You obviously doing something after creating the control.
What is it.
Are you creating inside the aui pane.
Can you try to do exactly what you do in a sample.
Also since you said that the sample works correctly - what do you do differently.
Thank you.
if you don't include the wxWidgets default resource file:
Code: Select all
#include "wx/msw/wx.rc"
Adding .manifest file with the same name as the executable in the same directory as the executable will also solve the problem.
Is it a bug !
Re: [wxMSW][v3.1.1] - wxListCtrl background is not redrawn after erased
Hi,
No it is not a bug.
Manifest file contains some very important information.
It is also recommended to start developing with wxWidgets by using one of the samples (possibly minimal) as the template for your own project. The samples do contain the manifest generation and then everything will be in order.
Thank you.
No it is not a bug.
Manifest file contains some very important information.
It is also recommended to start developing with wxWidgets by using one of the samples (possibly minimal) as the template for your own project. The samples do contain the manifest generation and then everything will be in order.
Thank you.