me.Handle Failure

The Formatted Text Control from True North Software is an awesome EditField replacement.  If you haven’t taken a look at it, I highly recommend that you do.  One of the things I like the most is that you have all of the source code.

Today, that proved invaluable.  I narrowed the problem down to the Drag code where they call ‘me.handle’ and stuff into the drag object rawdata so they can tell if the drag came from another FTC control.  Since the FTC is a subclass of the canvas control it’s supposed to bring back the handle of the particular control.  I replaced the control and soon discovered it was happening on the 4 other FTC’s on the window as well.

Thankfully I had a conversation going over AIM with someone way smarter than me and while they were stumped they guessed that it might be a window issue.  A quick test and it was confirmed:  the window was causing the issue.

So problem solved after creating a new window and putting all the controls back on.  In the process I discovered (and logged) several bugs/feature requests for the IDE.

Bug:  Drag and Drop of methods don’t work between IDE windows.  Copy and Paste does but I had around 50 methods in this window (the app only has 2 windows so it’s busy) so it was a pain but not too bad.

Feature Request:  Gee, it sure would have been nice to be able to click on the MenuHandler header and be able to copy all of its children for pasting into the new window.  I’m surprised that no one’s asked for this one yet.  This one would have been very handy because of all the formatting commands in the menu.  Oh well, live and learn, and submit a couple of items into Fogbugz.

Just another day in my life as a developer.  🙂