Home > Back-end >  Under the MDI child window problem
Under the MDI child window problem

Time:09-21

Experience is not enough, also don't know how to check, so you also come to ask you, in asking you a great god feel free to comment!
Describe the problem first,
1, MDI program, a menu item is created dynamically, it can be, for example, suppose I have a dynamic array arrStock, inside put the stock code, according to the array arrStock to create a dynamic menu and menu items is under the stock code, this part I made, no problem, so I don't post code
2, click on the menu item under the code, and respond to events, I also wrote this, sure
3, create a child window in incident response, will be here! Child window associated with the stock code, not here, here comes to before the window were created to transfer the data related to stock to TForm object, let TForm. Display the data, when FormCreate
Finally briefly, how will the arrStock stock code through the menu to create a window, window shows the stock arrStock related data?
Hope you can put the key to describe it

CodePudding user response:

When child form creation, through the menu first read the associated code, child form display case, will read the stock data, through the control display,
  • Related