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
ShortStrings vs long stri...
by
Martin_fr
[
Today
at 03:20:32 pm]
88 year D. Knuth changes ...
by
Curt Carpenter
[
Today
at 03:08:55 pm]
[ANN] PasBuild 1.6.0 rele...
by
Graeme
[
Today
at 02:33:59 pm]
[ANN] PasBuild 1.5.0 rele...
by
Graeme
[
Today
at 02:30:32 pm]
CADSys4 3D.
by
zamtmn
[
Today
at 02:13:31 pm]
Synchronizing Lazarus pro...
by
marcov
[
Today
at 01:09:21 pm]
Need help with project ma...
by
dseligo
[
Today
at 12:12:04 pm]
Debian removes FPC/Lazaru...
by
marcov
[
Today
at 11:58:36 am]
Qt6/Wayland clipboard: pa...
by
zeljko
[
Today
at 11:53:24 am]
Questions about TFuncSeri...
by
hedgehog
[
Today
at 09:50:46 am]
macOS 14+ Install Instruc...
by
CM630
[
Today
at 07:56:45 am]
class not found
by
cdbc
[
Today
at 07:40:10 am]
Any way to "embed" Window...
by
egsuh
[
Today
at 05:13:50 am]
Update a table with an Au...
by
CraigC
[March 10, 2026, 10:54:23 pm]
TSplitter color property ...
by
backprop
[March 10, 2026, 08:43:28 pm]
Z80 ZX Spectrum and Syste...
by
Cascade
[March 10, 2026, 08:22:14 pm]
could Ardour's YTK be use...
by
robert rozee
[March 10, 2026, 03:18:36 pm]
[revisited] triple click
by
Thaddy
[March 10, 2026, 01:08:40 pm]
Hello! Anything new?
by
JuhaManninen
[March 10, 2026, 11:22:16 am]
C/C++ code to Object Pasc...
by
domasz
[March 10, 2026, 10:44:20 am]
[Solved] Saving a workboo...
by
Kaljakoira
[March 10, 2026, 09:09:59 am]
Pipewire API
by
Thausand
[March 10, 2026, 07:38:06 am]
Good GPU accelerated math...
by
myisjwj
[March 10, 2026, 03:17:06 am]
REST Server/Client, how t...
by
valdir.marcos
[March 09, 2026, 10:18:36 pm]
TSpeedButton qt6 styleshe...
by
dsiders
[March 09, 2026, 09:40:21 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Certain controls don't draw correctly (Read 2815 times)
jamie
Hero Member
Posts: 7600
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