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

Custom brush styles for TppShape?

edited June 2003 in General
Hi all,

Now that I've conqurered changing the brush.style on the fly, now I'm
getting aggressive. Can I make more brush.styles and make them
available for use.

i.e. I'd like to have a bsBricks pattern. I have a bitmap that works in a
repeating mode and I'd like to install it and then use it within the
program as Graph2Part4.brush.style := bsBricks;

If anybody has done this already, I'd be MORE than willing to buy
the solution.

Thanks in advance, GM
==========================================
When replying via email please move all
numbers from right of at symbol to left of
at symbol to get email address.

Comments

  • edited June 2003
    Gary,

    ReportBuilder supports the brush styles that Delphi supports. In viewing
    the Delphi help on TBrushStyle, I do not see a bsBricks defined. You may
    have to define a custom bitmap for the brush style if you want to use
    a custom one.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2003
    Nico,

    My earlier missive was less than clearly worded. I don't HAVE a brush
    style called bsBricks, I want to CREATE and USE one that would look
    like bricks and use that name.

    Actually, what I was looking for was a way to install new brush.styles and
    call them from the program. I wasn't aware that the brush.styles were
    a Delphi inherent process. Do you or any lurker know how to create
    custom styles and bring them into ReportBuilder for use with
    TppShapes?

    Thanks, GM

    On Wed, 25 Jun 2003 13:34:52 -0600, "Nico Cizik \(Digital Metaphors\)"
  • edited June 2003
    Hi all,

    Once again, I was able to come up with the answer. Sorry for wasting
    the bandwidth.

    Declare in the global vars section:
    bsBricks:TBitmap;

    In FormCreate ...
    bsBricks := tBitMap.create;
    bsBricks.loadFromFile('brix.bmp');

    Then, instead of setting ppShape1.brush.style := bsSolid, you use:
    ppShape1.brush.bitmap := bsBricks;

    The bitmap has to be 8x8, black and white. I think.

    GM

    On Wed, 25 Jun 2003 21:56:42 -0400, Gary Mugford
This discussion has been closed.