No skin in menuitem after add item in OnPopup event

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #68160
    Maximus Marius
    Participant

    Please look at my example

    I generate popupmenu in OnPopup event
    But last added menuitems are without skin

    Is it BUG ?

    Attachments:
    You must be logged in to view attached files.
    #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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘No skin in menuitem after add item in OnPopup event’ is closed to new replies.