How to move a symbol(such as a value) to front of other symbols by VBA in ProcessBook? Just Like Menu's "Arrange"-->"Bring to front"。
Hi Sun Wei,
At the moment, there are no functions in ProcessBook VBA that allows you to control the order of symbols in the display. This was discussed in another post before. There are some workaround mentioned in the post. As mentioned by Andreas at the end of the discussion, he also mentioned that it is possible to simulate pressing keys in VBA, hence possible to simulate selecting the bring to front option in the menu.
At the same time, an enhancement request has been created to have functions for this added in future versions of ProcessBook.
I think something was missed in the last discussion. I haven't tried this in PB lately, but the order of the symbols in the symbols collection can be changed for symbols that you are allowed to create (value symbols, etc). Delete the value symbol and then recreate it with Display.Symbols.Add and it will be on top. The only problem is that you have to save enough information about the symbol in order to re-set all it's properties and some may not be exposed via automation. However, for simple symbols, this should work.
I have tried by Han Yong's suggest.By this way I think the problem can be resolved.
Retrieving data ...