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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Star Wars Galaxian
by
Scoops
[August 08, 2026, 11:37:35 pm]
Application triggers mess...
by
Bart
[August 08, 2026, 11:05:18 pm]
Automatic generation of *...
by
PeterBB
[August 08, 2026, 10:27:35 pm]
[solved] form reset/reloa...
by
ADMGNS
[August 08, 2026, 09:58:42 pm]
Create small language
by
ADMGNS
[August 08, 2026, 09:52:19 pm]
Advatage Database server
by
neobrasil08
[August 08, 2026, 08:42:18 pm]
Finding List of Fonts & P...
by
J-G
[August 08, 2026, 08:29:01 pm]
QGradientTrackPanel: A Fu...
by
Ed78z
[August 08, 2026, 07:22:09 pm]
How get listy of FieldDat...
by
Aruna
[August 08, 2026, 04:02:16 pm]
Identify network devices
by
LemonParty
[August 08, 2026, 03:44:03 pm]
TyControls: a custom-draw...
by
Antek
[August 08, 2026, 02:36:39 pm]
PO-Editor MyLangEdit3 now...
by
CM630
[August 08, 2026, 02:36:13 pm]
how to connect to mariadb...
by
Mike.Cornflake
[August 08, 2026, 12:25:31 pm]
New charts
by
Boleeman
[August 08, 2026, 11:24:34 am]
Unleashed Pascal (async/a...
by
Fibonacci
[August 08, 2026, 08:11:20 am]
SPAM
by
paweld
[August 08, 2026, 07:17:10 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Certain controls don't draw correctly (Read 3300 times)
jamie
Hero Member
Posts: 7884
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