diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2014-11-07 05:28:36 +0000 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2014-11-07 05:28:36 +0000 |
commit | 9e4d0acea3bf53cfe6f0cbb9286068662614da14 (patch) | |
tree | 9d91ab029f6adcf4a642f4eb6c9a5b19d438706a /docs | |
parent | b68e73b109ef0ab725bf5654d9ff98eebb942aba (diff) | |
download | fpGUI-9e4d0acea3bf53cfe6f0cbb9286068662614da14.tar.xz |
docs: adds missing doc examples
Diffstat (limited to 'docs')
-rw-r--r-- | docs/xml/corelib/examples/fpg_base.fpgcanvasbase.drawarc.pas | 7 | ||||
-rw-r--r-- | docs/xml/corelib/examples/fpg_base.fpgcanvasbase.fillarc.pas | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/xml/corelib/examples/fpg_base.fpgcanvasbase.drawarc.pas b/docs/xml/corelib/examples/fpg_base.fpgcanvasbase.drawarc.pas new file mode 100644 index 00000000..d85fadf2 --- /dev/null +++ b/docs/xml/corelib/examples/fpg_base.fpgcanvasbase.drawarc.pas @@ -0,0 +1,7 @@ +{ This will draw a red arc, starting at the 6 o'clock position, and + drawing 90 degrees of the arc, ending at the 3 o'clock position. } +procedure TMainForm.FormPaint; // the forms OnPaint event handler +begin + Canvas.Color := clRed; + Canvas.DrawArc(5, 5, 100, 100, 270, 90); +end; diff --git a/docs/xml/corelib/examples/fpg_base.fpgcanvasbase.fillarc.pas b/docs/xml/corelib/examples/fpg_base.fpgcanvasbase.fillarc.pas new file mode 100644 index 00000000..897ac0ec --- /dev/null +++ b/docs/xml/corelib/examples/fpg_base.fpgcanvasbase.fillarc.pas @@ -0,0 +1,8 @@ +{ This will draw a red filled arc, starting at the 6 o'clock position, and + drawing 45 degrees of the arc, ending at the half-past-four position. } +procedure TMainForm.FormPaint; // the form's OnPaint event handler. +begin + Canvas.Color := clRed; + Canvas.FillArc(5, 5, 100, 100, 270, 45); +end; + |