Custom Font Color for Third Party Controls

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #46449
    Support
    Keymaster

      Customization of color is possible in components from the AlphaControls package only.

      I'm thinking about a solution for other controls, but I haven't good ideas at moment.

      #46508
      OldGrumpy
      Participant

        I solved it for this particular case by just editing the skin file and changing the color values for the EDIT section. It is only a small application so it is not a problem. πŸ™‚ A really awesome solution would be: making the skin data writable at runtime so the application can change its appearance any time πŸ™‚ (No, not loading another skin, just manipulating some bits of it)

        #46570
        Support
        Keymaster

          Hello

          It's possible to change an any section in the current loaded skin in run-time :

          Code:
          procedure TForm1.sButton1Click(Sender: TObject);
          const
          SectionName = 'EDIT';
          var
          SkinIndex : integer;
          begin
          SkinIndex := sSkinManager1.GetSkinIndex(SectionName);
          if SkinIndex >= 0 then sSkinManager1.gd[SkinIndex].Color := clYellow;
          if SkinIndex >= 0 then sSkinManager1.gd[SkinIndex].HotColor := clYellow;
          sSkinManager1.RepaintForms(False);
          end;

          'OldGrumpy' wrote:

          I solved it for this particular case by just editing the skin file and changing the color values for the EDIT section. It is only a small application so it is not a problem. πŸ™‚ A really awesome solution would be: making the skin data writable at runtime so the application can change its appearance any time πŸ™‚ (No, not loading another skin, just manipulating some bits of it)

          #70163
          Saeidd2016
          Participant

            Hello support. The above posts are very old. In new version of AlphaControls is there a way to set a custom font color of a third party control?

            #70167
            Support
            Keymaster

              Hello!
              The ChangeControlColors procedure is declared in the sVCLUtils unit:

              procedure ChangeControlColors(AControl: TControl; AFontColor, AColor: TColor);

              If color value is clNone then default color will be used there.
              I hope it helps.

              #70172
              Saeidd2016
              Participant

                Hello!
                The ChangeControlColors procedure is declared in the sVCLUtils unit:

                procedure ChangeControlColors(AControl: TControl; AFontColor, AColor: TColor);

                If color value is clNone then default color will be used there.
                I hope it helps.

                Thanks, For VirtualTreeView it doesn’t work.

                #70175
                Saeidd2016
                Participant

                  Thanks, For VirtualTreeView it doesn’t work.

                  Excuse me it works correctly.

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.