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

ppDesigner Statusbar

edited July 2002 in General
Is it possible to update the text on the stbStatusBar on the ppDesigner? I
default the report designer for the end user to full screen which overlaps
my application's statusbar. It would be great if I could therefore output my
messages to the statusbar on the report designer instead whilst it is
visible?

Thanks,
Jason.

Jason Sweby
Software Developer
Carval Computing Ltd,
Plymouth, UK.

Comments

  • edited July 2002
    The simplest solution is to expose the status bar text as the designer
    doesn't do it by default. Keep in mind that this is a modification to the
    source of RB. You will need to build from the Source rather than the Lib
    directory.

    Add a property to the public section of TppDesigner in the ppEndUsr unit and
    implement it's setter and getter as below.

    property StatusBarText: String read GetStatusBarText write SetStatusBarText;

    function TppDesigner.GetStatusBarText: String;
    begin
    Result := FDesignerWindow.stbStatusBar.Panels[0].Text;
    end;

    procedure TppDesigner.SetStatusBarText(const Value: String);
    begin
    FDesignerWindow.stbStatusBar.Panels[0].Text := Value;
    end;

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited July 2002
    Excellent solution, thank you. I was hoping you might have done this already
    for us ;) but I think I can manage it. Maybe something for the next wish
    list?

    Thanks,
    Jason.
This discussion has been closed.