If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Hi to all! i wanna ask some questions regarding this. I have 2 wxDialog the first one located the wxNotebook wer all the contacts located. The other located the ComboBox where i can enter the number. The problem is that when i click the number or contacts from (wxNotebook) located in the first wxDialog the number will appear at the ComboBox located in the second wxDialog.
In this case after i click the contacts the number appeard at the buttom of the ComboBox (dropdown) not on the display area. What should i do? Is there any event or functions to set the number at the ComboBox display area?
PhoneState* PhoneStateMachine::OnDial(wxString phoneNumber)
{
if (mpState)
{
//setState(mpState->OnDial(phoneNumber));
int pos;
wxString copyNum;
copyNum = (wxString) phoneNumber;
pos = phoneNumber.Find("@");
copyNum.Remove(pos);
// notify listeners that a Dial transition is about to occur
UtlSListIterator iterator(mObservers);
PhoneStateMachineObserver* pObserver;
while (pObserver = (PhoneStateMachineObserver*)iterator())
{
pObserver->OnDial(copyNum);
}
// set the state
setState(mpState->OnDial(phoneNumber));
}
return NULL; // the state machine should only return state pointers from the getState method
}
I use setState(mpState->OnDial(phoneNumber)) but still the numbers display only at the dropdown area not on the upper part.