I use CTGUI and trying create the simple menu bar.
Here is how I connecting the bar:
Here is my callback:
Signal ID, that returns by tguiWidget_connectItemSelected sets to zero. Is it expected behaviour? Add that tguiWidget_connect returns non-zero and works perfectly.
Here is how I connecting the bar:
Code (none) Select
tguiWidget_connectItemSelected(menu, "menuitemclicked", func);
Here is my callback:
Code (none) Select
void
func(const sfUint32 *menu, const sfUint32 *text) {
/* to handle menu and text */
}
Signal ID, that returns by tguiWidget_connectItemSelected sets to zero. Is it expected behaviour? Add that tguiWidget_connect returns non-zero and works perfectly.