V8.0.4 SystemMenue

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35476
    TomGer
    Participant

    I added 2 Items to the Systemmenu, as long i dont use Skinning (Active = false) i see the Items in the Systemmenu. If i turn the Skinning on, then my 2 Systemmenue Items are nomore Visible.

    #49459
    Support
    Keymaster

    Hello!

    Can you show a code please?

    I will think how to add a compatibility.

    #49462
    TomGer
    Participant
    'Support' wrote:

    Hello!

    Can you show a code please?

    I will think how to add a compatibility.

    Yes sure, this is the way i add the Items. I used that in many of my Tools.

    Quote:

    Code:
    // Add a Menu Item to the System Menu
    hMenu := GetSystemMenu(Handle, False);
    if hMenu <> 0 then
    begin
    if not InsertMenu(hMenu, 6, MF_BYPOSITION, $F200, 'About the Program…') then
    ShowMessage(SysErrorMessage(GetLastError));
    if not InsertMenu(hMenu, 7, MF_BYPOSITION or MF_Separator, $00, '') then
    ShowMessage(SysErrorMessage(GetLastError));
    DrawMenuBar(hMenu);
    end
    else
    begin
    ………..
    end;

    #49463
    Support
    Keymaster

    Thank you, I'll research it soon 🙂

    #49717
    Support
    Keymaster

    Hello again!

    Try add this line after your code : sSkinProvider1.SystemMenu.Generate;

    The problem will not exist with latest versions of the package.

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