User forums > Nightly builds

The 09 February 2026 build (13785) is out.

<< < (3/4) > >>

Xaviou:
Hi

--- Quote from: Miguel Gimenez on February 18, 2026, 07:13:22 pm ---EDIT:
The solution recommended by Gemini is the same but using "unsigned int"

--- Code: ---BindMethod(v, _SC("GetAlpha"), NoParamGetterInt<unsigned int, wxColour, &wxColour::GetAlpha>, _SC("wxColour::GetAlpha"));
--- End code ---

--- End quote ---

Well : I've also submitted the problem to an AI (Claude via the Codex extension of VSCode)  :-[ : it gave me a more complex solution (tested with rev 13793 and it worked) :

He told me to add 4 new functions (near other wrappers wxColour, for example, after wxColour_To_String) :

--- Code: ---SQInteger wxColour_Blue(HSQUIRRELVM v)
{
    ExtractParams1<const wxColour*> extractor(v);
    if (!extractor.Process("wxColour_Blue"))
        return extractor.ErrorMessage();
    sq_pushinteger(v, extractor.p0->Blue());
    return 1;
}

SQInteger wxColour_Green(HSQUIRRELVM v)
{
    ExtractParams1<const wxColour*> extractor(v);
    if (!extractor.Process("wxColour_Green"))
        return extractor.ErrorMessage();
    sq_pushinteger(v, extractor.p0->Green());
    return 1;
}

SQInteger wxColour_Red(HSQUIRRELVM v)
{
    ExtractParams1<const wxColour*> extractor(v);
    if (!extractor.Process("wxColour_Red"))
        return extractor.ErrorMessage();
    sq_pushinteger(v, extractor.p0->Red());
    return 1;
}

SQInteger wxColour_Alpha(HSQUIRRELVM v)
{
    ExtractParams1<const wxColour*> extractor(v);
    if (!extractor.Process("wxColour_Alpha"))
        return extractor.ErrorMessage();
    sq_pushinteger(v, extractor.p0->Alpha());
    return 1;
}

--- End code ---
And then, replacing the 4 "BindMethod" witch were causing the build error:

--- Code: ---BindMethod(v, _SC("Blue"), wxColour_Blue, _SC("wxColour::Blue"));
BindMethod(v, _SC("Green"), wxColour_Green, _SC("wxColour::Green"));
BindMethod(v, _SC("Red"), wxColour_Red, _SC("wxColour::Red"));
BindMethod(v, _SC("Alpha"), wxColour_Alpha, _SC("wxColour::Alpha"));

--- End code ---

Regards
Xav'

Miguel Gimenez:
Thank you, I will integrate this.

Miguel Gimenez:
Change applied in r13802, thank you.

Xaviou:
Hi.

There is also some few code modifications to the wxSmith plugin for wxWidgets-3.3.2.

Attached is a patch  from svn 13810.

Regards
Xav'

ollydbg:

--- Quote from: Xaviou on March 05, 2026, 08:40:48 pm ---Hi.

There is also some few code modifications to the wxSmith plugin for wxWidgets-3.3.2.

Attached is a patch  from svn 13810.

Regards
Xav'

--- End quote ---

Hi, Xaviou, I'm not sure why the "at" is preferred instead of "[]"?

We have some discussion here: New wxWidgets releases

Thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version