Author Topic: CB_VAR_RECENT_FILES_AND_PROJECTS  (Read 5225 times)

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
CB_VAR_RECENT_FILES_AND_PROJECTS
« 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...

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: CB_VAR_RECENT_FILES_AND_PROJECTS
« Reply #1 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)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: CB_VAR_RECENT_FILES_AND_PROJECTS
« Reply #2 on: November 05, 2006, 04:48:29 pm »
Maybe we need to declare some *real* events for this to work...
Be patient!
This bug will be fixed soon...

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: CB_VAR_RECENT_FILES_AND_PROJECTS
« Reply #3 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();

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: CB_VAR_RECENT_FILES_AND_PROJECTS
« Reply #4 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.