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 <
steveco.1...@gmail.com> 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 wx-us...@googlegroups.com?  This is the wWidgets
> mailing list.
>
> Good luck.
>
> Regards
>
> Steve.
>

Reply via email to