Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 479 Bytes
# Form/Window Controller - Source Code File
load "secondwindowView.ring"
if IsMainSourceFile() {
new qApp {
StyleFusion()
open_window(:secondwindowController)
exec()
}
}
class secondwindowController from windowsControllerParent
oView = new secondwindowView
func CloseWindow
oView.win.Close()
func setMessage cMessage
oView.label1.setText(cMessage)
func SendMessage
if isFirstWindow() {
FirstWindow().setMessage("Message from the Second Window")
}