Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
Certain controls don't draw correctly
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Selecting Memo lines drif...
by
munair
[
Today
at 12:57:29 pm]
Question for people who h...
by
Lenny33
[
Today
at 12:57:17 pm]
Why there is no build-in ...
by
munair
[
Today
at 12:44:48 pm]
Why isn't Lazarus / Free ...
by
VisualLab
[
Today
at 12:38:55 pm]
I can write your README.m...
by
cdbc
[
Today
at 11:44:53 am]
FPC 3.2.2 + NASM Windows ...
by
munair
[
Today
at 11:26:30 am]
Lazarus Release 4.0
by
Martin_fr
[
Today
at 11:20:06 am]
Feature request/suggestio...
by
Martin_fr
[
Today
at 11:17:04 am]
Practical Ways to Help La...
by
Joanna from IRC
[
Today
at 11:13:34 am]
project - count source li...
by
munair
[
Today
at 10:09:39 am]
[SOLVED] Anyone can tell ...
by
CharlyTango
[
Today
at 08:50:19 am]
Anyone into mDNS?
by
MaxM74
[
Today
at 08:29:16 am]
Feature request/suggestio...
by
440bx
[
Today
at 07:39:00 am]
BGRAGtkBitmap
by
CM630
[
Today
at 06:15:05 am]
Android SDK helper
by
Handoko
[
Today
at 04:33:32 am]
A little bug in fpsimages...
by
Roni Wolf
[
Today
at 02:32:44 am]
ZeosDb with TvPlain Updat...
by
eldonfsr
[
Today
at 01:46:21 am]
Mouse x-y Data Table
by
Gigatron
[
Today
at 01:04:41 am]
Command-line args are not...
by
AlexTP
[May 14, 2025, 11:10:52 pm]
Include Informative Line ...
by
munair
[May 14, 2025, 10:53:36 pm]
How to use MySQL by PHP ?
by
Leledumbo
[May 14, 2025, 09:11:11 pm]
A problem with ptcmouse
by
TRon
[May 14, 2025, 09:08:24 pm]
Add an off topic category...
by
Joanna from IRC
[May 14, 2025, 08:03:18 pm]
Compilation Failure of Me...
by
wp
[May 14, 2025, 07:30:50 pm]
Binary Matrix Effect
by
Gigatron
[May 14, 2025, 07:06:02 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Certain controls don't draw correctly (Read 2428 times)
jamie
Hero Member
Posts: 6888
Re: Certain controls don't draw correctly
«
Reply #15 on:
May 01, 2021, 07:00:05 pm »
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
Button1Click
(
Sender
:
TObject
)
;
Var
R
:
TRect
;
C
:
TCanvas
;
P
:
TTabSheet
;
begin
C
:
=
TCanvas
.
Create
;
P
:
=
PageControl1
.
ActivePage
;
C
.
Handle
:
=
GetDC
(
P
.
Handle
)
;
R
:
=
R
.
Create
(
0
,
0
,
P
.
Width
-
1
,
P
.
Height
-
1
)
;
With
C
do
Begin
Pen
.
Color
:
=
clRed
;
Pen
.
Style
:
=
psSolid
;
Pen
.
Width
:
=
1
;
Frame
(
R
)
;
end
;
ReleaseDC
(
P
.
Handle
,
C
.
handle
)
;
C
.
Free
;
end
;
That is drawing on the sheet itself ..
Logged
The only true wisdom is knowing you know nothing
pcurtis
Hero Member
Posts: 951
Re: Certain controls don't draw correctly
«
Reply #16 on:
May 02, 2021, 02:41:51 am »
@jamie - thanks
Logged
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2
pcurtis
Hero Member
Posts: 951
Re: Certain controls don't draw correctly
«
Reply #17 on:
May 02, 2021, 03:45:29 am »
That said, it opens another can of worms.
The tabsheet doesn't fill the pagecontrol completely. There is an uneven border around the tabsheet
Logged
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
Certain controls don't draw correctly
TinyPortal
© 2005-2018