void onButtonB(Gwen::Controls::Base* pControl) { Gwen::Controls::Label* label = (Gwen::Controls::Label*) pControl; Gwen::UnicodeString la = label->GetText();// node->GetButton()->GetName();// GetText(); Gwen::String laa = Gwen::Utility::UnicodeToString(la); const char* ha = laa.c_str(); selectDemo(sCurrentHightlighted); saveCurrentDemoEntry(sCurrentDemoIndex, startFileName); }
void MyComboBoxCallback(int comboId, const char* item) { //printf("comboId = %d, item = %s\n",comboId, item); if (comboId==DEMO_SELECTION_COMBOBOX) { //find selected item for (int i=0;i<allNames.size();i++) { if (strcmp(item,allNames[i])==0) { selectDemo(i); saveCurrentDemoEntry(sCurrentDemoIndex,startFileName); break; } } } }
void MyComboBoxCallback(int comboId, const char* item) { int numDemos = demoNames.size(); for (int i=0;i<numDemos;i++) { if (!strcmp(demoNames[i],item)) { if (selectedDemo != i) { gReset = true; selectedDemo = i; printf("selected demo %s!\n", item); saveCurrentDemoEntry(i,sStartFileName); } } } }