Questions tagged [paintbox]
16 questions
8
votes
2 answers
How to eliminate the flicker on the right edge of TPaintBox (for example when resizing)
Summarization:
Say that I have a TForm and two panels. The panels are aligned alTop and alClient. The alClient panel contains a TPaintBox, whose OnPaint involve drawing codes.
The default value of DoubleBuffered on the components are false.
During…

SOUser
- 3,802
- 5
- 33
- 63
3
votes
2 answers
How to draw a line in Delphi on an FMX canvas
This is with Delphi Berlin 10.1 Update 2
The following works (I get a line drawn):
brush := TStrokeBrush.Create(TBrushKind.Solid, TAlphaColors.Lightgray);
brush.Thickness := 2;
with Canvas do
begin
BeginUpdate;
DrawLine(PointF(10, 10),…

imekon
- 1,501
- 4
- 22
- 39
2
votes
2 answers
Painting TPaintBox during Drag&Drop with DragImage
In my application (Delphi 2007) I want to drag items from a ListView to a PaintBox and highlight corresponding areas in the PaintBox's OnPaint handler. However I always get ugly artefacts. Do you have any advice how I can get rid of them?
Test…

Uli Gerhardt
- 13,748
- 1
- 45
- 83
1
vote
1 answer
Delphi FMX Android FillText is Slow and Resource intensive
I am drawing a (large) Boolean Table (Binary 0,1 values in a large grid pattern) with a PaintBox. As in the code below.
Note: The code is simplified, only drawing random 0 and 1, to represent the problem.
Also I have updated the question with the…

ChasH
- 11
- 3
1
vote
1 answer
Delphi - TPaintBox - Resize
I'm having problems resizing a TPaintBox and drawing on it:
On my Form (named FMain) I dropped a TPaintBox (named DisplayImage), which I am trying to resize as the Form is resized.
To do that I wrote an OnResize() method for FMain (I confirmed that…

ThE_-_BliZZarD
- 722
- 2
- 12
- 26
0
votes
2 answers
I need Key Events for TPaintBox
I see my version of delphi, doesn't have Key Events(OnKeyDown, OnKeyUp, OnKeyPress) events for TPaintBox. I would like to process something like that. Had somebody a paintbox with these events?

user558126
- 1,303
- 3
- 21
- 42
0
votes
0 answers
Dragging a TPaintBox while keeping its content static
We are having a VCL TPaintBox on which we display video. Its parent is a TScrollbox.
When zooming, the PaintBox gets larger than the scrollbox, so parts of the image is hidden.
We have implemented the ability to drag the paintbox, using the mouse,…

Totte Karlsson
- 1,261
- 1
- 20
- 55
0
votes
1 answer
Best practice regarding plotting graph data
Hope this is clear...
I want to know if the PaintBox control can allow the user to scroll, left to right through data? Imagine it like an oscilloscope display where a single capture allows zooming and scrolling. In this case I do not need zooming.…

Andrew Pratt
- 35
- 6
0
votes
1 answer
How make the same hole in two Form's on remote screen (client side), based on area drawn on server side?
I have the following code and want draw the same hole in two Form's on remote screen (client side), based on area drawn on server side.
I have the same Form (Form3) in both sides (server and client) that is a "mirror" where i'm drawing a area that…
user10752826
0
votes
2 answers
Problem with creating tpaintbox on tpanel
I have a little problem. I'm trying to create a TPaintBox on a TPanel like this:
procedure TForm1.mkPaint(S: string);
var PB: TPaintBox;
begin
PB := TPaintBox.Create(Self);
with PB do
begin
Parent := Panel1;
Visible := True;
Name…

Demetris
- 1
- 2
0
votes
1 answer
paintbox doesnt paint from timer method c++ builder borland
I am using Borland C++Builder 6.
I have two methods of the form:
void __fastcall FDisplay::PaintBox1Paint(TObject *Sender)
void __fastcall FDisplay::TimerLabelsViewTimer(TObject *Sender)
In the first method I draw the coordinate system.
and in the…

user687459
- 143
- 5
- 17
0
votes
0 answers
erase line from paintbox borland c++ builder
*using bcb6 (borland) c++ builder
I did paint box and in OnPaint event of this method I draw axis system.
In addition, in this form I have timer and in timer method I draw lines, but I want that in each time only one line will be on the axis…

user687459
- 143
- 5
- 17
0
votes
1 answer
Delphi XE5 - TPaintBox scrolls too slow under TListBox on machines with Android
I am creating Firemonkey Mobile Application on Delphi XE5. I would like to use TPaintBox component to display some text (2000+ words with special characters, tables). I have created form with TListBox and special TListBoxItem type…

Jan Lochman
- 439
- 3
- 12
-1
votes
2 answers
Delphi Paintbox Paint method is not updating image canvas[FMX]
I am working cross platform vnc project. Windows side is ok with VCL. But when i use FMX platform with same code, i having problems.
procedure TFrmScreenView.pbViewPaint(Sender: TObject);
begin
Client.DrawBitmap(pbView.Canvas);
end;
This code is…

Aras
- 1
- 3
-1
votes
1 answer
Delphi: Export/Draw TPaintbox straight to file with custom image size
I have subclassed ExtCtrls.TPaintBox with several help functions and overridden the Paint method. I can add a TPaintBox to a form which then acts as my custom paintbox object and draws the desired output.
Now I want to draw (write) the contents of…

user729103
- 631
- 2
- 10
- 24