I have a project that comprises one main file called main.pb and then 3 form files.
The Form files just contain the gadgets on the form.
All code including these window form events are in the main.pb file
Generate Events Procedure is not ticked on any of the forms..
Now close PB and relaunch it and load up the main.pb and the forms, then the Generate Events Procedure gets ticked automatically and then keeps recreating the window event code.
So when I come to run my main.pb I keep getting errors as the Event code is already defined in my main.pb which means I have to go into the forms and deselect the Generate Events Procedure and then delete the events procedures from all my forms.
Can this be fixed please so that when you load up a form the Generate Events Procedure is deselected say maybe by default or create some form load variables that remembers the form settings and uses these when loading the form into the designer.
Thanks
[Done] Generate Events Procedure turns itself back on
-
- Enthusiast
- Posts: 122
- Joined: Sat Nov 19, 2011 6:51 pm
-
- User
- Posts: 54
- Joined: Mon Nov 26, 2012 4:57 pm
Re: Generate Events Procedure Incorrect turns itself back on
Did you disable "Generate event procedure" in "File - Settings - Form"?
-
- Enthusiast
- Posts: 122
- Joined: Sat Nov 19, 2011 6:51 pm
Re: Generate Events Procedure Incorrect turns itself back on
SniffTheGlove is right, if the checkbox is unchecked for a specific window it shouldnt turn itself back on, regardless of the preferences in the IDE.
-
- Enthusiast
- Posts: 122
- Joined: Sat Nov 19, 2011 6:51 pm
Re: Generate Events Procedure Incorrect turns itself back on
Polo, you have done a great job with the Designer. I love it.
Before it was really just playing with code when placing gadgets with constant too and frowing to make adjustments.
Thank you.
Before it was really just playing with code when placing gadgets with constant too and frowing to make adjustments.
Thank you.
-
- User
- Posts: 54
- Joined: Mon Nov 26, 2012 4:57 pm
Re: Generate Events Procedure Incorrect turns itself back on
Yes, it's really a great tool. I like it how it is integrated into the IDE and that it creates PB code which can be modified (with caution) and can directly be used as an include file for a project. And in contrast to other programming environments (e.g. Visual Studio or Real Studio), you can exactly see how your code is working, even if you allow the Form Designer to create the event procedures for your forms. I hope Polo will keep the Form Designer up-to-date when new features will be implemented into PureBasic. 

Re: Generate Events Procedure Incorrect turns itself back on
Thanks for your nice comments!

Of course I will, it's a very busy period for me but every now and then I get some time to work on the designerLothar Schirm wrote:I hope Polo will keep the Form Designer up-to-date when new features will be implemented into PureBasic.
