Would it change anything to connect via:
Method OnInit()
Connect(ID_PropGrid, wxEVT_PG_CHANGED, OnPropertyGridChanged)
Connect(ID_PropGrid, wxEVT_PG_CHANGING, OnPropertyGridChanging)
end Method
instead of:
Connect(GadgetPropGrid.ID_PropGrid, wxEVT_PG_CHANGED, GadgetPropGrid._OnPropertyGridChanged)
Connect(GadgetPropGrid.ID_PropGrid, wxEVT_PG_CHANGING, GadgetPropGrid._OnPropertyGridChanging)
Also, and more importantly:
Function _OnPropertyGridChanging(event:wxEvent)
GadgetPropGrid(event.sink).OnPropertyGridChanging(wxPropertyGridEvent(event))
End Function
to
Function _OnPropertyGridChanging(event:wxEvent)
GadgetPropGrid(event.parent).OnPropertyGridChanging(wxPropertyGridEvent(event))
End Function
event.sink -> event.parent?
No clue whether that will help, but it's how i've done it and I haven't run into event problems like that. If it's not that, the only thing I could see causing the events to not show up is that you are not creating the grid with the id of 23052.
You should have absolutely no problems if you use ConnectAny as well.