Solved

QReport controls and margins

Posted on 2001-08-14
5
311 Views
Last Modified: 2010-04-06
is there a way to obtain a margin inside a QRControl (a QRLabel for example)?  The problem is that framed QR controls with right alignment yield a display and print out where the text is sticked to the frame.

An horizontal margin spacing between the frame and the physical beginning of the text is the required behaviour. This margin could be from left of from right depending on the alignment of the text inside the control.

many thanks
fadyg
0
Comment
Question by:fadyg
5 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 6383367
Hi fadyg,
seems no way. I have an easy solution:

write two procedures and assign all onClick event handler for

left-alligned controls to:

procedure TQuickReport1.QRDBText1Print(sender: TObject; var Value: String);
begin
  Value := '  '+Value;
end;

for right-alligned controls:

procedure TQuickReport1.QRDBText1Print(sender: TObject; var Value: String);
begin
  Value := Value+'  ';
end;

------
Igor
0
 

Author Comment

by:fadyg
ID: 6383540
Hello Igor,

The problem goes beyond that. Your solution works fine with standard reports with a constant font size.  But if you change the font size between one control and the other, all alignment (left or right) is lost.  

What I'm looking for is a TQRCustomLabel descendant component that would introduce 2 new properties Horizontal margin and VerticalMargin that would express in terms of inches or millimiters.

thank you for your comment
fadyg
0
 
LVL 1

Expert Comment

by:darkloser
ID: 6385814
ITugay :)) i use same but that's not a cool way.
what do u think about frame and wordwrap :)
Heh Bugland and spanish quickReport :))
Bugz forever :)
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 8741827
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

To be PAQ/Refund

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 8822522
PAQ'ed and points not refunded

PashaMod
Community Support Moderator @Experts Exchange
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 238
find a node in VST 2 73
control image tags in a string ? 12 142
Delphi problems to abort a printjob 9 24
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question