Jump to content

Frame.Parent


RobYost

Recommended Posts

---------------------------
Debugger Exception Notification
---------------------------
Project -.exe raised exception class EAssertionFailed with message 'TUniSimplePanel.SetParent(): Parent.OwnerForm must be same as Self.OwnerForm (H:\Framework\uniGUI\Source\Core\uniGUIClasses.pas, line 4837)'.
---------------------------
Break   Continue   Help   
---------------------------
 

I reduced it down to this.

 

procedure TfraTIncome.btnNewChargeClick(Sender: TObject);
var
  aFrame: TUniFrame;
  aTempModalForm: TUniForm;
begin
  aTempModalForm := TUniForm.Create(UniApplication);
  aFrame := TUniFrameClass(TUniFrame1).Create(self);
  aFrame.Parent := aTempModalForm ;
end;

Link to comment
Share on other sites

  • 8 months later...

Hello;

 


Change :    Self   by  aTempModalForm

procedure TfraTIncome.btnNewChargeClick(Sender: TObject);
var
  aFrame: TUniFrame;
  aTempModalForm: TUniForm;
begin
  aTempModalForm := TUniForm.Create(UniApplication);

  aFrame := TUniFrameClass(TUniFrame1).Create(aTempModalForm);
  aFrame.Parent := aTempModalForm ;
end;

 

That works fine :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...