I have a popup that has a few templates that populate with a db query (which is managed in the template, not avaiable via the popup window properties browser).
I have a big loading gif that is a template that I want to cover everything until all the data is loaded. I gave it a dark grey background.
Inside of the internalFrameActivated event, I do the following:
rc = system.gui.getParentWindow(event).getRootContainer()
loadingVeil = rc.getComponent("Loading_Veil")
rc.setComponentZOrder(loadingVeil, 100)
loadingVeil.visible = True
def turnOffLoading(loadingVeil = loadingVeil):
loadingVeil.visible = False
# other code is here
# ...
# other code here
system.util.invokeLater(turnOffLoading)
The veil does come and go and thats fine. My issue is that one of the templates on screen, which is basically just 3 text area boxes, temporarily had the red box while it’s trying to query for it’s data.
And the other two templates, both combo boxes, simply break through the dark grey background in a very obvious manner.
How can I 1) stop the red boxes from appearing in the template text area boxes and 2) make the template combo boxes not appear above my loading veil component?