I am writing an paint application. It opens mdichild window each time i open a file or create a new one.
I would like to know if it is possible to add a popup menu that is specific to each mdichild.
I know on how to add items to a menu. Every time I create a layer in the mdichild window, i add it to the popup list using the tmenuitem(popupmenu);
popupmenu.items.add(Newitem);
Now when i click to a different window, i would like to access the popup that is linked to the same window. I do not want the popup populated in window1 to show in window2.
To create a new window I use:
Child := TMDIChild.Create(Application);
Child.Caption := Name;
If it involves a lot of coding or it's too much a pain, let me know.
Thanks.
PO
I would like to know if it is possible to add a popup menu that is specific to each mdichild.
I know on how to add items to a menu. Every time I create a layer in the mdichild window, i add it to the popup list using the tmenuitem(popupmenu);
popupmenu.items.add(Newitem);
Now when i click to a different window, i would like to access the popup that is linked to the same window. I do not want the popup populated in window1 to show in window2.
To create a new window I use:
Child := TMDIChild.Create(Application);
Child.Caption := Name;
If it involves a lot of coding or it's too much a pain, let me know.
Thanks.
PO