How to capture TPopUp menu

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #37191
    AntonioBI
    Participant

    Hello,

    I've not found any post for using a PopUp menu as a skinned TMainMenu, and no demo are found in the examples.

    The skinning of the TMainMenu is automatic on a form with a SkinProvider,

    but how to connect a PopupMenu with the current skin?

    The items are without color (clBtnFace) or effects.

    Thanks

    niobi

    #55725
    Support
    Keymaster

    Hello!

    PopupMenus are skinned automatically usually, but if you have added some items dynamically there then you should use this procedure:

    Code:
    sSkinManager1.SkinableMenus.HookPopupMenu(Menu,true);

    Add this code after creation of new items.

    #55675
    AntonioBI
    Participant

    Thanks for reply.

    In my case, the PopupMenu is placed on the form at the creation time, together the other components.

    With some skin, the hooking is automatic, with others, not.

    I will try to put the line recommended, in the OnCreate form's event.

    Best regards

    Niobi

    #55779
    Support
    Keymaster

    Write me about a result, please.

    #55796
    AntonioBI
    Participant
    'Support' wrote:

    Write me about a result, please.

    Result is OK!

    Thanks

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