Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Designer Font Combo Box

edited January 2008 in General
I was just curious, in the report designer, there is a font size combo
box, with 8 thru 72 font sizes in it. Is there a simple way to add
different font sizes to the combo box? Or is a custom report designer
needed for that?

Comments

  • edited January 2008

    Using RB 10, the following will work...

    uses
    ppDesignToolActions,
    ppDesignLayoutManager;

    var
    lLayoutManager: TppDesignLayoutManager;
    lToolActionManager: TppDesignToolActionManager;
    lFormatActions: TppFormatActionList;
    lFontSizeAction: TppFontSizeAction;
    begin

    lLayoutManager := ppDesigner1.Form.LayoutManager;

    lToolActionManager := lLayoutManager.ToolActionManager;

    lFormatActions :=
    TppFormatActionList(lToolActionManager.ActionLists.ItemsByName['Format']);

    lFontSizeAction :=
    TppFontSizeAction(lFormatActions.GetActionForName('FontSize'));

    // add a font size
    lFontSizeAction.Items.Insert(0, '6');


    end;



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.