Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: afb on November 01, 2006, 10:37:01 pm

Title: CB_VAR_RECENT_FILES_AND_PROJECTS
Post by: afb on November 01, 2006, 10:37:01 pm
Does anyone have an idea why this would be broken straight across the board on Mac OS X ? That is, the Start Here text replacement isn't working in either of wxMac nor wxGTK ?

The "Create" and "Open" links aren't working either, so I'm guessing it is something about those custom event types that just isn't happening on the Mac OS X platform. Or something...
Title: Re: CB_VAR_RECENT_FILES_AND_PROJECTS
Post by: afb on November 05, 2006, 04:34:19 pm
Update: the wxCommandEvents are created, but the handlers are never invoked.
(MainFrame::OnStartHereLink and MainFrame::OnStartHereVarSubst not called)
Title: Re: CB_VAR_RECENT_FILES_AND_PROJECTS
Post by: mandrav on November 05, 2006, 04:48:29 pm
Maybe we need to declare some *real* events for this to work...
Title: Re: CB_VAR_RECENT_FILES_AND_PROJECTS
Post by: afb on November 05, 2006, 09:07:47 pm
It wasn't the event type (using MENU is OK), it was the event id...
Replacing wxNewId() with a constant number made it work here.

Probably a compiler issue, which explains why it wasn't working
in wxGTK either. Moving the initializers to main.cpp also worked:

Code
int idStartHerePageLink = wxNewId();
int idStartHerePageVarSubst = wxNewId();
Title: Re: CB_VAR_RECENT_FILES_AND_PROJECTS
Post by: afb on November 07, 2006, 03:19:42 pm
http://www.algonet.se/~afb/wx/codeblocks-starthereid.patch
Fixes both of the "Start Here" issues (replace/links) on wxMac.