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.

Messages - ksyrx

Pages: [1]
Help requests / Re: CTGUI 0.8.3 MenuBar zero signal ID
« on: 23 June 2020, 15:00:33 »
> ... Could you check what tgui_getLastError() returns ...

Oh, I was looking for getting the last error inattentively...

TGUI: 0.8.7;
CTGUI: 0.8.3;

tgui_getLastError returns: "Signal 'MenuItemClicked' could not provide data for unbound parameters.". I googled it and wandered here:, but not understood how can this be applied to the my problem.

Between this and then, excuse me for post placement about CTGUI here - I haven't found the better section.

Help requests / CTGUI 0.8.3 MenuBar zero signal ID
« on: 23 June 2020, 09:51:18 »
I use CTGUI and trying create the simple menu bar.

Here is how I connecting the bar:

tguiWidget_connectItemSelected(menu, "menuitemclicked", func);

Here is my callback:

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.

Pages: [1]