Commit Graph

219 Commits

Author SHA1 Message Date
wp
7c856f001b LCL/Buttons: Publish DragCursor, DragKind and DragMode for TBitBtn and TSpeedButton. Addendum to issue #38891.
git-svn-id: trunk@65155 -
2021-05-30 19:42:44 +00:00
wp
649d8f7484 LCL/TSpeedButton: Publish drag-and-drop events. Issue #38891.
git-svn-id: trunk@65115 -
2021-05-14 09:27:50 +00:00
wp
a693251026 Publish OnContextPopup and OnResize for some controls to improve Delphi compatibility or compatibility with related controls. Issue #38453, based on patch by Reinhard Kalinke.
git-svn-id: trunk@64513 -
2021-02-09 18:40:00 +00:00
juha
9219ea531d Move unit GraphMath from LCL to LazUtils. It has no dependencies to GUI.
git-svn-id: trunk@64303 -
2020-12-29 22:56:40 +00: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
909fb619f4 LCL: Reset TBitBtn.Caption when DefaultCaption=True. Issue #37472, patch from Joeny Ang.
git-svn-id: trunk@63692 -
2020-08-04 20:10:17 +00:00
juha
3574bdfb6d Move debug- & other non-GUI stuff from LCLProc to LazUtilities and LazLogger in package LazUtils.
git-svn-id: trunk@58244 -
2018-06-13 13:59:07 +00:00
ondrej
1687a7b56a Qt, Qt5: fix crash if glyph is available but hidden with ShowMode
git-svn-id: trunk@57921 -
2018-05-13 12:28:28 +00:00
ondrej
6a5a329a91 LCL: editbtn: use LCLGlyphName
git-svn-id: trunk@57767 -
2018-05-02 07:29:27 +00:00
ondrej
6f336ddac4 LCL: button glyph: use property LCLGlyphName for LCLGlyphs
git-svn-id: trunk@57766 -
2018-05-02 06:51:28 +00:00
ondrej
2f9cdb4f2d LCL: move+rename Buttons.LCLBtnGlyphs to ImgList.LCLGlyphs
git-svn-id: trunk@57761 -
2018-05-01 13:53:54 +00:00
ondrej
09e4e6bd2e LCL: buttons: fix FPC 3.0.x compilation
git-svn-id: trunk@57724 -
2018-04-26 10:14:14 +00:00
ondrej
aab1ffcedf LCL: buttons: make TLCLBtnGlyphs.GetImageIndex simpler. Use ResourceName/GlyphName as key.
git-svn-id: trunk@57721 -
2018-04-26 09:57:29 +00:00
ondrej
a0ce80eb98 LCL: buttons: rewrite TLCLBtnGlyphs so that it can register arbitrary images
git-svn-id: trunk@57715 -
2018-04-26 07:40:52 +00:00
ondrej
733714a9cb LCL: TBitBtn: fix GlyphShowMode handling when image list is assigned. Issue #33645
git-svn-id: trunk@57714 -
2018-04-26 05:38:10 +00:00
ondrej
769fe27b8f LCL: remove compatibility todos. Issue #33645
git-svn-id: trunk@57710 -
2018-04-25 11:35:17 +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
6635b81023 LCL: TBitBtn: support high-resolution Kind images. Issue #33645
git-svn-id: trunk@57706 -
2018-04-25 09:50:58 +00:00
ondrej
d856bc3d36 LCL: TSpeedButton, TBitBtn: publish new Image* properties. Issue #33645
git-svn-id: trunk@57701 -
2018-04-25 07:03:45 +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
mattias
e6f5e26e7c LCL: formatting
git-svn-id: trunk@47543 -
2015-01-27 08:33:20 +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
juha
51ab663b7f LCL: Publish events OnMouseWheel, OnMouseWheelDown and OnMouseWheelUp for yet more controls. Issue #26781, patch from Sandro Cumerlato.
git-svn-id: trunk@46338 -
2014-09-26 21:40:47 +00:00
juha
c30eb3edd3 Clean outdated DEFINEs from the code, like old compiler versions and FPC_HAS_CONSTREF.
git-svn-id: trunk@43628 -
2014-01-02 18:16:19 +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
paul
6c44c5a938 lcl: add LoadGlyphFromResource similar to LoadGlyphFromLazarusResource
git-svn-id: trunk@42959 -
2013-09-27 03:15:50 +00:00
paul
9c3cd46cff lcl: load button icons from FPC resources instead of Lazarus resources
git-svn-id: trunk@42957 -
2013-09-27 02:48:55 +00:00
zeljko
b03327f896 LCL: TCustomBitBtn.Spacing default changed to 4 to be delphi compatibile.issue #24541
git-svn-id: trunk@41509 -
2013-06-03 11:37:30 +00:00
juha
7b162087fd Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
sekelsenmat
b6fd6f59e1 Large patch from Giuliano Colla: Adds pallete images to CD controls, improves TCDButton to be more similar to TBitBtn, improves the speed of mouse/resize message handling in LCL-CustomDrawn-X11 and starts implementing MessageDlg in LazDialogs
git-svn-id: trunk@38612 -
2012-09-11 08:04:30 +00:00
mattias
fe2701f866 lcl gtk2: using translated button captions if resourcestrings translated, bug #22623
git-svn-id: trunk@38243 -
2012-08-14 21:37:27 +00:00
mattias
5957631f25 LCL: fixed visibility of implemented interfaces
git-svn-id: trunk@37067 -
2012-04-28 18:16:59 +00:00
mattias
1d8586a848 gtk2: clean up
git-svn-id: trunk@36791 -
2012-04-15 11:46:16 +00:00
mattias
774703c6a9 lcl: TSpeedButton: implemented AutoSize=true
git-svn-id: trunk@34398 -
2011-12-25 00:05:58 +00:00
sekelsenmat
5e67d91117 applies patch from bug #20252: [Patch] BitBtn with Kind<>bkCustom should not save Caption to LFM but be translated via lclstrconsts
git-svn-id: trunk@32648 -
2011-10-03 08:55:56 +00:00
paul
be294f7218 lcl: set ModalResult to mrClose if BitBtn.Kind = bkClose (issue #0019197)
git-svn-id: trunk@30380 -
2011-04-19 08:04:05 +00:00
blikblum
f5d51f780f lcl: simplify LoadGlyphFrom*
git-svn-id: trunk@30345 -
2011-04-17 12:19:56 +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
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
paul
e914afd958 lcl: set default TSpeedButton.Color value to clBtnFace
git-svn-id: trunk@27768 -
2010-10-20 05:51:22 +00:00
sekelsenmat
6a2f27cac2 Patch from bug #17594. Solves compiling Lazarus with the fpc branch fpc-xpcom
git-svn-id: trunk@27667 -
2010-10-12 15:00:44 +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
paul
0464afa852 lcl: remove TCustomButton, TButton redeclaration
git-svn-id: trunk@23676 -
2010-02-10 07:45:35 +00:00
paul
2e2fcd58fc lcl: bidi mode support for buttons from Zaher Dirkey (#issue #0014933)
git-svn-id: trunk@22448 -
2009-11-05 14:35:36 +00:00
mattias
4985679568 LCL: TSpeedButton: published AutoSize
git-svn-id: trunk@21432 -
2009-08-24 10:10:37 +00:00
paul
3f5dc06930 lcl: implement TMenuItem.GlyphShowMode, TApplication.ShowMenuGlyphs, TApplicationProperties.ShowMenuGlyphs
git-svn-id: trunk@20192 -
2009-05-25 08:38:20 +00:00
paul
695d17aeb1 lcl: TButtonGlyph
- show always in design time and don't react on ShowMode change
  - show always for TSpeedButton

git-svn-id: trunk@19947 -
2009-05-13 02:58:39 +00:00
paul
3005b7d87f lcl: add TApplication.ShowButtonGlyphs property and handle change
git-svn-id: trunk@19938 -
2009-05-12 08:02:36 +00:00
paul
f3dfb636c4 lcl: add new property TBitBtn.GlyphShowMode and new function TBitBtn.CanShowGlyph
git-svn-id: trunk@19909 -
2009-05-10 15:52:24 +00:00