Jump to content

Recommended Posts

Posted

I have a routine in vcl I use a lot and I'm testing in unigui,
when I try to pass a button of a form to another using "parent" does not work and this error message.
I can for an entire form for UniContainerPanel another control does not.
It has a form or another is a bug or do not like to do?

 

 

     for I := 0 to Form.ComponentCount - 1 do
        begin
          if ((Form.Components is TUniSpeedButton)) then
            begin

                TUniSpeedButton(Form.Components).Parent := PnlSuperior;
            end   

        end

               

TuniSpeedButton.SetParante(): Parent.OwnerForm must be same as Self.OwnerForm(H:\Framework\uniGUI\Source\Core\uniGuiClasse.pas, line 4705)

  • Upvote 1
  • 3 months later...
Posted

This form is a set of forms, each tab is a form.
Through the parent command in vcl I reaproveite forms and controls in a UniContainerPanel.

In unigui I can pass the form by parent, but not a control.

I've attached the example.

Was it a bug? Could not you also use parent in controls?

TesteParent.rar

post-4241-0-45166700-1487093117_thumb.png

post-4241-0-76150900-1487093139_thumb.png

post-4241-0-17699200-1487093150_thumb.png

post-4241-0-99614700-1487093336_thumb.png

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...