EGET_COMBO_BOX_CHANGED on MacOS X

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
fabietto
Posts: 93
Joined: Wed Sep 24, 2008 4:38 pm
Location: Plymouth, UK
Contact:

EGET_COMBO_BOX_CHANGED on MacOS X

Post by fabietto »

Dear all,

I don't know if the following issues have already been raised. I did a few searches on the forum and I didn't find anything about these. The troubles I'm experiencing are related to the employment of IGUIComboBox with Irrlicht 1.4.2 running on MacOS X.

First of all, the method setEnabled() doesn't look working. If I use it, both passing TRUE or FALSE parameters, nothing happens on the target ComboBox.

Then, the event receiver seems ignoring the EGET_COMBO_BOX_CHANGED gui event. The code posted here, for example, is not executed.

Code: Select all

			// A combobox has been modified
			case irr::gui::EGET_COMBO_BOX_CHANGED:
				
				// Switch current active camera
				if (id == 103) {
					
					// Read the new user-selected camera
					int selectedCamera = simulator->getIntegerFromString(guip->numberOfStartingPopulationComboBox->getSelected());
					
					// De-activate the currently selected camera
					guip->smgr->setActiveCamera(0);
					
					// Check which camera has been selected
					if (selectedCamera == 0) guip->smgr->setActiveCamera(guip->fixedCamera);
					else if (selectedCamera == 1) guip->smgr->setActiveCamera(guip->FPSCamera);
					
				}
				
				break;
That's all... if anybody knows how to solve these issues, I think it could be very interesting for the entire Irrlicht's Mac subfamily! :)
Post Reply