Control handles do not inherit parent form name changes

Started by George Bleck, April 14, 2004, 12:56:37 AM

Previous topic - Next topic

George Bleck

If you create a form (let's say it's named "TEST") and then reference the handle of a control it will be something along the line HWND_TEST_CONTROLNAME.

If you subsequently change the form name, for this example let's change it to "frmTEST", the control handles to not inherit the form name change.

You would expect existing referenced control handles to change to HWND_FRMTEST_CONTROLNAME but they maintain the old name.

Just an FYI, make sure you name your forms appropriately from the beginning.

TechSupport

That's right George, the control names will not automatically change. It would be very hard for FireFly to automatically do this. Basically, everytime a Form name (or even a Control name for that matter) is changed, then the entire source code would need to be parsed and updated.

hmmm.... come to think of it, the user would have to do this anyway, so maybe it would be just as easy for FireFly to do it instead. I'll think about this a little more. Maybe make it an optional Environment option.