R
Roy Chastain
I have a TextBox on a TabPage. On the main form that contains the TabControl I have a ToolBar and a menu.
If I type into the TextBox and click a button on that same TabPage the OnLeave fires as expected.
If I type into the TextBox and then click on the ToolBar or go to a Menu, the OnLeave event does not get generated.
Is this expected behavior?
I was using the OnLeave to know that it was time to update something else with the contents of the text box. In this case the
contents of the TextBox need to be put into text that will be saved to a file by the button on the ToolBar or by the FileSave
menu. Since the OnLeave is not getting fired, I am not updating the text before saving the file.
What is the 'normal' pattern for handling the completion of a TextBox when there a dozen or so ways to invoke things that don't
cause it OnLeave to be fired. The current program design makes it somewhat impractical to run around and get the contents of
every TextBox etc when a Save is requested.
Thanks
If I type into the TextBox and click a button on that same TabPage the OnLeave fires as expected.
If I type into the TextBox and then click on the ToolBar or go to a Menu, the OnLeave event does not get generated.
Is this expected behavior?
I was using the OnLeave to know that it was time to update something else with the contents of the text box. In this case the
contents of the TextBox need to be put into text that will be saved to a file by the button on the ToolBar or by the FileSave
menu. Since the OnLeave is not getting fired, I am not updating the text before saving the file.
What is the 'normal' pattern for handling the completion of a TextBox when there a dozen or so ways to invoke things that don't
cause it OnLeave to be fired. The current program design makes it somewhat impractical to run around and get the contents of
every TextBox etc when a Save is requested.
Thanks