diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-07 22:52:27 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-07 22:52:27 +0000 |
commit | 77f68d38a6dc24ec0679f7fd23bf42869e795313 (patch) | |
tree | 875e8d65bddd8470aff8026e634738804d59df84 /examples/corelib/canvastest | |
parent | 0fed18d37c6348ec91790f7e3fab843b2efaceda (diff) | |
download | fpGUI-77f68d38a6dc24ec0679f7fd23bf42869e795313.tar.xz |
* Published more events and properties for EditInteger and EditFload components.
* Now the Min/Max Size is actually applied, the Message Dialogs needed minor attention.
* Updated all the example projects to use the newer all-in-one fpgui_toolkit lazarus package.
* Did some minor bug fixing in some of the examples. 1-based indexing instead of 0-based indexing etc.
Diffstat (limited to 'examples/corelib/canvastest')
-rw-r--r-- | examples/corelib/canvastest/fpgcanvas.lpi | 7 | ||||
-rw-r--r-- | examples/corelib/canvastest/fpgcanvas.lpr | 10 |
2 files changed, 10 insertions, 7 deletions
diff --git a/examples/corelib/canvastest/fpgcanvas.lpi b/examples/corelib/canvastest/fpgcanvas.lpi index f81836d4..3bc36356 100644 --- a/examples/corelib/canvastest/fpgcanvas.lpi +++ b/examples/corelib/canvastest/fpgcanvas.lpi @@ -29,8 +29,7 @@ </RunParams> <RequiredPackages Count="1"> <Item1> - <PackageName Value="fpgui_package"/> - <MinVersion Minor="5" Valid="True"/> + <PackageName Value="fpgui_toolkit"/> </Item1> </RequiredPackages> <Units Count="1"> @@ -44,8 +43,12 @@ <CompilerOptions> <Version Value="5"/> <CodeGeneration> + <SmartLinkUnit Value="True"/> <Generate Value="Faster"/> </CodeGeneration> + <Linking> + <LinkSmart Value="True"/> + </Linking> <Other> <CustomOptions Value="-FUunits "/> diff --git a/examples/corelib/canvastest/fpgcanvas.lpr b/examples/corelib/canvastest/fpgcanvas.lpr index 79b8de72..bf721f28 100644 --- a/examples/corelib/canvastest/fpgcanvas.lpr +++ b/examples/corelib/canvastest/fpgcanvas.lpr @@ -7,8 +7,8 @@ uses cthreads, {$ENDIF}{$ENDIF} Classes, SysUtils, - fpgfx, gfxbase, + fpgfx, gui_form, gfx_imgfmt_bmp; @@ -113,16 +113,16 @@ begin Canvas.DrawButtonFace(r, []); Canvas.DrawString(385, 20, '= []'); r.Top := 50; - Canvas.DrawButtonFace(r, [btnIsDefault]); + Canvas.DrawButtonFace(r, [btfIsDefault]); Canvas.DrawString(385, 50, '= [btnIsDefault]'); r.Top := 80; - Canvas.DrawButtonFace(r, [btnIsPressed]); + Canvas.DrawButtonFace(r, [btfIsPressed]); Canvas.DrawString(385, 80, '= [btnIsPressed]'); r.Top := 110; - Canvas.DrawButtonFace(r, [btnIsEmbedded, btnIsPressed]); + Canvas.DrawButtonFace(r, [btfIsEmbedded, btfIsPressed]); Canvas.DrawString(385, 110, '= [embed & press]'); r.Top := 140; - Canvas.DrawButtonFace(r, [btnIsEmbedded]); + Canvas.DrawButtonFace(r, [btfIsEmbedded]); Canvas.DrawString(385, 140, '= [btnIsEmbedded]'); Canvas.DrawString(45, y, 'DrawControlFrame():'); |