mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Possible fix for #2549
This should fix #2549 - EditLabel on CustomTreeCtrl doesn't automatically select the entire text
This commit is contained in:
@@ -1428,6 +1428,9 @@ class TreeTextCtrl(ExpandoTextCtrl):
|
||||
bs = self.GetBestSize()
|
||||
self.SetSize((-1, bs.height))
|
||||
|
||||
if self._startValue:
|
||||
self.SelectAll()
|
||||
|
||||
self.Bind(wx.EVT_CHAR, self.OnChar)
|
||||
self.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
|
||||
self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
|
||||
|
||||
Reference in New Issue
Block a user