How to attach a main form to a project, with code?
Posted: Mon Aug 12, 2013 5:01 pm
Hi,
I'm just playing with buttons and edit boxes, and tried to install a simple button which displays a message box.
There's a Project, called Firstform. A form called frmFirstform.pbf. and code called frmFirstFor.pb.
How do you execute the form, and make the code work, when you compile? If click Input source file in Compiler options, it only allows you to select the code, but not the form. Are you supposed to include the form in the code? I've already added the form to the project, and added this code to the .pb module:
Procedure btnTest_Test(EventType)
MessageRequester("Info", "Return key pressed", 0)
EndProcedure
It compiles, but doesn't display the form. I can probably easily figure out how to do the whole thing in code, without the Form Designer, but would prefer not to give up the convenience of letting the Form Designer help with the coordinates.
What's missing?
I'm just playing with buttons and edit boxes, and tried to install a simple button which displays a message box.
There's a Project, called Firstform. A form called frmFirstform.pbf. and code called frmFirstFor.pb.
How do you execute the form, and make the code work, when you compile? If click Input source file in Compiler options, it only allows you to select the code, but not the form. Are you supposed to include the form in the code? I've already added the form to the project, and added this code to the .pb module:
Procedure btnTest_Test(EventType)
MessageRequester("Info", "Return key pressed", 0)
EndProcedure
It compiles, but doesn't display the form. I can probably easily figure out how to do the whole thing in code, without the Form Designer, but would prefer not to give up the convenience of letting the Form Designer help with the coordinates.
What's missing?