Re: wxDataViewCtrl with an expander column, hiding the ">" if the item has no children?

Tony Kennedy <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Thanks for the pointer. All works well if I check the size of the child 
nodes during IsContainer.

bool IsContainer() const
{
    return m_bContainer && m_children.size() > 0;
}

On Thursday, 13 February 2025 at 13:13:29 UTC Tony Kennedy wrote:

> Ahh, I'll test then, it's probably my error.
>
> On Thursday, 13 February 2025 at 13:10:11 UTC Vadim Zeitlin wrote:
>
>> On Thu, 13 Feb 2025 00:41:55 -0800 (PST) Tony Kennedy wrote:
>>
>> TK> Hi all,
>> TK> 
>> TK> I've got a wxDataViewCtrl. Works perfectly, some of the entries do 
>> not have 
>> TK> child nodes though, and if possible, I'd like to hide the ">" symbol.
>>
>> If an item doesn't have children, as indicated by the model IsContainer()
>> function returning false, it shouldn't have the expander and if you see 
>> it,
>> it would be a bug. In this case, as usual, please check if you can
>> reproduce it in the sample and report it, mentioning the wx version and
>> platform you use.
>>
>> Regards,
>> VZ
>>
>> -- 
>> TT-Solutions: wxWidgets consultancy and technical support
>> https://www.tt-solutions.com/
>>
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/febf5f7b-55d0-4f62-b433-f63e4d73734fn%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.