Both DB and VS share the same project files/folder.
--
When creating event handlers in DB, there doesn't appear to be a way to define the function: So DB creates the source code with function undefined, like this:
Code: Select all
void MAIN_PANEL::OnButtonAddClick( wxCommandEvent& event )
{
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_ADD in MAIN_PANEL.
event.Skip();
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_ADD in MAIN_PANEL.
}
No problem, we can fire up vs2015 and add the defintiion:
Then, we go back to DB and get the prompt to update the source files so the project files are in sync between VS/DB: ----------------
The problem comes when adding, for eg, an additional event handler or control which triggers DB to create new source files which overwrite and ignore our previously defined functions back to undefined + any lib includes or other edits we might have committed over on vs2015:
Code: Select all
void MAIN_PANEL::OnButtonAddClick( wxCommandEvent& event )
{
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_ADD in MAIN_PANEL.
event.Skip();
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_ADD in MAIN_PANEL.
}
The only way around this that I can see, would be to completely build the GUI in DB before going over to VS and defining the event handler functions, but its more convenient to jump back and forth between VS & DB to develop/debug the GUI/Model incrementally.
Also, it wont be easy to add anything new to the GUI at a later date using DB as it will overwrite all the function definitions and other edits.
Is this a limitation of DB or am I doing something wrong?