Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - ksyrx

#1
I use CTGUI and trying create the simple menu bar.

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.