Commit Graph

38 Commits

Author SHA1 Message Date
wp_xxyyzz
d2aed41e73 colorpalette: Update package unit (no warning about unused units)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4563 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 22:32:39 +00:00
wp_xxyyzz
9b839909f0 ColorPalette: new trunk version number 0.2.2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4329 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-11 23:23:45 +00:00
wp_xxyyzz
29217b87b5 ColorPalette: version 0.21
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4328 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-11 23:17:52 +00:00
wp_xxyyzz
f5a8d28ec2 ColorPalette: Fix palette size after loading from stream.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4322 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-09 21:28:25 +00:00
wp_xxyyzz
11c7797feb ColorPalette: set version number to 0.2 for new release
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4314 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-07 16:29:33 +00:00
wp_xxyyzz
45d08eefdd ColorPalette: Update wiki page and off-line copy.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4307 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-29 16:54:42 +00:00
wp_xxyyzz
86dd2650d1 Colorpalette: Deprecate OnColorMouseMove
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4306 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-29 16:40:01 +00:00
wp_xxyyzz
168feae37d ColorPalette: Modify palette file reader to be case-insensitive.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4304 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-29 14:56:37 +00:00
wp_xxyyzz
2192c0ab35 Colorpalette: Add some ColorPalette properties to palette file; add TPaletteItems parameter to "LoadFromPalette".
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4303 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-29 14:26:07 +00:00
wp_xxyyzz
488f5fefb8 ColorPalette: Update offline chm version of wiki page
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4302 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-28 11:53:58 +00:00
wp_xxyyzz
5613459aeb ColorPalette: Fix size issue with aligned ColorPalette. Replace #13 by "LineEnding"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4301 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-28 10:40:44 +00:00
wp_xxyyzz
2941a83e64 ColorPalette: turn off ShowColorHint in ToolbarDemo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4298 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-26 20:54:44 +00:00
wp_xxyyzz
1c21a6547f ColorPalette: Fix ToolbarDemo to show flipped colorpalette fully. Fix missing MouseLeave notification.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4297 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-26 20:31:52 +00:00
wp_xxyyzz
0e8bee25b6 ColorPalette: Remove properties related to "Selected" color, replace by "Picked" color etc. Reason: Color selection event handler must pass Shift state to calling routine for further evaluation --> Reactivate old OnColorPick (instead of OnSelectColor). Remove property PickShift.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4296 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-26 14:29:55 +00:00
wp_xxyyzz
754d1f376e ColorPalette: Fix fpc3.1.1/x64 compilation error (issue #28568). Avoid duplicate colors in built-in gradient palette. Modifications in Toolbar demo (not complete yet). Rename property "Vertical" to "Flipped".
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4295 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-26 09:15:35 +00:00
wp_xxyyzz
7bc0d5fe4f ColorPalette: Add new property Vertical (Note: In vertical orientation, "ColumnCount" defines the number of ROWS !!!). New demo ToolbarDemo showing application of ColorPalette in toolbar. Old demo moved to folder demo/GeneralDemo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4294 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-25 17:13:02 +00:00
wp_xxyyzz
fc29a13688 ColorPalette: Replace ShowSelection by SelectionKind. Add property SelectionColor.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4293 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-25 12:12:26 +00:00
wp_xxyyzz
68424fab94 ColorPalette: Fix 1-pixel error when drawing the selection rect.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4292 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 22:34:36 +00:00
wp_xxyyzz
365546a580 ColorPalette: Update off-line version of wiki
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4291 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 20:45:24 +00:00
wp_xxyyzz
0f6162b2a8 ColorPalette: Fix demo (Colornames in LblMouseColorInfo not changing).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4290 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 20:08:06 +00:00
wp_xxyyzz
ec4cc3f4b3 ColorPalette: Fix painting of background color.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4289 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 17:29:23 +00:00
wp_xxyyzz
0239cb3c67 ColorPalette: Add MouseIndex and MouseColor. Restructure painting and layout calculation. Rename BorderWidth to ButtonDistance, BorderColor to ButtonBorderColor.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4288 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 16:56:28 +00:00
wp_xxyyzz
ce951f772f ColorPalette: Support named colors. New property "UseSpacers" (false: clNone is a "no-fill" color). Replace hkWebsafePalette2 by pkHTMLPalette.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4287 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-23 20:46:00 +00:00
wp_xxyyzz
bb268bb712 Colorpalette: Add event OnGetHintText to provide a custom color hint text.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4286 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-23 13:36:05 +00:00
wp_xxyyzz
324471915a ColorPalette: Add off-line version of wiki page as chm file. Default value of Pickmode is pmImmediate now.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4285 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-23 13:18:30 +00:00
wp_xxyyzz
4474770b78 ColorPalette: Add built-in palettes (property "PaletteKind", and "GradientSteps" for GradientPalette)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4284 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-22 19:20:50 +00:00
wp_xxyyzz
3980f70b8b ColorPalette: New properties BorderColor and BorderWidth.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4283 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-21 22:32:56 +00:00
wp_xxyyzz
895bad7c04 ColorPalette: Support for popup hints.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4282 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-21 15:27:19 +00:00
wp_xxyyzz
7d6e60fc65 ColorPalette: New property SelectedIndex.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4281 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-21 14:46:15 +00:00
wp_xxyyzz
bec8c5ac86 ColorPalette: Some cosmetic changes. Add new event OnSelectColor (which fires if ShiftState matches, in contrast to OnColorPick which fires always now).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4280 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-21 12:38:46 +00:00
wp_xxyyzz
7f5584ad24 ColorPalette: Add new properties "PickMode" and "PickShift" to select when and by which mouse button the color is selected. Some reorganisation of code. Update demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4279 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-20 21:02:08 +00:00
wp_xxyyzz
77c582dda8 ColorPalette: Improved demo by forum user "polpero"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4278 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-20 18:59:01 +00:00
wp_xxyyzz
4ffb9185c2 TColorPalette: Add method "SavePalette" and property "ColumnCount"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4275 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-19 15:08:19 +00:00
wp_xxyyzz
94124c6bb7 TColorPalette: New methods AddColor and DeleteColor. Add demo project. (see discussion in http://forum.lazarus.freepascal.org/index.php/topic,29400.msg185669.htm)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4274 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-19 14:23:23 +00:00
sekelsenmat
6d72de8412 colorpalette: Adds a nice error message to something that caused me trouble
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1723 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-06-30 19:43:49 +00:00
yangjixian
14c9b6cdd6 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1584 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2011-04-19 13:57:38 +00:00
yangjixian
0fe7c1ebe5 Fixed draging bugs and add mouseup for draging.
MouseDown then MouseMove means draging so mouseup not means colorpick.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1582 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2011-04-19 08:46:45 +00:00
sekelsenmat
2f073e45f3 Adds laz color palette to lazarus-ccr subversion
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1304 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-08-31 15:10:25 +00:00