Commit Graph

104 Commits

Author SHA1 Message Date
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
mattias
cf55952b42 removed OldAutoSize
git-svn-id: trunk@25190 -
2010-05-04 19:16:18 +00:00
mattias
3729314672 LCL: TControl.DoAutoSize: autosizes to peferred size
git-svn-id: trunk@24379 -
2010-04-03 15:52:01 +00:00
mattias
68c75f3577 LCL: TToolBar using SetBounds to not struggle with the LCL
git-svn-id: trunk@24378 -
2010-04-03 14:14:47 +00:00
mattias
7699be6191 LCL: removed LockBaseBounds, OnChangeBounds can now change its own bounds, bug #16028
git-svn-id: trunk@24085 -
2010-03-18 15:05:07 +00:00
paul
deba8dce43 lcl: comment DebugLn in toolbutton code (issue #0015623)
git-svn-id: trunk@23598 -
2010-01-30 04:04:49 +00:00
paul
7d3d566314 lcl: make TActionLink.SetImageIndex argument delphi compatible TImageIndex -> Integer
git-svn-id: trunk@22727 -
2009-11-23 15:08:19 +00:00
paul
538e53caad lcl: use TImageIndex instead of Integer in more cases
git-svn-id: trunk@22138 -
2009-10-13 09:24:26 +00:00
paul
e8e52a07ea lcl: Explicitly request MenuItem to notify TToolButton about destruction
git-svn-id: trunk@21845 -
2009-09-24 09:29:01 +00:00
paul
7031393709 lcl: formatting
git-svn-id: trunk@20848 -
2009-07-13 08:13:39 +00:00
paul
c729661d99 lcl: fix toolbutton divider and separator drawing on windows 7, implement autosize for them
git-svn-id: trunk@20516 -
2009-06-08 12:28:40 +00:00
paul
e55e302b7e lcl: allow use of DropDownMenu for TToolButton.Style = tbsButton (delphi compatible)
git-svn-id: trunk@20504 -
2009-06-08 03:42:06 +00:00
paul
5a4bf4a31b lcl: skip ampersands in toolbutton textsize calculations
git-svn-id: trunk@20503 -
2009-06-08 03:28:05 +00:00
paul
5a6d80b45a lcl: don't update toolbar if imageindex is set for non-visible button
git-svn-id: trunk@20482 -
2009-06-06 17:05:02 +00:00
paul
6938b6b821 lcl: some cosmetic corrections for TToolButton.Autosize
git-svn-id: trunk@20453 -
2009-06-05 17:09:19 +00:00
mattias
db8a062f86 LCL: improved TToolBar.AutoSize with wrapping
git-svn-id: trunk@20305 -
2009-05-30 13:25:02 +00:00
mattias
b5b3115e36 LCL: implemented TToolButton.AutoSize
git-svn-id: trunk@20303 -
2009-05-30 11:17:39 +00:00
paul
597eb84d8c lcl: Themes
- redo TThemeServices.GetDetailSize to return TSize instead of Integer
  - improve toolbutton drawing

git-svn-id: trunk@20213 -
2009-05-26 01:32:38 +00:00
paul
6af0fb9bc9 lcl: fix asterisk position in the copyright comment
git-svn-id: trunk@19477 -
2009-04-18 04:03:13 +00:00
paul
87e1d4d117 lcl: reduce debug output
git-svn-id: trunk@19463 -
2009-04-17 01:34:25 +00:00
paul
f02c53c71c merge lcl-smartlink branch:
------------------------------------------------------------------------
r19294 | paul | 2009-04-10 11:17:35 +0800 (Птн, 10 Апр 2009) | 1 line

lcl, win32: start optimizations: imglist (all), controls (all), combtrls (statubar)
------------------------------------------------------------------------
r19305 | martin | 2009-04-10 21:53:27 +0800 (Птн, 10 Апр 2009) | 1 line

Moved "DoneRegisterCheck" to global LCL
------------------------------------------------------------------------
r19306 | martin | 2009-04-10 22:14:57 +0800 (Птн, 10 Апр 2009) | 1 line

Moved "DoneRegisterCheck" to global LCL (more)
------------------------------------------------------------------------
r19307 | martin | 2009-04-10 22:22:44 +0800 (Птн, 10 Апр 2009) | 1 line

changed case true => True
------------------------------------------------------------------------
r19308 | paul | 2009-04-10 22:28:28 +0800 (Птн, 10 Апр 2009) | 1 line

fix file case
------------------------------------------------------------------------
r19311 | martin | 2009-04-10 23:09:16 +0800 (Птн, 10 Апр 2009) | 1 line

Moved Registration of TCustomCalendar
------------------------------------------------------------------------
r19312 | martin | 2009-04-10 23:28:03 +0800 (Птн, 10 Апр 2009) | 1 line

Moved PropertyToSkip for TCalender
------------------------------------------------------------------------
r19314 | paul | 2009-04-10 23:50:30 +0800 (Птн, 10 Апр 2009) | 1 line

merge r13913 #999e8b059d
------------------------------------------------------------------------
r19315 | paul | 2009-04-10 23:53:07 +0800 (Птн, 10 Апр 2009) | 1 line

cleanup WSCalendar
------------------------------------------------------------------------
r19316 | paul | 2009-04-11 00:37:44 +0800 (Сбт, 11 Апр 2009) | 1 line

finish with ComCtrls
------------------------------------------------------------------------
r19318 | martin | 2009-04-11 01:37:40 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved dialogs
------------------------------------------------------------------------
r19319 | martin | 2009-04-11 01:47:30 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved dialogs
------------------------------------------------------------------------
r19320 | martin | 2009-04-11 02:47:52 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved ExtCtrls, ExtDlgs
------------------------------------------------------------------------
r19321 | martin | 2009-04-11 03:23:32 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved PropertyToSkip
------------------------------------------------------------------------
r19322 | martin | 2009-04-11 03:37:39 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved StdCtrls
------------------------------------------------------------------------
r19323 | martin | 2009-04-11 04:05:50 +0800 (Сбт, 11 Апр 2009) | 1 line

Moved Buttons
------------------------------------------------------------------------
r19325 | paul | 2009-04-11 11:02:26 +0800 (Сбт, 11 Апр 2009) | 1 line

remove DirSel
------------------------------------------------------------------------
r19326 | paul | 2009-04-11 11:11:37 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterArrow
------------------------------------------------------------------------
r19327 | paul | 2009-04-11 11:32:09 +0800 (Сбт, 11 Апр 2009) | 1 line

register WS classes only for TCustomXXX classes if they are available (like TCustomScrollBar instead of TScrollBar) and only for those descendants which really differ (like TRadioButton, TToggleButton)
------------------------------------------------------------------------
r19328 | paul | 2009-04-11 11:40:00 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomCheckBox
------------------------------------------------------------------------
r19329 | paul | 2009-04-11 11:57:22 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Forms
------------------------------------------------------------------------
r19330 | paul | 2009-04-11 12:13:05 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomGrid + move of RegisterPropertyToSkip
------------------------------------------------------------------------
r19331 | paul | 2009-04-11 12:24:29 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Menus
------------------------------------------------------------------------
r19332 | paul | 2009-04-11 12:35:16 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for PairSplitter
------------------------------------------------------------------------
r19333 | paul | 2009-04-11 12:47:39 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterXXX for Spin
------------------------------------------------------------------------
r19334 | paul | 2009-04-11 12:58:55 +0800 (Сбт, 11 Апр 2009) | 1 line

RegisterCustomRubberBand
------------------------------------------------------------------------
r19335 | paul | 2009-04-11 13:31:43 +0800 (Сбт, 11 Апр 2009) | 1 line

remove 2 initialization sections
------------------------------------------------------------------------
r19336 | paul | 2009-04-11 13:46:26 +0800 (Сбт, 11 Апр 2009) | 1 line

remove TPopupNotifier.png from LCL
------------------------------------------------------------------------
r19338 | paul | 2009-04-11 13:54:03 +0800 (Сбт, 11 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19341 | paul | 2009-04-11 14:59:27 +0800 (Сбт, 11 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19343 | martin | 2009-04-11 19:59:18 +0800 (Сбт, 11 Апр 2009) | 1 line

Reduced Unit-Circles, by moving Register* into WS* units
------------------------------------------------------------------------
r19344 | martin | 2009-04-11 20:22:49 +0800 (Сбт, 11 Апр 2009) | 1 line

Dummy file for gtk
------------------------------------------------------------------------
r19345 | martin | 2009-04-11 21:06:55 +0800 (Сбт, 11 Апр 2009) | 1 line

Initial move of gtk1 register
------------------------------------------------------------------------
r19346 | martin | 2009-04-11 21:19:48 +0800 (Сбт, 11 Апр 2009) | 1 line

Missing dependencies in gtk1 wsfactory
------------------------------------------------------------------------
r19347 | martin | 2009-04-11 22:36:42 +0800 (Сбт, 11 Апр 2009) | 1 line

Declare register* in interface, to keep external linker happy
------------------------------------------------------------------------
r19348 | martin | 2009-04-11 23:34:16 +0800 (Сбт, 11 Апр 2009) | 1 line

Declare register* in interface, to keep external linker happy 
------------------------------------------------------------------------
r19349 | martin | 2009-04-11 23:39:20 +0800 (Сбт, 11 Апр 2009) | 1 line

moved uses for factory
------------------------------------------------------------------------
r19350 | martin | 2009-04-11 23:41:57 +0800 (Сбт, 11 Апр 2009) | 1 line

corrected a few accidental "Result := False"
------------------------------------------------------------------------
r19351 | paul | 2009-04-12 00:04:15 +0800 (Вск, 12 Апр 2009) | 1 line

removed unused units
------------------------------------------------------------------------
r19352 | paul | 2009-04-12 00:05:26 +0800 (Вск, 12 Апр 2009) | 1 line

qt: move RegisterWS calls to qtwsfactory
------------------------------------------------------------------------
r19354 | paul | 2009-04-12 01:04:04 +0800 (Вск, 12 Апр 2009) | 1 line

wince: move RegisterWS calls to WinCEWSFactory
------------------------------------------------------------------------
r19356 | martin | 2009-04-12 01:39:56 +0800 (Вск, 12 Апр 2009) | 1 line

moved GTK2
------------------------------------------------------------------------
r19357 | martin | 2009-04-12 01:45:31 +0800 (Вск, 12 Апр 2009) | 1 line

moved GTK2 / missing units
------------------------------------------------------------------------
r19358 | martin | 2009-04-12 01:57:43 +0800 (Вск, 12 Апр 2009) | 1 line

Fixed one return value from register
------------------------------------------------------------------------
r19360 | martin | 2009-04-12 02:47:42 +0800 (Вск, 12 Апр 2009) | 1 line

Gtk2 , needs 2 registrations for WinControl
------------------------------------------------------------------------
r19361 | martin | 2009-04-12 02:57:58 +0800 (Вск, 12 Апр 2009) | 1 line

Gtk2 , needs 2nd registrations
------------------------------------------------------------------------
r19368 | paul | 2009-04-12 13:09:59 +0800 (Вск, 12 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------
r19373 | paul | 2009-04-12 13:45:17 +0800 (Вск, 12 Апр 2009) | 1 line

wince: forgotten file
------------------------------------------------------------------------
r19374 | paul | 2009-04-12 14:04:04 +0800 (Вск, 12 Апр 2009) | 1 line

carbon: move RegisterWSComponent to CarbonWSFactory
------------------------------------------------------------------------
r19375 | paul | 2009-04-12 14:27:47 +0800 (Вск, 12 Апр 2009) | 1 line

cleanup
------------------------------------------------------------------------

git-svn-id: trunk@19376 -
2009-04-12 08:46:31 +00:00
jesus
82f1dfb48a LCL, mouse hovering a toolbutton might change down state after leaving the button area, it should not change the previous down state
git-svn-id: trunk@18790 -
2009-02-22 05:05:09 +00:00
paul
6fc8235611 lcl: apply patch of Stephano to make some method declarations more delphi compatible (issue #0013125)
git-svn-id: trunk@18593 -
2009-02-06 17:50:50 +00:00
paul
7fd30ae31e lcl: toolbar improvements
- correctly restore button position after width change (bug #0012031)
  - don't allocate width for invisible controls on the toolbar, notify toolbar when toolbutton visibility changes (mentioned in the bug #0012031)

git-svn-id: trunk@18482 -
2009-01-29 06:03:26 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00