Commit Graph

72 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
79a817cefd spktoolbar: LCLScaling support for property Appearance.Tab.CaptionHeight
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7196 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-11-22 21:44:38 +00:00
10994ea2c9 spktoolbar: Add new property CaptionHeight to TabAppearance.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7195 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-11-22 18:50:15 +00:00
f4ff85e64a spktoolbar: Set TOOLBAR_CORNER_RADIUS to 0 (was: 3) to place tabs with zero CornerRadius immediately to the left edge of the toolbar.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7184 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-11-12 15:35:42 +00:00
8e8e01d047 spktoolbar: Add Appearance property Tab.CornerRadius (https://forum.lazarus.freepascal.org/index.php/topic,47375.msg339191)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7183 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-11-12 15:25:04 +00:00
966ef750d3 spktoolbar: Fix compilation for Laz trunk before r57304.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6204 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-16 17:05:09 +00:00
cbd182c93d spktoolbar: Improved handling of DoubleBuffered.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6203 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-16 16:46:53 +00:00
f17eb37074 spktoolbar: Fix LCLScaling (minor issue remaining when form is loaded from hi-dpi system into low-dpi system: modify form a bit, save and load again).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6196 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-12 09:29:36 +00:00
38fc173d25 spktoolbar: Google-translate most of the Polish comments.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6195 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-12 00:15:47 +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
14633ea902 spktoolbar: Add inherited properties. Add DoubleBuffered = true (otherwise severe flickering after recent changes in Laz trunk after r57267)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6185 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-07 22:05:46 +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
713dd4bc78 spktoolbar: Two comments for {%H-} locations.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6176 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-05 12:36:08 +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
7556932674 spktoolbar: Fix compilation with current fpc trunk. Replace palette icon by a new version by Roland Hahn.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6126 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-01-11 21:36:14 +00:00
92d83425c6 SpkToolbar: Fix compilation after Laz-trunk r55713
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6005 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-08-21 15:35:42 +00:00
0b17d047d6 spktoolbar: Set version no to 0.1.2 for OPM. Check all demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5986 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-09 22:53:56 +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
b70ca5e5d2 spktoolbar: Fix fonts not changeable in OI
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5982 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-08 16:24:34 +00:00
55d8f6c188 spktoolbar: Improved layout and image size selection in design editor windows.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5977 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-07-07 22:38:47 +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
a9bff701eb Match the char case of SpkToolbar unit name with its file name. Enables installing it in Lazarus.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5371 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-21 13:13:05 +00:00
c277ae5e88 SpkToolbar: Avoid painting gradient in Tab if GradientType is bkSolid. Selection of predefined styles in AppearanceEditor by Listbox instead of ComboBox.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5370 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-19 15:21:19 +00:00
34a9a3ad70 SpkToolbar: Respect ElementAppearance.Style when drawing checkboxes or radiobuttons.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5369 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-18 22:22:49 +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
b7e5090cc1 SpkToolbar: Add new demo "styles" showing all pre-defined styles.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5366 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-18 19:01:27 +00:00
629356469a SpkToolbar: Add new property "HotTrackBrightnessChange" to Pane.Appearance.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5365 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-18 16:57:35 +00:00
47c02cf7e4 SpkToolbar: Add property "Style" to TSpkToolbar for quick change of appearance style.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5362 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-17 22:01:53 +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
588166bb4c SpkToolbar: Export Appearance properties as Pascal code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5353 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-15 22:28:06 +00:00
b4cb2a0de2 SpkToolbar: Add new pane property "Style". Update appearance editor. Minor refactoring of pane drawing code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5350 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-14 16:13:10 +00:00
812b1db7f8 SpkToolbar: Use new property InactiveTabHeaderFontColor when painting inactive tabs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5349 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-14 12:05:14 +00:00
f5e3227e71 spktoolbar: Improved layout of Appearance editor. Add new tab appearance property .InactiveTabHeaderFontColor.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5347 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-13 23:42:13 +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
a7a1a1158c spkToolbar: Fix appearance fonts not being changeable (undo part of r5073 - High-DPI code for fonts must be put into application, not in component).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5345 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-13 18:55:17 +00:00
613396797a spktoolbar: Translation of Polish comments in spktoolbar.pas to English by forum user Raf20076 - thank you! (http://forum.lazarus.freepascal.org/index.php/topic,34496.msg226168)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5275 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-20 18:32:55 +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