Jump to content

Parent.OwnerForm must be same as Self.OwnerForm


diegojmap

Recommended Posts

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
Link to comment
Share on other sites

  • 3 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...