Page 1 of 1
how to get events from combo box. I didnt find eget_comobox_
Posted: Fri Oct 01, 2004 8:05 pm
by Mr.Gluck
how>?
Posted: Fri Oct 01, 2004 8:23 pm
by bal
Damned, read those tutorials.
http://irrlicht.sourceforge.net/tut005.html if you couldn't find it.
Posted: Fri Oct 01, 2004 8:32 pm
by Dingsi
Look at the code.. it's not really the GUI-example, is it?
Something went wrong when the tuts were updated. ^^.
i read
Posted: Fri Oct 01, 2004 8:46 pm
by Mr.Gluck
i read all tuts
For first : movement example does not constain combobox
For second: in the mesh tut is only fake - no example how to control combobox.
For third: there is no EGET_COMBOBOX_CHANGED in .doc
.
Posted: Sat Oct 02, 2004 4:09 pm
by Mr.Gluck
i tried to use case with the number(ID) of me combobox, but nothing good...
.
Posted: Tue Oct 05, 2004 5:25 pm
by Mr.Gluck
and so i asked this on ather forum where people said that LISTBOX_CHANGED works with COMBOBOX events, but i tried and nothing again... it doesnt work!
so the question is where something like COMBOBOX_CHANGED or how to work with combo?
Posted: Tue Oct 05, 2004 8:49 pm
by Harry_Mystic
Same problem here. It seems that comboBox does not send any events when clicked or I am doing something wrong.
In event function:
Code: Select all
if (event.EventType == EET_GUI_EVENT)
{
s32 id = event.GUIEvent.Caller->getID();
printf("\nID: %d\n", id);
switch(id)
{
case 106:
if (event.GUIEvent.EventType == gui::EGET_LISTBOX_CHANGED)
{
selectedResolution = ((gui::IGUIListBox*)event.GUIEvent.Caller)->getSelected();
printf("\nListbox changed %d\n", selectedResolution);
}
break;
case 108:
if (event.GUIEvent.EventType == gui::EGET_LISTBOX_CHANGED)
{
selectedCombo = ((gui::IGUIComboBox*)event.GUIEvent.Caller)->getSelected();
printf("\nCombo changed %d\n", selectedCombo);
}
break;
...
106 is a ListBox and 108 is a ComboBox.
I can see the ID when I'am over the comboBox with the mouse (printf ID) but don't get the selected item when I change it. The printf in "case 108" doesn't work at all. Everything else, like my ListBox here, works fine and shows me the selected item.
...
Posted: Wed Oct 06, 2004 5:33 pm
by Mr.Gluck
does anybody know what to do?
.
Posted: Fri Oct 08, 2004 5:17 pm
by kraket
2 Harry_Mystic: had you solve this problem?
Re: .
Posted: Fri Oct 08, 2004 7:06 pm
by Harry_Mystic
kraket wrote:2 Harry_Mystic: had you solve this problem?
No, sorry. Just tried some changes in my code but nothing happens.
Maybe someone more experienced can have a look at this.
.
Posted: Sat Oct 09, 2004 6:03 am
by Mr.Gluck
I think that engine has a problem with it.
Posted: Sat Oct 09, 2004 8:27 am
by bal
According the the source you should use EGET_BUTTON_CLICKED and EGET_LISTBOX_CHANGED ... Report if it works or not
.
i saw
Posted: Sun Oct 10, 2004 7:26 am
by Mr.Gluck
IMHO, according to the source i saw, EGET_BUTTON_CLICKED is only for intrnal use, e.g. to draw combo. Then the main role is ListBox and in the proram i must catch the changing of ListBox. Ok, i tried to use:
case EGET_LISTBOX_CHANGED:
case EGET_BUTTON_CLICKED:
but nothing at all.
Does anybody have a working example. Please, send it to
mr_gluck@mail.ru