?
Solved

QReport controls and margins

Posted on 2001-08-14
5
Medium Priority
?
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

765 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