User forums > Using Code::Blocks

Change Log: cmd line for export

<< < (3/3)

BlueHazzard:

--- Quote from: LETARTARE on July 23, 2014, 02:12:20 pm ---Under 'Win32' this call is still not working (svn9778)  >:(

--- End quote ---


well, this was unexpected, i actually never tested it :P

Can you test if it is working on my sqrat port? I hope i will finally find the time in the next days to continue my work, and i will also investigate in this issue...

greetings

BlueHazzard:
Hi!
i had a little time to debug this bug... It seems that the event system isn't finding the right event handler for the ID of any menu... So it seems that the event handler chain isn't made properly...
can please someone test if this bug is also under linux?
can please someone test if this bug is also in >wx2.8 (like 2.9 or 3.0) (i have don't have any HDD Space left, the new is right on his way, so i can't test this until next week)

greetings

BlueHazzard:
Hi!
I fixed this bug in my sqrat port (at least for wx2.8 on Windows). I could not test it under linux, but it should work also there.

Here a "patch"

--- Code: ---src/sdk/scripting/bindings/sc_globals.cpp
@@ -164,7 +164,8 @@ namespace ScriptBindings
#if wxCHECK_VERSION(2, 9, 0)
mbar->GetEventHandler()->ProcessEvent(evt);
#else
- if ( !mbar->ProcessEvent(evt) )
+ if(!Manager::Get()->GetAppWindow()->ProcessEvent(evt))
+ //if ( !mbar->ProcessEvent(evt) )
{
--- End code ---

(simply change the line 167 in file sdk/scripting/sc_globals.cpp from
--- Code: ---if ( !mbar->ProcessEvent(evt) )
--- End code ---
to
--- Code: ---if(!Manager::Get()->GetAppWindow()->ProcessEvent(evt))
--- End code ---
)

greetings and good night

LETARTARE:
Hello @BlueHazard
with which version of C :: B?
I just tested quickly with svn 8778 and the result is negative!

--- Code: ---///-----------------------------------------------------------------------------
/// ===>  no work on VISTA  pack2 !!! <====
///-----------------------------------------------------------------------------
///8- start building the project
local menu = _("/&Build/Build")
Mes = Lf + Tab + _T("--> ") + _("Execute menu entrie") + _T(" ")
Mes += Quote + _("Build->Build") + Quote
/// launches the menu
local id
// #if PATCH_CALLMENU
///------------- patch 'int CallMenu(const wxString& menuPath)' ------------
// id = CallMenu(menu)
///-------------------------------------------------------------------------
// #else
CallMenu(menu)
id = _T("??")
// #endif
/// display
Mes +=  _T(", ") + _("identifier")  + _T(" = ") + _T(id.tostring())
::print( Mes )
--- End code ---



To morrow I take with basic test...

LETARTARE:
Administrators
I find that I pollute this post, because the original subject is different
You could also move (and those of BlueHazard on this) in
http://forums.codeblocks.org/index.php/topic,15539.0.html
What would be more logical.
Thanks you.

Navigation

[0] Message Index

[*] Previous page

Go to full version