derSimpleCtrl

14 views
Skip to first unread message

jsha...@gmail.com

unread,
Nov 2, 2025, 2:14:47 PM (8 days ago) Nov 2
to wx-dev
I am trying to create a workaround for not being able to set the backgreoud in MSW wxDataViewCtrl

I have tried a few options and have not yet found away to sync the column widths efficiently; the wxDataView control does not calculate until after it is drawn, and I cannot find an event to signal that.

This effor I am trying is to use a wxHeaderSimpleCtrl but no moater what I do it will not display the text. I can change the bg color so i can see it does exist, but I cannot seem to show the titles, find commands to change the coloumn fg or text color etc. 

What is the trick with this control. I have followed the examples I see online and will try the samples now that I am at home, (I cannot reach out to forums and channels like this from inside the building)

Vadim Zeitlin

unread,
Nov 2, 2025, 2:43:58 PM (8 days ago) Nov 2
to wx-...@googlegroups.com
On Sun, 2 Nov 2025 11:14:47 -0800 (PST) jsha...@gmail.com wrote:

j> I am trying to create a workaround for not being able to set the backgreoud
j> in MSW wxDataViewCtrl

What exactly do you mean by this? I.e. what do you want to set the
background to?

j> I have tried a few options and have not yet found away to sync the column
j> widths efficiently; the wxDataView control does not calculate until after
j> it is drawn, and I cannot find an event to signal that.

Do you mean auto-sized columns?

j> This effor I am trying is to use a wxHeaderSimpleCtrl but no moater what I
j> do it will not display the text.

Have you looked at the example of using wxHeaderCtrlSimple in the widgets
sample?

In general, it would be more effective, in terms of getting useful
answers, to explain what you're trying to do and what problems you're
running into instead of asking a number of apparently unconnected questions
at once.

Regards,
VZ
Reply all
Reply to author
Forward
0 new messages