Commit Graph

30 Commits

Author SHA1 Message Date
222e4fc640 spktoolbar: Fix not being able to control caption color of checked buttons by Appearance Editor.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7533 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-09 16:29:57 +00:00
bf14d85c04 spktoolbar: Activate Hi-DPI toolbar features.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6193 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-10 00:38:06 +00:00
856716b59f spktoolbar: Rename constant DPI_AWARE to SPK_DPI_AWARE (to distinguish from LCL scaling). Remove global DesignDPI variable.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6192 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-09 17:19:18 +00:00
13e90fd562 spktoolbar: Define default values for properties. Register GroupBehaviour to be skipped for SpkCheckbox and SpkRadiobox (removes lfm breakage introduced by r6170).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6180 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-06 11:02:48 +00:00
b12379211e spktoolbar: Fix action AND click events firing if both are assigned. Clean up click events from actions demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6175 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-05 12:24:59 +00:00
fdee2dddbe spktoolbar: Less hints and warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6174 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-05 12:05:26 +00:00
e6b9f9169d spktoolbar: Clean-up
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6173 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-05 08:23:23 +00:00
08713d9bf5 spktoolbar: setting Action.OnExecute no longer changes the TSpkBaseButton's OnClick. MAY BREAK CODE USING SPKTOOLBAR WITH ACTIONS (Sender is now the Action, no longer the button).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6172 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-04 23:51:04 +00:00
eb414f9593 spktoolbar: Fix action behavior in TSpkCheckbox and TSpkRadioButtons. Remove redundant code. Remove unneeded property Groupbehavior from these controls - THIS MAY BREAK EXISTING FORMS!
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6170 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-04 17:29:22 +00:00
c5b3e83d2a spktoolbar: Replace themed painting of dropdown arrows by self-painted triangles (better control of color of the dropdown button).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6163 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-01 08:44:57 +00:00
dcc90b77e4 spktoolbar: Fix dropdown arrows in Linux
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6162 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-01-31 21:44:46 +00:00
f07535e014 spktoolbar: Fix font scaling for Laz >= 1.8
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5985 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-09 19:16:35 +00:00
9b21c0b60e spktoolbar: improved internal layout of small buttons
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5984 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-08 22:13:10 +00:00
271196a1f6 spktoolbar: Use LCL scaling (for Laz >= 1.8)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5983 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-08 20:35:49 +00:00
93109d8bff SpkToolbar: Fix checked state not propagating from toggle button back to Action.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5388 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-27 18:50:10 +00:00
32d2136b1c SpkToolbar: Add toggle behavior to toolbar buttons (ButtonKind = bkButton). Together with new properties Checked and GroupIndex this can be used for checkbox and radiobutton effects of toggle buttons.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5386 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-27 16:13:48 +00:00
49c250890f SpkToolbar: Apply conventional source formatting
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5383 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-26 23:56:34 +00:00
2188bdf375 SpkToolbar: new property HotTrackBrightnessChange of Element.Appearance.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5368 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-18 22:16:36 +00:00
bbe5b1e8a3 SpkToolbar: Refactor small button painting.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5367 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-18 21:49:56 +00:00
1595dc270d SpkToolbar: Make Appearance Editor DPI-aware.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5355 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-16 22:44:40 +00:00
9e82f074d9 SpkToolbar: Add new property Style to Appearance.Element (esRounded, esRectangle). Refactoring of Button drawing. Lots of cosmetic changes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5354 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-16 18:56:23 +00:00
0c39438e61 SpkToolbar: Remove outdated custom license header in most files and add a modified LGPL license header (with linking exception, according to "license.txt" and http://forum.lazarus.freepascal.org/index.php/topic,13463.msg70814.html#msg70814)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5346 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-13 19:05:46 +00:00
ba0f25142c spktoolbar: Make toolbar dpi aware (patch by "regs" with modifications, issue #0030446).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5073 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-05 21:11:23 +00:00
ff5dba6c66 spktoolbar: Fix memory leak when using actions on buttons in SpkToolbar (issue 0025732). Patch by Jorge Turiel.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3649 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-13 18:46:12 +00:00
e8feb4830b * Implement add TSpkCheckbox and TSpkRadiobutton plus misc fixes. patch by Werner Pamler with some changes
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2447 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-06-04 00:49:51 +00:00
c0c6b89b60 * Improve design time editor
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1711 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-06-20 01:06:11 +00:00
820299b4eb * Fix compilation of remaining units
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1707 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-06-18 17:48:28 +00:00
ec2e95be34 * Fix compilation of spk_Buttons
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1706 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-06-18 17:06:47 +00:00
7f6fa27b29 * converted source files to utf-8
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1693 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-06-17 21:12:21 +00:00
96e13b536b * initial import of spktoolbar
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1690 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-06-17 20:53:01 +00:00