Combobox event problems
Posted: Tue Sep 09, 2008 10:31
Hi Guys
okidoki thanks to ScriptKid who pointed me in the right direction for my last problem
i know have files from a folder being displayed in the combobox list
my problem is whats the correct way of seeing an EventSelectionChanged
as this will be needed to set up other things in the window according to which file is loaded
ie how to ->subscribeEvent
I thought it would be simmiler to the way listbox works
I tried a few ways but cant seem to get this to work one way was
where setFile is a function for changing and refreshing the window
TIA
okidoki thanks to ScriptKid who pointed me in the right direction for my last problem
i know have files from a folder being displayed in the combobox list
my problem is whats the correct way of seeing an EventSelectionChanged
as this will be needed to set up other things in the window according to which file is loaded
ie how to ->subscribeEvent
I thought it would be simmiler to the way listbox works
I tried a few ways but cant seem to get this to work one way was
Code: Select all
->subscribeEvent(CEGUI::ListboxTextItem::setSelected,
CEGUI::Event::Subscriber(SetFile));
where setFile is a function for changing and refreshing the window
TIA