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
TurboBird for FireBird 5
by
maurog
[
Today
at 04:45:18 am]
TurboBird IBX
by
maurog
[
Today
at 04:41:20 am]
a bug about FPC spurce
by
dsiders
[
Today
at 02:44:18 am]
Convert string with Key-V...
by
dseligo
[
Today
at 02:38:28 am]
[SOLVED] progress dialog ...
by
cdbc
[
Today
at 01:14:35 am]
How to get at files that ...
by
Martin_fr
[
Today
at 12:33:32 am]
Need help converting a C+...
by
jamie
[
Today
at 12:30:59 am]
Lazarus Bugfix Release 4...
by
calebs
[December 07, 2025, 10:37:53 pm]
make cycle fails on macOS...
by
Thausand
[December 07, 2025, 10:05:00 pm]
Matching video to form
by
Thausand
[December 07, 2025, 09:48:04 pm]
[Solved] Need help with c...
by
Thausand
[December 07, 2025, 08:03:53 pm]
TTagEdit Component 1.2
by
JD
[December 07, 2025, 08:02:41 pm]
[SOLVED] Form OnTop not w...
by
Pe3s
[December 07, 2025, 07:32:12 pm]
Save record to BLOB Field
by
Sc0li0sis
[December 07, 2025, 07:31:24 pm]
$ifdef highlighting
by
440bx
[December 07, 2025, 07:09:02 pm]
Clipboard Formats
by
AlexTP
[December 07, 2025, 04:39:19 pm]
[BUG REPORT] Code explore...
by
Martin_fr
[December 07, 2025, 02:54:20 pm]
Qt6 / X11: problem with G...
by
paweld
[December 07, 2025, 02:44:07 pm]
Dumb Problems Contest!
by
Thaddy
[December 07, 2025, 02:41:59 pm]
Please ask about the valu...
by
zzzzzzz7
[December 07, 2025, 02:14:52 pm]
laz_xmlstreaming.pas fail...
by
Ryan J
[December 07, 2025, 01:00:52 pm]
Probleme installing Lazar...
by
DonAlfredo
[December 07, 2025, 09:05:41 am]
Wikipedia pollution
by
Thaddy
[December 07, 2025, 08:31:35 am]
How to register a windows...
by
Thaddy
[December 07, 2025, 08:24:15 am]
append new record to arra...
by
speter
[December 07, 2025, 12:46:02 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Certain controls don't draw correctly (Read 2715 times)
jamie
Hero Member
Posts: 7396
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