Re: wxTreeCtrl InsertItem Method

Steve Cookson <[email protected]>
Newsgroups gmane.comp.lang.perl.wxperl
Message-ID <[email protected]>
Oh James, stop press,

On 05/11/14 14:48, Steve Cookson wrote:
> If you look at the two methods (InsertItem 
> <http://docs.wxwidgets.org/trunk/classwx_tree_ctrl.html#a06e1e6b25a7121922412eea510bd3109>), 
> it looks to me as though the second would be the most intuitive. 
> "Insert" normally means insert before.  In that case it might not be 
> too hard to complete that wrapping only and avoid the overload 
> situation.  They could even have two names InsertItemBefore 
> InsertItemAfter.  However the documentation would be inconsistent.
>
> I think the correct answer for now, where nothing works, is to wrap one.
This is what has happened,  there is:

InsertItemBef( parent, before, text, image = -1, selImage = -1, data = 0 )

Before

InsertItemPrev( parent, previous, text, image = -1, selImage = -1, data 
= 0 )

After.

You can try them both.

Regards

Steve
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.