hi,
some nodes in a tree must not be changed, so i call ev.Veto() in evt_tree_begin_edit_label, but there
are other nodes i want to check the new text in evt_tree_end_edit_label and call ev.Veto() depending
on new text. how do i get that new text inside the eventhandler ?
thanks in advance
andreas
hi Cody,
so easy! works great, thanks!
after i realized that in begin_edit_label e.GetLabel() returns empty string, i did not try again.
is SetLabel() to set a default-entry-value different from the item-text ?!
andreas
···
On Wednesday, February 27, 2013 6:29:55 PM UTC+1, Cody Precord wrote:
Hi,
On Wed, Feb 27, 2013 at 11:18 AM, agra...@googlemail.com wrote:
hi,
some nodes in a tree must not be changed, so i call ev.Veto() in evt_tree_begin_edit_label, but there
are other nodes i want to check the new text in evt_tree_end_edit_label and call ev.Veto() depending
on new text. how do i get that new text inside the eventhandler ?
thanks in advance
andreas
Its available from the event object
newlabel = evt.GetLabel()
Cody