Editor Bug?

Started by Richard Marchessault, November 24, 2009, 11:01:56 PM

Previous topic - Next topic

Richard Marchessault

I'm working with an existing form. If I work with the FF workspace I can see that there is a control called Text1 that has two procedures associated with it, namely, EN_CHANGE and EN_KILLFOCUS. If I double click on either of these procedures in the FF workspace window, the procedure and the code for it appear in the editor window. Great.

If, however, I select Text1 from the dropdown box on the left of the editor window, a new EN_CHANGE procedure is created. Now I have two EN_CHANGE procedures, namely the existing one and the newly created one. If I click on the dropdown box to the right of the editor window to select a procedure for Text1, neither EN_CHANGE nor EN_KILLFOCUS are highlighted as they used to be in FF2. If I click on either the non-highlighted EN_CHANGE or EN_KILLFOCUS in the right drop down menu, a new EN_CHANGE or EN_KILLFOCUS procedure is created. Now I have two or more procedures for each.

This has to be a bug.
Thanks,
Dick

Paul Squires

Hi Everyone,

Could you please try to recreate the problem using the steps that Dick has outlined in his post above. I have not been able to recreate the problem that Dick describes. When I select the "Text1" from the left dropdown combobox, the cursor always positions at the original EN_CHANGE rather than creating a new version of that handler. Likewise, when I view the list of messages int eh right dropdown combobox, the EN_CHANGE message is bolded.

Paul Squires
PlanetSquires Software

Rolf Brandt

I used to have that in v3.02 or 3.03. Those versions I had also installed in the old FF2 folder. Version 3.04 I installed completely new in another folder. Since then I can not duplicate the problem anymore.

Rolf
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Richard Marchessault

#3
I had installed the program in the C:\Program Files\Firefly Visual Designer folder. I uninstalled it and reinstalled to C:\Program Files\FF3 Visual Designer. Same problem with the Editor. I uninstalled again and reinstalled to C:\FF3 Visual Designer. Same problem with Editor. Repeated the last install with the Local option. Same problem with the Editor.

If I open one of the sample projects, I don't have the problem. I'm thinking that this is somehow the result of a conversion problem from FF2 to FF3. I don't know how else to explain it. The conversion was done by the original FF3. Maybe I should try doing the conversion again using 3.04.

Well that was not the problem. Tried a fresh conversion of FF2 to FF3. Still having the editor problem. This sure is frustrating.
Thanks,
Dick

John Montenigro

Hmm... I'm having some trouble trying to duplicate this... (using 3.04)

My first problem is that I have a large form with over 40 controls (checkboxes, labels, etc.). When I'm in the code view for the form and I open the left (General) dropbox, I do not see all my controls. For example, I do see txtStartYear but not txtEndYear...  I haven't checked to see if there are other controls that aren't being listed. (I suspect this may just be a boundary problem - off by the last one...)

(I also noticed that the list sorts mostly by alpha, but puts capitals before lowercase... thus Label1 preceeds lblInfo1...)

With those observations out of the way, I noticed that when I select a control from the General list (except for a form?), it seems that FF3 immediately either positions at or inserts whatever is the first function in the right-side list (Other code). This is not exactly the same problem that Richard reported, but it might be related...

Richard Marchessault

I'm also finding that some forms seem to work fine but others never seem to work correctly. This is more of a nuisance than anything else.
Thanks,
Dick

Elias Montoya

I cannot duplicate this either.
Win7, iMac x64 Retina display 5K, i7-5820K 4.4 ghz, 32GB RAM, All updates applied. - Firefly 3.70.

Marc van Cauwenberghe

Hve not been able to duplicate, sorry

Richard Marchessault

Well I would like to be able to report that this problem has disappeared but that is not the case. It happens consistently to me every time. I just checked both a complicated and a simple form. Both forms have a TextBox array. The complicated form has code for a text box KillFocus function. The simple form does not have any code for the TextBox (data entered in the text box is processed when a command button is clicked). In both cases if I click on Text1 in the combo box on the top left of the editor screen, a blank EnChange function is added to the end of my code. I would expect to find that with the complicated case the existing KillFocus funtion would be highlighted for Text1. However, not only is it not highlighted but if I click on KillFocus, the editor adds another blank KillFocus function to the end of my procedure list.

I can deal with this by deleting any blank procedures added. I can also use the FireFly workspace to navigate to my code instead of the editor combo boxes. It is just a pain and it is not the way it is supposed to work.

I am guessing that this is somehow related to the FF2 to FF3 import. Somehow the FireFly workspace function knows where my routines are and can locate them but the editor does not. Hopefully Paul can find the root cause of this problem and why everyone does not experience it.
Thanks,
Dick

Paul Squires

Quote
...have a TextBox array

Ah! Now that may be the problem. I don't think that I tested it with a control array.

I will report back.
Paul Squires
PlanetSquires Software

Paul Squires

Couldn't duplicate it in a FF3 created project, but I was able to re-create it by creating an FF2 project and importing it. I will now have to trace the code to see why the duplicate handlers got created. Very strange.


Paul Squires
PlanetSquires Software

Paul Squires

After spending hours boggle minded looking at the code, it finally clicked in for me.

Dick - I am going to email you a copy of the modified exe for you to try.

Looks like it was related to imported FF2 projects and ControlIndexes for controls in control arrays.

Paul Squires
PlanetSquires Software

Paul Squires

Confirmed with Dick that the problem is now fixed.

Fix will be in v3.05.
Paul Squires
PlanetSquires Software