I finally have the steps for a bug that has been bugging :) me...
Try the following
1. Open a new project
2. Add a control (textbox, but any will do). It will be named Text1 as default
3. Double click the control. (I forgot to rename it and notice it in the functionname)
4. Delete the created function name
5. Go back to the control properties and rename the control (txtLastname)
6. Now double click the control again. No code auto generated.
7. Save the project.
8. Now double click the control again. Code auto generated.
9. Not change the control to txtFirstname.
10 Double click the control and it puts you in the FORM1_TXTLASTNAME_EN_CHANGE function
11. Save the form
12. Double click the control and it creates FORM1_TXTFIRSTNAME_EN_CHANGE
It looks like something isn't being refreshed in memory until the form is saved.
I think resolving this bug will solve many other little quirks I've run into but haven't been able to reproduce.
Hi Brian,
Yes, I can see that scenario happening for sure. You are also correct in assuming that FF refreshes the functions lists when the files are saved. I chose that approach because it would be the least resource intense method rather than constantly polling every code editor window for changes and then reparsing on every character entered.
I have a solution in mind that will easily fix the situation you describe above. I will try it out today to see if that approach will work. I'll post the result here and any fix will be in 3.08.
Actually, step #9 and #10 will no longer be relevant in 3.08 because of the following new feature request that has been implemented for that version:
- 0000585: [New Feature Request] Automatic update message handler names when form/control name changes (Paul Squires) - closed.
Basically, any existing message handlers for forms/controls will have their names automatically changed whenever you change the "(Name)" property for that form/control. That feature was a long time coming...it was requested way back in the early days of FireFly 2. :)
This is all fixed. My fix worked perfectly. Everything is extremely seamless now. You should be able to go through those 12 steps without a problem. 3.08 should be out soon.
Cool. Sounds like 3.08 is going to be quite a list of new features and bug fixes.
Paul, as others have said you provide great support.
As a FF user of I want to help, where I can, to make it a better product.
Looking forward to the upgrade.
Brian
Quote from: TechSupport on June 02, 2010, 08:50:01 AM...it was requested way back in the early days of FireFly 2. :)
YAY! i was listened! :)
I have been wishing for that for a long time, thanx paul! :)
Not bad, hey? It only took 5 years to get that feature implemented! :) :) :)