Dynamicly added TMenuItem is not skinned?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #34373
    Jeffijoe
    Participant

    Hello,

    I am adding TMenuItem's manually thru code. When I do that, the added TMenuItem is not skinned? What do I do? Thanks!

    #44952
    Peacelyk
    Participant

    try

    Code:
    sSkinManager1.SkinName := sSkinManager.SkinName;
    #44976
    Support
    Keymaster
    'Peacelyk' wrote:

    try

    Code:
    sSkinManager1.SkinName := sSkinManager.SkinName;

    Better solutions exists 🙂 :

    http://www.alphaskins.com/forum/index.php?s=&showtopic=3552&view=findpost&p=21510

    sSkinManager1.SkinableMenus.HookPopupMenu(sPopupMenu1, True);

    Menu items, created in the run-time, must be updated manually in old versions of the package.

    Btw. Which version of AlphaControls is used? Menus must be updated automatically in latest versions.

    And which control is owner of your menu?

    #44981
    emailaya
    Participant
    'Support' wrote:

    Better solutions exists 🙂 :

    http://www.alphaskins.com/forum/index.php?s=&showtopic=3552&view=findpost&p=21510

    sSkinManager1.SkinableMenus.HookPopupMenu(sPopupMenu1, True);

    Menu items, created in the run-time, must be updated manually in old versions of the package.

    Btw. Which version of AlphaControls is used? Menus must be updated automatically in latest versions.

    And which control is owner of your menu?

    starting what version, the manually added items are skinned automatically?

    #45008
    Support
    Keymaster

    I don't remember it now, I can tell it later.

    Why you asking? You have a problem with autoskinning of menus? Some controls may not have a support of that.

    #45011
    emailaya
    Participant

    im asking because im using 7.21 and i still need to manually skin them

    not urgent just so i know that after the next update to remove all the manual code for it

    #45080
    Jeffijoe
    Participant
    'Support' wrote:

    Better solutions exists 🙂 :

    http://www.alphaskins.com/forum/index.php?s=&showtopic=3552&view=findpost&p=21510

    sSkinManager1.SkinableMenus.HookPopupMenu(sPopupMenu1, True);

    Menu items, created in the run-time, must be updated manually in old versions of the package.

    Btw. Which version of AlphaControls is used? Menus must be updated automatically in latest versions.

    And which control is owner of your menu?

    I am using V7.29.

    Where do I place that code?

    Thanks!

    EDIT: That did not work, when placing in the OnCreate Form event.

    Also, I upgraded to V7.32 🙂

    #45146
    Support
    Keymaster

    Hello

    This code must be placed after adding menu items.

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