What happened to TsMenuManager?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33721
    DoctorJellybean
    Participant

    I remember this from years ago, and it was good to change MainMenu font, etc. Not available anymore? Want to change the font size of Mainmenu items.

    #42436
    Support
    Keymaster

    Hello
    Menus are skinned automatically now. For changing a menu font you can use the CustomMenuFont:TFont variable.
    This variable is declared in the sSkinMenus.pas unit and used for drawing of text in menus if CustomMenuFont is not Nil.
    Example of using :

    CODE
    CustomMenuFont := TFont.Create;
    CustomMenuFont.Name := 'Comic Sans MS';
    CustomMenuFont.Style := [fsBold];

    uses sSkinMenus;

    #44083
    Messie
    Participant
    'Support' wrote:

    CustomMenuFont := TFont.Create;

    CustomMenuFont.Name := 'Comic Sans MS';

    CustomMenuFont.Style := [fsBold];

    uses sSkinMenus;

    Hi,

    I tried to use it in the CB2009:

    Code:
    CustomMenuFont = new TFont;
    CustomMenuFont->Name = FontName;
    CustomMenuFont->Size = 11;
    CustomMenuFont->Style = TFontStyles() << fsBold;

    But the Font Style is not applied. Any suggestion why?

    regards, Messie

    #44101
    Support
    Keymaster

    Hello

    Can you show a small example please?

    This code must work.

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