Author Topic: The SetTitle function of script can't to update the UI information  (Read 8906 times)

Offline Chun Jiu

  • Multiple posting newcomer
  • *
  • Posts: 71
  • My Girlfriend
    • EasilyGCC
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)

I love my girlfriend like c++!    :-)

http://pan.baidu.com/s/1feNwU
easilygcc is a gmail's email.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The SetTitle function of script can't to update the UI information
« Reply #1 on: March 26, 2015, 09:04:40 am »
Have you tried to call the RebuildTree method of the ProjectManager?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Chun Jiu

  • Multiple posting newcomer
  • *
  • Posts: 71
  • My Girlfriend
    • EasilyGCC
Re: The SetTitle function of script can't to update the UI information
« Reply #2 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.

« Last Edit: March 26, 2015, 10:49:57 am by Chun Jiu »
I love my girlfriend like c++!    :-)

http://pan.baidu.com/s/1feNwU
easilygcc is a gmail's email.

Offline Chun Jiu

  • Multiple posting newcomer
  • *
  • Posts: 71
  • My Girlfriend
    • EasilyGCC
Re: The SetTitle function of script can't to update the UI information
« Reply #3 on: March 26, 2015, 10:53:39 am »
Have you tried to call the RebuildTree method of the ProjectManager?

And here:
I love my girlfriend like c++!    :-)

http://pan.baidu.com/s/1feNwU
easilygcc is a gmail's email.