Visual Designer/Generate Source overwrites previous work?
Posted: Sun Aug 10, 2003 3:43 am
Okay, I'm very new to PureBasic.
I'm trying to learn Visual Designer, which is incredible. I created a project called AWS (for Atomic Web Server, which I'm playing with). I specified AWS.PB as the main file and COMMON.PB as the include file. I then designed a screen with a ListView Gadget, with the idea that I would be able to create a status screen to see what people are requesting, etc.
I did a Generate Source and Visual Designer created the two files, which I used the PB editor to open. I started adding the Atomic Web Server.pb code which came in the sample code directory to the AWS.PB file which the Visual Designer created.
But then I decided to make some changes to the screen and went back into Visual Designer and added a button. I did a "Generate Source" and was asked if I wanted to overwrite my current source (which I backed up just in case). I said sure and sure enough, it didn't just create a new COMMON.PB but also created a new (single line) AWS.PB. No big deal, like I said, I expected it would do this and backed-up my work beforehand.
I'm wondering what the workflow is here. Do people normally not specify a main file in the project settings and just create one themselves? Or do you normally create a third file with all your actual code in it? I want to get a handle on this now, so I don't erase substantial work by using Visual Designer in the future.
Thanks,
Phil
I'm trying to learn Visual Designer, which is incredible. I created a project called AWS (for Atomic Web Server, which I'm playing with). I specified AWS.PB as the main file and COMMON.PB as the include file. I then designed a screen with a ListView Gadget, with the idea that I would be able to create a status screen to see what people are requesting, etc.
I did a Generate Source and Visual Designer created the two files, which I used the PB editor to open. I started adding the Atomic Web Server.pb code which came in the sample code directory to the AWS.PB file which the Visual Designer created.
But then I decided to make some changes to the screen and went back into Visual Designer and added a button. I did a "Generate Source" and was asked if I wanted to overwrite my current source (which I backed up just in case). I said sure and sure enough, it didn't just create a new COMMON.PB but also created a new (single line) AWS.PB. No big deal, like I said, I expected it would do this and backed-up my work beforehand.
I'm wondering what the workflow is here. Do people normally not specify a main file in the project settings and just create one themselves? Or do you normally create a third file with all your actual code in it? I want to get a handle on this now, so I don't erase substantial work by using Visual Designer in the future.
Thanks,
Phil