DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

View panel - dialog reload

I got a dialog in View panel. Im trying to reload it with script. Dont find a method to reload it, only find refresh method, which doesnt make the same as if i right click on dialog manually and choose "Reload dialog box". How can i trigger this method by script? Is it possible?

thanks for info

0 Kudos
Message 1 of 2
(4,107 Views)

Hi,

 

unfortunately I didn't find any method which would give you same functionality as Reload Dialog Box button from Context menu.

 

What you can do is to save current View Layout and then load it back. It will load again the Dialog from the file, so its actually a true reload 🙂

 

call View.SaveLayout(CurrentScriptPath & "View.tdv")

call View.LoadLayout(CurrentScriptPath & "View.tdv")

 

Hope it helps.

 

Mateusz

---
CLA,CTD,CLED
0 Kudos
Message 2 of 2
(3,973 Views)