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
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.
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
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
Comments
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
the modification should be done.
thanks
Peter
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
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
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
Peter