Commit Graph

128 Commits

Author SHA1 Message Date
Juha
c3891ad820 Reduce compiler warnings. 2023-07-03 06:23:49 +03:00
wp_xyz
dc299031b7 LCL/Toolbar: Remove redundant method TToolbar.ToolButtonDown, issue #40216 2023-04-18 13:56:58 +02:00
wp_xyz
f0ca99ba13 LCL/ToolButton: Fix endless loop when there is more than one checked button in group. Issue #40216, patch by n7800 2023-04-18 00:17:24 +02:00
wp_xyz
6d123c6ac8 LCL/Toolbar: Fix incorrect high-dpi scaling of toolbuttons due to hard-coded constant margins. 2022-09-13 21:55:27 +02:00
wp_xyz
7db50f95cc LCL: Increase distance between TToolButton icon and text in List mode. 2022-09-11 18:12:06 +02:00
Juha
b02bb3563b Revert "LCL: Fix Toolbar size when inside a Controlbar". Causes ChangeBounds loop in a bottom anchored Toolbar with GTK2. 2022-03-04 22:25:41 +02:00
Juha
78f789c59b LCL: Fix Toolbar size when inside a Controlbar. Merge request !77 by Alexander Litjagin. 2022-03-04 00:27:15 +02:00
dmitry
dff67d134c lcl: update accessibility patch by David Jenkins. bug #38603
git-svn-id: trunk@64834 -
2021-03-18 02:48:41 +00:00
ondrej
557b843294 LCL: high-dpi image list: support retina (for now Cocoa only)
git-svn-id: trunk@57240 -
2018-02-03 22:58:50 +00:00
ondrej
4a5dab2d4b LCL: fix compilation with FPC 3.0.0
git-svn-id: trunk@57167 -
2018-01-27 18:55:34 +00:00
ondrej
454fc69b9e LCL: High-DPI ImageList: rename *ForImagePPI to *ForPPI
git-svn-id: branches/HiDPIImageList@57068 -
2018-01-13 04:25:01 +00:00
ondrej
90f22ba7fd LCL: High-DPI ImageList: LCL runtime and win32
git-svn-id: branches/HiDPIImageList@57039 -
2018-01-10 12:46:42 +00:00
ondrej
1ef9518e9f LCL: toolbutton: allow click after dropdownmenu has been shown
git-svn-id: trunk@55360 -
2017-06-16 19:11:38 +00:00
ondrej
3c692e825d LCL: TToolBar: remove in 1.7 introduced incompatiblity and use real values for ButtonHeight, ButtonWidth, ButtonDropWidth.
git-svn-id: trunk@55109 -
2017-05-28 07:33:27 +00:00
ondrej
90c1f39040 lcl: toolbutton: fix regression after r54371 #3a47676ba3 - button visually released when dropdown menu is shown. Issue #31637
git-svn-id: trunk@54528 -
2017-04-05 14:57:25 +00:00
ondrej
eb5e2e2060 lcl: toolbar: High-DPI: fixes - use 0 as default button size
git-svn-id: trunk@54238 -
2017-02-21 20:42:24 +00:00
ondrej
b769322f40 lcl: themes: add TThemeOption.toUseGlyphEffects. Use it for TToolButton, TSpeedButton, TBitBtn, TButtonGlyph
git-svn-id: trunk@50962 -
2015-12-21 05:37:05 +00:00
ondrej
ab5405d117 lcl: toolbutton: added ArrowClick method and OnArrowClick event that is called when user clicks on the arrow part in tbsDropDown.
! Breaking change: Click/OnClick was called before.

git-svn-id: trunk@50959 -
2015-12-20 18:05:21 +00:00
ondrej
fda56cd53f lcl: toolbutton: when clicked on button part of tbsDropDown, do not paint arrow as down. It's native appearance on Win&Linux.
Further info: This is different from Delphi. Delphi paints the arrow as down in this case, but other applications (MS Office, Adobe, Thunderbird) don't do it. Linux applications don't do it either.

