Is it possible to modify the Open Window Procedure that the Form Designer auto generates. I ask if it's possible to add an extra parameter into the procedure call
Current output from Form Designger. I have "Caption as a variable" selected with the variable WindowTitle.s
Code: Select all
Procedure OpenAboutWindow(x = 0, y = 0, width = 180, height = 90)
AboutWindow = OpenWindow(#PB_Any, x, y, width, height, WindowTitle.s, #PB_Window_SystemMenu)
OKButton = ButtonGadget(#PB_Any, 40, 50, 100, 25, "OKButtony")
EndProcedure
main.pb
Code: Select all
OpenAboutWindow(x = 45, y = 60, width = 180, height = 90, "My About Page")
Code: Select all
Procedure OpenAboutWindow(x = 0, y = 0, width = 180, height = 90,WindowTitle.s)
AboutWindow = OpenWindow(#PB_Any, x, y, width, height, WindowTitle.s, #PB_Window_SystemMenu)
OKButton = ButtonGadget(#PB_Any, 40, 50, 100, 25, "OKButtony")
EndProcedure
I hope you understand what I mean.