[Done] Generate Events Procedure turns itself back on

You need some new stunning features ? Tell us here.
SniffTheGlove
Enthusiast
Enthusiast
Posts: 122
Joined: Sat Nov 19, 2011 6:51 pm

[Done] Generate Events Procedure turns itself back on

Post by SniffTheGlove »

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
Lothar Schirm
User
User
Posts: 54
Joined: Mon Nov 26, 2012 4:57 pm

Re: Generate Events Procedure Incorrect turns itself back on

Post by Lothar Schirm »

Did you disable "Generate event procedure" in "File - Settings - Form"?
SniffTheGlove
Enthusiast
Enthusiast
Posts: 122
Joined: Sat Nov 19, 2011 6:51 pm

Re: Generate Events Procedure Incorrect turns itself back on

Post by SniffTheGlove »

Thanks Lothar
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Generate Events Procedure Incorrect turns itself back on

Post by Polo »

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.
SniffTheGlove
Enthusiast
Enthusiast
Posts: 122
Joined: Sat Nov 19, 2011 6:51 pm

Re: Generate Events Procedure Incorrect turns itself back on

Post by SniffTheGlove »

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.
Lothar Schirm
User
User
Posts: 54
Joined: Mon Nov 26, 2012 4:57 pm

Re: Generate Events Procedure Incorrect turns itself back on

Post by Lothar Schirm »

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. :D
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Generate Events Procedure Incorrect turns itself back on

Post by Polo »

Thanks for your nice comments!
Lothar Schirm wrote:I hope Polo will keep the Form Designer up-to-date when new features will be implemented into PureBasic. :D
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 designer :)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Generate Events Procedure Incorrect turns itself back on

Post by Polo »

Fixed.
Post Reply