Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 592 Bytes
# Form/Window Controller - Source Code File
load "firstwindowView.ring"
load "secondwindowController.ring"
if IsMainSourceFile() {
new qApp {
StyleFusion()
open_window(:firstwindowController)
exec()
}
}
class firstwindowController from windowsControllerParent
oView = new firstwindowView
func OpenSecondWindow
Open_WindowAndLink(:SecondWindowController,self)
func SendMessage
if isMethod(self,:IsSecondWindow) {
if IsSecondWindow() {
SecondWindow().setMessage("Message from the first window")
}
}
func setMessage cMessage
oView.Label1.setText(cMessage)