howardpc,
Thank you, I was thinking incorrectly about it.
The MainForm has menu handlers, as FileOpen. The DataForm has different menu handlers, as DataStatistics. So, as you say, each Form should get the message intended for it.
So the problem is that after I open a file using MainForm.FileOpen, then DataForm.ShowOn top, the DataForm.DataStatistics menu item is enabled in the menubar, but does nothing.
DataForm is not getting DataForm.Menu messages. If I click outside DataForm and back on it, it starts getting DataForm.Menu messages and works as expected.
In other words, I can select 'Data Statistics' from the DataForm.Menu, but the handler DataForm.DoStatistics is never called. Click off and back on DataForm fixes this.
It seems like a bug. I can try to reproduce it in a simple case.
If it is a bug, maybe someone can suggest a workaround?
VTwin