Hi there, I've made a program for myself that takes wxtextctrl fields, arranges them and prints them out using a dot matrix printer, however I need to create a button that on click clears the fields, and I can't figure out how to structure the command. I'm fairly sure I need to use wxtextctrl::clear but can't for the life of me remember how to structure it.
Code:
void FormFrame::OnClearButtonClick(wxCommandEvent& event)
{
[need to clear a field called varname (ID_VARNAME)]
}
Thank you for your help in advance.