Re: wxDemo wxTreeCtrl demo

James Lynes <[email protected]>
Newsgroups gmane.comp.lang.perl.wxperl
Message-ID <CABPysej=mTiY1A_8EfnEy9oSKvmr5epnqseB9Mb5TEXPLwJezQ@mail.gmail.com>
Steve:

Thanks for the review. I'll try unselectitem and see if it helps.

Not a member of the google group. I'll take a look.

I'm sure there will be more questions as I work through this sample. Still
working on the sort functions and still need to look at the drag and drop
functions.

James


On Mon, Nov 3, 2014 at 4:03 AM, Steve Cookson - gmail <
[email protected]> wrote:

> Hi James,
>
> Interesting glitch.  But it looks like a Native wxWidgets glitch not a
> wxPerl glitch.
>
> On 03/11/14 01:36, James Lynes wrote:
>
>>
>> Run the wxDemo TreeCtrl demo
>>       Background changes to red(selected)
>>    Rename the node
>>       Background stays red
>>
> Mine is blue, so I guess it's dependent on your system settings.
>
>>    Deselect All
>>
> This is a direct call to the c++ wxWidgets routine.  The wrapping doesn't
> add any functionality.
>     EVT_MENU( $top, $itemmenu->Append( -1, "Deselect All" ),
>               sub { $self->UnselectAll } );
>
>>       Background returns to original color(deselected)
>>    Rename again(on an unselected(?) node)
>>
>>  This is also a direct call to the c++ wxWidgets routine.  Again, the
> wxPerl doesn't add anything.
> sub on_rename {
>     my( $self ) = @_;
>     my $item = $self->GetSelection;
>
>> The last selected node renames!
>>
>> Expected a MessageBox "Must select an item, first!"
>>
>>  I agree, but it looks like a wxWidgets bug.  And it's quite old.  It
> still happens in 2.8.11.
>
>> Is Deselect All not working even though the background color is changing?
>>
> If you are using this in your code, potentially an UnselectItem would do
> it, or an UnselectItem followed by UnselectAll.
>
> Are you subscribed to [email protected]?  This is the wWidgets
> mailing list.
>
> Good luck.
>
> 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.