No skin in menuitem after add item in OnPopup event

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #68162
    HeDiBo
    Participant

      I could duplicate the problem (Delphi XE4 and Windows 10 Pro)

      #68165
      Support
      Keymaster

        Hello! Look this topic, please. I think, it should help.

        #68166
        HeDiBo
        Participant

          That only works if skinmanager is active.
          If skinmanger is not active this code in sSkinMenus throws an Access Violation:

          function TsSkinableMenus.NoBorder: boolean;
          begin
            Result := TsSkinManager(FOwner).CommonSkinData.gd[TsSkinManager(FOwner).SkinCommonInfo.Sections[ssMainMenu]].BorderIndex < 0;
          end;

          Probably needs a test.

          #68186
          Maximus Marius
          Participant

            @Support
            Your solution is enough for me 🙂
            Thx !

            #68189
            HeDiBo
            Participant

              @Support
              Your solution is enough for me 🙂
              Thx !

              Of course. But it’s still a bug that it doesn’t work with SkinManager.Active = false.

              #68214
              Support
              Keymaster

                Of course. But it’s still a bug that it doesn’t work with SkinManager.Active = false.

                It will be fixed in the next release.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘No skin in menuitem after add item in OnPopup event’ is closed to new replies.