Ok, I think I have a fair enough grasp on it for now...
Heres my class:
Code: Select all
class NUDInfo
{
public:
SetNewUserName();
UpdateListCtrl();
protected:
wxString ContactNameString;
}
NUDInfo::SetNewUserName()
{
ContactNameString = ContactNameEntry->GetValue();
}
NUDInfo::UpdateListCtrl()
{
ContactList->InsertItem(ContactList->GetItemCount(), ContactNameString);
}
So when I want to get the name entered I would use:
Code: Select all
NUDInfo instancename;
instancename.SetNewUserName();
Even with that setting the variable, again, how would I have the Frame know when the dialog was closed so that it can do:
Code: Select all
NUDInfo instancename;
instancename.UpdateListCtrl();
I know there are probably a ton of errors in this code, but I just can't figure this one out
Thanks again!
FlyingIsFun1217
---------------------------------EDIT------------------------------
Thinking about it, will it involve setting an event for the dialog to trigger when its closed, and then an event for the frame to do the instancename.UpdateListCtrl?
Thanks!
FlyingIsFun1217