Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
After drawing Shapes on a canvas How can one clear the canvas.
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
IRC channel
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
Controlling the behavior ...
by
1HuntnMan
[
Today
at 02:18:12 pm]
Using KeyPress event, how...
by
Joanna
[
Today
at 02:15:13 pm]
Project fails on run but ...
by
Thaddy
[
Today
at 02:06:57 pm]
a Unit problem?
by
Thaddy
[
Today
at 01:56:12 pm]
Complex package installat...
by
parcel
[
Today
at 01:48:04 pm]
Understanding and adjusti...
by
ArchChem
[
Today
at 12:58:12 pm]
Any upgrades to fpWeb pag...
by
marcov
[
Today
at 12:50:25 pm]
Help needed with Cairo / ...
by
Roland57
[
Today
at 12:25:16 pm]
JEDI error but unit compi...
by
Roland57
[
Today
at 11:50:11 am]
Configure JCF messages
by
DomingoGP
[
Today
at 11:26:55 am]
IDE instability on Raspbe...
by
rvk
[
Today
at 10:37:14 am]
Boleeman's projects are p...
by
AlexTP
[
Today
at 10:18:04 am]
Your best UI design - con...
by
circular
[
Today
at 09:36:11 am]
ZeosDBO and querys using ...
by
Zvoni
[
Today
at 09:27:17 am]
STARS with line border st...
by
Boleeman
[
Today
at 09:13:29 am]
Zeos components. Had to c...
by
dbannon
[
Today
at 07:26:11 am]
A button require administ...
by
Fibonacci
[
Today
at 05:57:21 am]
How to detect one externa...
by
d2010
[
Today
at 12:24:32 am]
Center Lost Window featur...
by
Tony Stone
[
Today
at 12:06:16 am]
A "leisure" question on W...
by
EventHorizon
[March 27, 2024, 10:18:38 pm]
need advice about the fol...
by
jamie
[March 27, 2024, 09:56:39 pm]
[SOLVED] Completion box s...
by
Martin_fr
[March 27, 2024, 08:44:09 pm]
Dialog ShowModal and an i...
by
d7_2_laz
[March 27, 2024, 08:25:18 pm]
Offical launch of the 1 B...
by
Gustavo 'Gus' Carreno
[March 27, 2024, 07:41:48 pm]
Problem setting length of...
by
Remy Lebeau
[March 27, 2024, 05:41:10 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: After drawing Shapes on a canvas How can one clear the canvas. (Read 2091 times)
DenPit5
New Member
Posts: 21
After drawing Shapes on a canvas How can one clear the canvas.
«
on:
December 16, 2018, 04:46:11 pm »
I have tried 'Canvas.clear' but that is thrown out as an error. I have searched all the documentation I know of but have not yet found an answer. Can anyone Help ?
Logged
Handoko
Hero Member
Posts: 5130
My goal: build my own game engine using Lazarus
Re: After drawing Shapes on a canvas How can one clear the canvas.
«
Reply #1 on:
December 16, 2018, 05:04:19 pm »
Please show us the code. Preferably the whole source code.
Create a new folder, copy all the necessary files into the folder except: the binary (exe file), *.bak, lib and backup folders. Compress the folder and send the zip here.
Logged
wp
Hero Member
Posts: 11854
Re: After drawing Shapes on a canvas How can one clear the canvas.
«
Reply #2 on:
December 16, 2018, 05:19:51 pm »
FillRect the size of the control with the background color?
Logged
jamie
Hero Member
Posts: 6090
Re: After drawing Shapes on a canvas How can one clear the canvas.
«
Reply #3 on:
December 16, 2018, 07:31:13 pm »
Although I've never used the CLEAR method of the canvas, it does work for me on 1.8.4 Windersssss
Logged
The only true wisdom is knowing you know nothing
DenPit5
New Member
Posts: 21
Re: After drawing Shapes on a canvas How can one clear the canvas.
«
Reply #4 on:
December 17, 2018, 06:36:16 pm »
Many thanks to all who answered with suggestions. I have since found the answer after doing one or two possible commands trying different words I then tried 'repaint' and lo and behold it worked. !!!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
After drawing Shapes on a canvas How can one clear the canvas.
TinyPortal
© 2005-2018