Solved

QReport controls and margins

Posted on 2001-08-14
5
308 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQ'ed and points not refunded

PashaMod
Community Support Moderator @Experts Exchange
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now