Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: Chun Jiu on March 26, 2015, 05:41:12 am

Title: The SetTitle function of script can't to update the UI information
Post by: Chun Jiu on March 26, 2015, 05:41:12 am
Hi ,

I tried SetTitle function of the script, and they successfully modify the titles in the project, but the information on the UI has not synchronized.

Code
GetProjectManager().GetProject(0).SetTitle(_T("Collect_keys_WithThread"));
GetProjectManager().GetProject(0).GetBuildTarget(0).SetTitle(_T("Debug x86"));
GetProjectManager().GetProject(0).GetBuildTarget(0).SetModified(true);
GetProjectManager().GetProject(0).SetModified(true)

Title: Re: The SetTitle function of script can't to update the UI information
Post by: oBFusCATed on March 26, 2015, 09:04:40 am
Have you tried to call the RebuildTree method of the ProjectManager?
Title: Re: The SetTitle function of script can't to update the UI information
Post by: Chun Jiu on March 26, 2015, 10:42:43 am
Have you tried to call the RebuildTree method of the ProjectManager?

Thank you, After RebuildTree, this tree is updated. Now the target's title can't to update, It is located below the menu bar.

Title: Re: The SetTitle function of script can't to update the UI information
Post by: Chun Jiu on March 26, 2015, 10:53:39 am
Have you tried to call the RebuildTree method of the ProjectManager?

And here: