true modal-style popup window
under review
P
Pablo Di Benedetto
Similar to JDialog with setModal(true), but with Ignition's windows.
Maybe a third optional argument in system.nav.openWindow(path [, params])
Log In
C
Chad Gregory
How has this not been completed in 5 years? This needed to be in perspective yesterday.
awalker
under review
p
pphillips@vitro.com
From my perspective, there almost needs to be another "class" or type of window similar to the idea of a VB form. This could be done either with more flexible gui boxes or (preferably) with a different type of window. Currently, the messagebox, confirmbox and inputbox require operator input to cancel, while regular windows can't make the calling function code wait for some input/return value.
P
Pablo Di Benedetto
pphillips@ppg.com commented: "It would be even better if there was also the ability to return a value back to the calling routine on closure of the pop-up."
Yes. Great idea. Maybe add a fourth argument, as a callback python function that will be called before closing the window, and that accept a argument to point to the closing window instance.
Something like this, to open a modal window and execute a function when closing:
def callback(window):
if window.getRootContainer().propertyToCheck: #or whatever to set while the window is open
pass # accept code
else:
pass # cancel code
system.nav.openWindow(path, params={}, modal=True, callback=callback)
p
pphillips@vitro.com
This would be very helpful. It would be even better if there was also the ability to return a value back to the calling routine on closure of the pop-up. This would allow many more options than just the inputBox, confirmBox, etc. where the calling code waits for the pop-up input.