It seems that ctrl-A (select all) is not the standard functionality of a textctrl on Windows.
As an example, open Notepad, open the Find dialog, type some text in it and then try using ctrl-A. :-p
Anyways, here's a little example to show how one might enable that functionality yourself :
As an example, open Notepad, open the Find dialog, type some text in it and then try using ctrl-A. :-p
Anyways, here's a little example to show how one might enable that functionality yourself :
SuperStrict Framework wx.wxApp Import wx.wxFrame Import wx.wxTextCtrl New MyApp.run() Type MyApp Extends wxApp Field frame:MyFrame Method OnInit:Int() frame = MyFrame(New MyFrame.Create(,,"Ctrl-A text", 100, 100)) SetTopWindow(frame) frame.show() Return True End Method End Type Type MyFrame Extends wxFrame Field text:SelectAllTextCtrl Method OnInit() text = SelectAllTextCtrl(New SelectAllTextCtrl.Create(Self, -1,,,,,,wxTE_MULTILINE)) End Method End Type Type SelectAllTextCtrl Extends wxTextCtrl Method OnInit() ConnectAny(wxEVT_KEY_DOWN, OnKeyDown) End Method Function OnKeyDown(evt:wxEvent) Local event:wxKeyEvent = wxKeyEvent(evt) If event.ControlDown() Then If event.GetKeyCode() = 65 Then ' 65 on Win32... 1 on Linux... SelectAllTextCtrl(event.parent).SetSelection(-1, -1) End If End If event.skip() End Function End Type