Is it possible to display the module coming from a non-displayed state(hidden)? I have made a temporary solution where I close the previously opened module and then open it in display mode, but this can be extremely slow since it is opening the module twice:
// We actually get the mod from the object but you get what I mean
mod = fooFunc() // foo.inc
string modName = fullName(mod) // get module path
close(mod) // close hidden module
mod = read(modName, true, true) // open same module in "display" mode
close
is not necessary.
Module mod = read ("/the/module", false, true)
Object myObject = first mod
mod = read (fullName (module myObject), true, true)
works perfectly. I did not do any performance tests, but I don't think that making the module visible takes much time compared to opening it from scratch.