Understanding the relationship between the form and PureBasic code
Posted: Tue Aug 02, 2022 4:05 pm
I'm new to this and having difficulty understanding the relationship between the form and my code. I've developed with Visual Basic in the past, which I think stores the coordinates and settings of visual objects within their own file. Does PureBasic's designer store them in this way too?
What confuses me, is that when I add something to a blank form and then switch to the code, it opens a new tab called <New Form>* and tells me not to change that code (see below).
I'm not sure what exactly can be modified. It says "manual modification is possible to adjust existing commands, but anything else will be dropped". So is it saying that I should add my business logic to another source file? If so, what is the relationship between these two files?
Is there anything such as a tutorial to get me started? I have followed several of the PureProgramming videos but they appear to cover only coding, unless I've missed it. Thanks.
What confuses me, is that when I add something to a blank form and then switch to the code, it opens a new tab called <New Form>* and tells me not to change that code (see below).
Code: Select all
; This code is automatically generated by the FormDesigner.
; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
; Event procedures needs to be put in another source file.
Is there anything such as a tutorial to get me started? I have followed several of the PureProgramming videos but they appear to cover only coding, unless I've missed it. Thanks.