Commit Graph

189 Commits

Author SHA1 Message Date
Juha
9c1268e600 LCL: Do not clear Checked state of an Action when linked to TSpeedButton and the button gets disabled. Issue #41352, patch by Peter. 2025-01-23 20:22:29 +02:00
wp_xyz
8f6a59c9a2 LCL/TSpeedButton: Layout improvements when AutoSize = false 2024-09-10 13:07:57 +02:00
wp_xyz
d216b7144d LCL/SpeedButton: Fix autosizing of TSpeedButton. Issue #41119, based on patch by michalgw 2024-09-09 22:24:17 +02:00
wp_xyz
11b92b26c8 LCL/SpeedButton: Fix position of caption when no glyph is present. 2023-07-29 00:36:46 +02:00
wp_xyz
07da832b28 LCL/SpeedButton: Fix positioning of Glyph and Caption. Issue #40410. Based on patch by Luca Olivetti. 2023-07-28 19:40:50 +02:00
Juha
211d95da17 LCL: Use TLCLHandle instead of a redefined LCLType.THandle or TLCLIntfHandle. Deprecate them. 2023-07-03 11:17:01 +03:00
wp_xyz
fbe7aa44e1 LCL/SpeedButton: Fix clipping of caption containing double ampersand characters, issue #39820. 2022-10-27 22:27:35 +02:00
Juha
72fda31b81 LCL: Delete TCustomSpeedButton.DoMouseUp. Part of merge request !21. 2022-06-03 12:52:45 +03:00
wp_xyz
2b04018e69 LCL/SpeedButton: Fix misaligned icons in TFilenameEdit etc. 2022-02-10 14:59:49 +01:00
wp_xyz
1f92d4fde1 LCL/TSpeedButton: New property Alignment for left/right aligned or centered caption. 2022-02-07 16:04:47 +01:00
wp_xyz
ad41c897b7 LCL/TSpeedButton: Improve text alignment when there is not glyph. 2022-02-07 15:42:10 +01:00
wp_xyz
89bd5e8943 LCL/SpeedButton: Draw centered multi-line caption. Issue #39632 2022-02-07 12:59:21 +01:00
wp_xyz
6e2454530b LCL: Add properties Hot/Disabled/Pressed/SelectedImageIndex to TBitBtn and TSpeedButton. Issue #33299. 2021-12-26 18:06:53 +01:00
mattias
adafca05c0 lcl: fixed TSpeedButton with Action and changing Action.ImageIndex 2021-11-05 11:48:00 +01:00
juha
7d90e95e0b LCL: Propogate TAction.ImageIndex to TSpeedButton.ImageIndex. Issue #38135, patch from Anton Kavalenka.
git-svn-id: trunk@64165 -
2020-11-30 20:21:17 +00:00
juha
bc1e8a9946 LCL: Update Images in BitBtn and SpeedButton from connected Action also when Glyph is not empty. Issue #22071.
git-svn-id: trunk@62642 -
2020-02-17 18:17:25 +00:00
wp
733d74e407 LCL: Fix TSpeedButton and TBitBtn using non-scaled icons if an Action is assigned to these controls (https://forum.lazarus.freepascal.org/index.php/topic,47574.msg340909.html).
git-svn-id: trunk@62311 -
2019-11-28 17:58:24 +00:00
wp
a7ce6e3055 LCL: Add support for custom font of TSpeedButton (see https://forum.lazarus.freepascal.org/index.php/topic,42635.msg297800.html#msg297800, patch by Ondrej)
git-svn-id: trunk@59149 -
2018-09-23 16:03:23 +00:00
ondrej
7d10edbadb LCL: speedbutton: fix glyph painting for NumGlyphs > 1. Issue #33820, patch by C Western
git-svn-id: trunk@58124 -
2018-06-04 15:07:49 +00:00
ondrej
6a5a329a91 LCL: editbtn: use LCLGlyphName
git-svn-id: trunk@57767 -
2018-05-02 07:29:27 +00:00
ondrej
1412bf4f4a LCL: TSpeedButton, TBitBtn: ImageIndex with combo box. Issue #33645
git-svn-id: trunk@57708 -
2018-04-25 10:56:32 +00:00
ondrej
e5e905ef3e LCL: TSpeedButton, TBitBtn: fix autosize on image* change. Issue #33645
git-svn-id: trunk@57705 -
2018-04-25 08:16:40 +00:00
ondrej
2ef8957cd8 LCL: TSpeedButton, TBitBtn: fix AV. Issue #33645
git-svn-id: trunk@57704 -
2018-04-25 08:03:03 +00:00
ondrej
c08e2769d8 Clean up
git-svn-id: trunk@57699 -
2018-04-25 07:01:56 +00:00
ondrej
135231e273 LCL: add support for image list to TSpeedButton and TBitBtn. Issue #33645
git-svn-id: trunk@57695 -
2018-04-25 05:39:33 +00:00
juha
3c1f7de3ea LCL: Fix TSpeedButton AutoSize with alignment. Issue #27396, patch from Michl.
git-svn-id: trunk@52231 -
2016-04-22 08:54:36 +00:00
ondrej
c32e5314d1 lcl: resize speedbutton on caption change if autosize is enabled.
git-svn-id: trunk@51445 -
2016-01-29 13:48:27 +00:00
ondrej
03af99a053 lcl: speedbutton remove offset from pushed glyph. Neither win32 nor Gtk2 do that. Needed for consequent painting of glyph and text.
git-svn-id: trunk@50896 -
2015-12-18 09:30:38 +00:00
mattias
2c929b55db cleaned up
git-svn-id: trunk@50177 -
2015-10-26 21:41:56 +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
mattias
bd1a801f5d LCL: TCustomSpeedButton: do not store Glyph in lfm when Action provides the Glyph, issue #27357, from BBaz
git-svn-id: trunk@47542 -
2015-01-27 08:31:53 +00:00
paul
102a858398 lcl, ide: redo LoadGlypFromResource to LoadGlyphFromResourceName with ability to pass an Instance handle
git-svn-id: trunk@42972 -
2013-09-27 08:44:38 +00:00
paul
88f15398f4 lcl: move edit button images from Lazarus to FPC resources
git-svn-id: trunk@42963 -
2013-09-27 03:52:44 +00:00
mattias
af129c07e4 LCL: TSpeedButton: do not eat DialogChar when disabled, bug #24742
git-svn-id: trunk@42086 -
2013-07-14 06:42:24 +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
jesus
dd610c84ec LCL, fix numglyphs access violation on starting lazarus, issue #22164
git-svn-id: trunk@37494 -
2012-06-03 08:26:43 +00:00
mattias
774703c6a9 lcl: TSpeedButton: implemented AutoSize=true
git-svn-id: trunk@34398 -
2011-12-25 00:05:58 +00:00
zeljko
dabae664fe LCL: TGraphicControl.VisuallyEnabled moved to TControl.IsEnabled, also fixed var naming in some units from IsEnabled to AIsEnabled. issue #20291
git-svn-id: trunk@32492 -
2011-09-24 08:20:55 +00:00
zeljko
b21be873d3 LCL: Added TGraphicControl.VisuallyEnabled to track if control is really visually enabled (eg Enabled=True but Parent is disabled) during checking Enabled property inside paint and mouse methods.fixes issue #20247
git-svn-id: trunk@32393 -
2011-09-17 19:42:30 +00:00
mattias
e6c4ffc414 IDE: parameter hints: button to add missing parameters
git-svn-id: trunk@30730 -
2011-05-14 10:49:08 +00:00
juha
0313811e63 LCL: Exit TCustomSpeedButton.DialogChar silently if Message.Msg <> LM_SYSCHAR.
git-svn-id: trunk@29854 -
2011-03-15 15:50:03 +00:00
juha
b2fdcc9693 LCL: Replace Assert with a test and DebugLn. With QT there is a warning in Search when pressing Enter.
git-svn-id: trunk@29822 -
2011-03-13 19:14:20 +00:00
juha
01db3bb47c LCL (mostly), Replace Assert(False... with //DebugLn(... Now Assert can be used for its original purpose again.
git-svn-id: trunk@29820 -
2011-03-13 18:21:51 +00:00
mattias
75d084a8ed LCL: fixed TSpeedButton positioning of glyphs if widgetset has ContentRect
git-svn-id: trunk@29172 -
2011-01-23 15:40:43 +00:00
mattias
80476d8a9c LCL: TSpeedButtnon: fixed center glyph without text
git-svn-id: trunk@29155 -
2011-01-21 10:45:47 +00:00
mattias
9e4f448c8f LCL: TSpeedButton: fixed margin
git-svn-id: trunk@29123 -
2011-01-19 12:55:46 +00:00
mattias
c7d2d778a0 LCL: TSpeedButton: started AutoSize, added parameter Drawing to GetGlyphSize and GetTextSize
git-svn-id: trunk@29122 -
2011-01-19 12:53:12 +00:00
paul
ec1fc668c9 lcl: TSpeedButton should generate a click event if it changes Down state in spite of csClicked state (fixes issue #0018010)
git-svn-id: trunk@28394 -
2010-11-22 06:15:27 +00:00
paul
a2e75a4b8d lcl: formatting
git-svn-id: trunk@28393 -
2010-11-22 06:13:31 +00:00
paul
d5cb0e2fbe lcl: redo MouseEnter/MouseLeave notifications:
- move application mouse events notification from various message handlers to the WND proc of TWinControl
  - don't assume that control at mouse is the current control which has mouse events. If some control has a mouse capture set then it has the mouse messages and not the control at mouse
  - don't perform a control search in TApplication.DoBeforeMouseMessage - it already has an argument which contains the new mouse control (fixes bug #0016715)
  - fix CM_MOUSEENTER, CM_MOUSELEAVE message handlers so Parent controls will always get CM_ notification before the event handler and inspite of who is the message owner

git-svn-id: trunk@27770 -
2010-10-20 08:02:22 +00:00