TRzButtonEdit 8.0.1 Causes Error in Delphi 13.

Home Forums Konopka Signature VCL Controls (formerly Raize Components) TRzButtonEdit 8.0.1 Causes Error in Delphi 13.

Viewing 6 reply threads
  • Author
    Posts
    • #4403
      Steve Gill
      Participant

        Hi Ray,

        When I drop a TRzButtonEdit on a form in Delphi 13, I get an error.  I couldn’t attach a screenshot because your attachment requirements are too restrictive – the file is only 86KB and yet the forum still wouldn’t let me attached it.

        So far this has only happened with that control, although I’ve only tried a couple of others, ie. TRzLabel and TRzEdit.

        = Steve

      • #4404
        Andrew Sowerby
        Participant

          Yes, I see that too: ‘TRzButtonEdit  has no parent window…’

          Andrew

        • #4405
          David Marcus
          Participant

            I get that error too.

          • #4406
            Ray Konopka
            Keymaster

              Hi All,
              I am able to duplicate the issue. Researching the issue now and will provide a fix to Embarcadero and/or a workaround as quickly as possible. I’ll keep this group posted.

              Ray

            • #4407
              Ray Konopka
              Keymaster

                Hi,
                Very interesting bug. One little change from referencing Width to ClientWidth caused the issue. I have fixed the issue and submitted to Embarcadero. In the meantime before they can make a new version available, you can fix the issue by making the following two changes and then using the !Build_KSVC.cmd file (in the Source directory) to rebuild the components.

                In RzBtnEdt.pas, update the beginning of TRzCustomButtonEdit.ResizeButtons to add the call to HandleAllocated:

                procedure TRzCustomButtonEdit.ResizeButtons;
                var
                  W, MinHeight: Integer;
                begin
                  if HandleAllocated and not ( csLoading in ComponentState ) then
                  begin

                In the RzDbBnEd.pas, make the same edit to TRzDBCustomButtonEdit.ResizeButtons:

                procedure TRzDBButtonEdit.ResizeButtons;
                var
                  W, MinHeight: Integer;
                begin
                  if HandleAllocated and not ( csLoading in ComponentState ) then
                  begin

                After making the changes, run the !Build_KSVC.cmd file and follow the instructions for rebuilding the runtime and design packages.

                Ray

              • #4408
                David Marcus
                Participant

                  Is the problem just with the packages? I.e., if I’ve been using the component in my apps (no packages), are they OK? A quick test seems to indicate they are OK.

                • #4409
                  Ray Konopka
                  Keymaster

                    Hi David,
                    The issue is with the component itself and a change that was made in 8.0.1. I was able to duplicate the issue by dynamically creating the TRzButtonEdit. I’m kind of surprised there were not more reports of this problem, but if you are using 8.0.1 and not having an issue, there may be something else in play. In tracing through the code, the change from calling Width to ClientWidth resulted in low level VCL code being called that required a Window Handle to be allocated.

                    Ray

                Viewing 6 reply threads
                • You must be logged in to reply to this topic.