When I try the following code where NPC is a TNxPageControl:
CODE
NxTabSheet := TNxTabSheet.Create(NPC);
NPC.AddPage(NxTabSheet, FALSE);
NxTabSheet.Caption := 'some test sheet';
Edit := TEdit.Create(NxTabSheet);
Edit.Parent := NxTabSheet;
NPC.AddPage(NxTabSheet, FALSE);
NxTabSheet.Caption := 'some test sheet';
Edit := TEdit.Create(NxTabSheet);
Edit.Parent := NxTabSheet;
the TEdit is never displayed on the tabsheet. This actually goes for any control. I have tried TEdit, TPanel, and some third party controls, and they are never put on the sheet.
I also tried to set the ParentWindow property of Edit to NxTabSheet.handle, but this cuases an AV in the inherited constructor of TNxTabSheet.CreateWnd. :?:
Help










