What happened to TsMenuManager?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.