hi,
I have a screen with 10 labels.And based on the key I press, the screen should change and a dialog has to appear.
I want to do it using Modal/view architecture.I am not getting any idea how to do.Plz help/.
Printable View
hi,
I have a screen with 10 labels.And based on the key I press, the screen should change and a dialog has to appear.
I want to do it using Modal/view architecture.I am not getting any idea how to do.Plz help/.
Your problem seems related only to GUI, where is the data ??
I am not sure of the Model View architecture... but can suggest the following pseudo code for ur problem -
Hope it helps :)Code:
{ LabelWidget * m_pLabelWidget; Screen * m_pScreen; MyWindow() { } } { if(button == "1") { m_pScreen->changeColor(green); // pop dialog // other things you want to do.... } else ... ... }
What is that Screen* and LabelWidget*?