Error in CustomFramingFrame

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #2705
      Maarten Hennekam
      Participant

        In the latest version for Delphi 11 I get a compiler error [dcc32 Error] CustomFramingFrame.pas(113): E2035 Not enough actual parameters

        When I look at the declaration of this in RzCommon.pas then I seen that a control reference is needed.

      • #2707
        Ray Konopka
        Keymaster

          Hi,

          The control reference was added to several RzCommon methods in 6.5 in order to support VCL Style changes. Generally, you can simply pass “Self” as the parameter. For example, for the CustomFramingFrame.pas unit for the RCDemo:

          if UsingSystemStyle then

          becomes

          if UsingSystemStyle( Self ) then

          The same situation occurs in the TabsFrame.pas unit as well.

          The MainForm.pas unit has a similar change but with the GetGradientPanelFrameColor method:

          C := GetGradientPanelFrameColor( FCurrentGCS )

          becomes

          C := GetGradientPanelFrameColor( Self, FCurrentGCS )

          Ray

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.