Solved

QReport controls and margins

Posted on 2001-08-14
5
310 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
code issue 8 131
Using idhttp to login to instagram 2 89
Create Database on Android via Delphi dbExpress 3 92
Delphi Firemonkey Need Sample for Online Shopping Example. 2 142
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

810 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