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

Position of Datafields with DblClick

edited December 2003 in End User
Hi,

I want do enable my enduser to position a datafield by DblClick on a
FieldName
The control should go to the next free Position in the Detail- and/or
Header-band

Could someone help me to realize this
Thanks

Peter

Comments

  • edited December 2003

    ReportBuilder provides drag-and-drop Label and/or DBText creation from the
    DataTree tool window. There is no double-click feature, you would have to
    modify the RB source code to create something like that.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2003
    Could you please give me som hints where (unit, component?) .. and how (?)
    the modification should be done.

    thanks
    Peter


  • edited December 2003

    I do not know whether it is possible to implement the double-click feature
    or how much work that will require. You will have to consult the RB source
    code. The TppDataTreeWindow class is located in ppToolWn.pas


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2003
    Thank you for the informations.
    It is possible by using the "ListViewMouseDownEvent".

    Now I have only one Problem to get the Position of right border of the last
    Element on the band.
    I hope you can give me another hint to solve this problem

    Thanks
    Peter

  • edited December 2003

    Try something like this....


    uses
    ppClass, ppReport, ppBand;

    var
    lBand: TppBand;
    lLastComponent: TppComponent;
    lfRight: Single;

    begin

    lBand := myReport.DetailBand;
    lLastComponent := lBand .Objects[lBand.ObjectCount-1];

    lfRight := lLastComponent.Left + lLastComponent.Width;


    end;



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2003
    Thank you, all works fine (so far).

    Peter


This discussion has been closed.