git-svn-id: trunk@50957 -
2015-12-20 17:31:34 +00:00
ondrej
25cfeb51ee lcl: toolbutton: fix paint arrow for tbsButtonDrop (was outside the visual button bounds)
git-svn-id: trunk@50932 -
2015-12-19 12:45:09 +00:00
ondrej
540bd3a671 lcl: toolbar: add DropDownWidth property
git-svn-id: trunk@50900 -
2015-12-18 10:13:17 +00:00
ondrej
f28fd32f87 lcl: toolbutton: add new style tbsButtonDrop
git-svn-id: trunk@50899 -
2015-12-18 09:49:35 +00:00
ondrej
4c66be7f26 lcl: toolbutton remove offset from pushed glyph. Neither win32 nor Gtk2 do that. Needed for consequent painting of glyph and text.
git-svn-id: trunk@50898 -
2015-12-18 09:40:58 +00:00
ondrej
c95d982d72 LCL: toolbutton: fix down states. Issue #28286. Modified patch by Derit Agustin
git-svn-id: trunk@50870 -
2015-12-17 18:26:08 +00:00
juha
f39f93e728 LCL: Prevent AV when TToolButton is clicked and handler destroys the button. Revert earlier fix r49541 #0a78d2b1ae. Patch from Ondrej Pokorny.
git-svn-id: trunk@49544 -
2015-07-14 11:09:59 +00:00
juha
7cf21da4da LCL: Improve TToolButton drop down behavior. Issue #28231, patch from Ondrej Pokorny.
git-svn-id: trunk@49465 -
2015-06-28 16:53:02 +00:00
juha
f26e6ca27f LCL: Add OnPaint and OnPaintButton for TToolBar. Issue #28029, patch from "007".
git-svn-id: trunk@48938 -
2015-05-05 19:39:04 +00:00
juha
abe573b42d Initialize variables based on compiler warnings around Lazarus and libs. Contains ToDo items.
git-svn-id: trunk@48481 -
2015-03-24 17:52:23 +00:00
juha
bfa5d4b89b LCL: Draw themed Toolbar separator. Issue #27329, patch from Derit Agustin.
git-svn-id: trunk@47539 -
2015-01-27 00:02:13 +00:00
giuliano
447003f6d6 LCL: issue #0027030: proper button size in vertical mode
(conctrls.pp,toolbar.inc,toolbutton.inc)
IDEINTF: same issue - componenteditors.pas

git-svn-id: trunk@46800 -
2014-11-12 11:58:51 +00:00
juha
38a1473ed5 LCL: Prevent ToolButton.onClick when double-clicking on a file in TOpenDialog. Issue #24303, patch from Andrey Zubarev.
git-svn-id: trunk@46345 -
2014-09-28 22:39:01 +00:00
bart
f62fa21a33 TToolButton: fix using AccelleratorChars (Issue #0024817).
git-svn-id: trunk@44871 -
2014-05-01 14:21:54 +00:00
juha
ecd140c985 Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
paul
ac646e98b7 lcl: give better explanation why non-Flat toolbars draws their buttons with Hot state
git-svn-id: trunk@41256 -
2013-05-18 13:56:08 +00:00
bart
5141e6ad8e TToolBar: fix divider drawing when flat=true: draw 2 lines. Fixes issue #21193
git-svn-id: trunk@38926 -
2012-09-30 21:24:21 +00:00
juha
5323209a79 LCL: Optimize ImageList drawing by removing RefreshControl in TToolButton.SetImageIndex, issue #21766, patch from David Jenkins
git-svn-id: trunk@36785 -
2012-04-15 07:46:22 +00:00
zeljko
8cf9062528 LCL: TToolButton: commented debugln()
git-svn-id: trunk@36735 -
2012-04-12 12:13:03 +00:00
mattias
0b9fc091a6 lcl: fixed TToolButton.MouseUp X,Y in boundsrect check
git-svn-id: trunk@36715 -
2012-04-10 18:29:47 +00:00
mattias
9bfaf73b2d lcl: fixed TToolButton.MouseUp checking if cursor is still in boundsrect
git-svn-id: trunk@36713 -
2012-04-10 18:24:23 +00:00
zeljko
e9ca5ca089 LCL: do not send Click from TToolButton if mouse is out of control. issues #19688 and #21560
git-svn-id: trunk@36572 -
2012-04-05 09:02:32 +00:00
zeljko
ddc6615683 LCL: set csCaptureMouse on TToolButton only when it's style is tbsDropDown. issue #19688
git-svn-id: trunk@36263 -
2012-03-23 10:38:24 +00:00
paul
7111abfa8d lcl: restore public TToolButton.Click method
git-svn-id: trunk@35202 -
2012-02-07 07:35:50 +00:00
paul
805d5d7b38 lcl: cleanup and format toolbutton code
git-svn-id: trunk@35200 -
2012-02-07 06:57:00 +00:00
paul
de0cfa211a lcl: fix vertical toolbar button positioning + drawing of vertical separators
git-svn-id: trunk@30921 -
2011-05-27 06:39:29 +00:00
paul
a999b71d2c lcl: formatting
git-svn-id: trunk@30919 -
2011-05-27 05:15:38 +00:00
paul
a0328590c5 lcl: formatting, cleanup
git-svn-id: trunk@29778 -
2011-03-10 04:26:42 +00:00
mattias
964a482d5f LCL: TToolButton: use current ButtonWidth/Height as minimum, bug #17356
git-svn-id: trunk@27938 -
2010-10-29 07:28:38 +00:00
dmitry
b8c65b535e lcl: fix for toolbutton drawing in checked or downed state, fix for #16975
git-svn-id: trunk@26740 -
2010-07-19 20:03:37 +00:00
mattias
f4aff160db LCL: added TToolButton.ShowCaption, bug #16778
git-svn-id: trunk@26388 -
2010-07-01 12:56:04 +00:00
paul
622f0ba392 lcl: fix GetControlClassDefaultSize - use TSize instead of TPoint
git-svn-id: trunk@25204 -
2010-05-05 07:59:04 +00:00