I have been looking into changing the name of some windows based on some tag names. I can’t seem to be able to access and change the window name in a binding to the tags and I have to write an script which involves firing an event which is not desirable. I do not want to allow any change to the windows name while the program is running of course.
Meanwhile I am currently using an expression binding on my window’s title property:
runscript("self.setName('desired name')", 0)
However, this only changes the name of the window at the bottom window bar of the designer where windows open when clicked on in the project tree. Their name does not however change in the tree under the Windows tree, where the project browser is. And when the save button is pressed the name change due to the expression binding reverts back to the original window name.
I was wondering if there is a way to achieve what I am trying to do?