Hi all,
Is it possible to set row height in wxListCtrl or spacing between rows? The problem I'm trying to solve: I've got list with rows contains images and text, but images are close to each other in vertical space and I'd like to separate them. As a solution I inserted white box around images to increase it height. It looks fine till the moment I select any row. When selecting an item in the list, the selected box doesn't 'fit' around the image:
So the question how to increase space between rows or how to make selection box fit around the image?
I'm using wxWidgets 3.1.1; platform is Windows but I want it to work on Linux as well.
Thanks.
wxListCtrl row height Topic is solved
-
- Earned some good credits
- Posts: 107
- Joined: Tue Aug 28, 2018 1:02 pm
- Location: Belarus
Re: wxListCtrl row height
Sorry for stupid question but did you try to make the image "gap" not white but transparent?
Re: wxListCtrl row height
Additionally, if your wxListCtrl has only one column, consider wxSimpleHtmlListBox which gives you more freedom on the visuals.
https://docs.wxwidgets.org/trunk/classw ... t_box.html
https://docs.wxwidgets.org/trunk/classw ... t_box.html
Use the source, Luke!
-
- Earned some good credits
- Posts: 107
- Joined: Tue Aug 28, 2018 1:02 pm
- Location: Belarus
Re: wxListCtrl row height
It's not the question stupid, but me =( Thanks, it solved the problem.PB wrote:Sorry for stupid question
Thanks, I'll take a look on this controldoublemax wrote:if your wxListCtrl has only one column, consider wxSimpleHtmlListBox which gives you more freedom on the visuals