Commit Graph

109 Commits

Author SHA1 Message Date
mattias
82085e2c7d LCL: TToolBar: when BidiMode righttoleft put controls rightmost
git-svn-id: trunk@43420 -
2013-11-11 12:47:22 +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
juha
311145649a Changed files for CoolBar
git-svn-id: trunk@39984 -
2013-01-27 20:17:31 +00:00
bart
a667f618e1 TToolBar: extend heuristic in IsVertical function to also consider alClient and alCustom.
Fixes issue #0023034

git-svn-id: trunk@38939 -
2012-10-01 19:21:23 +00:00
vincents
fe53b9943a LCL: initialized toolbar height with default value, fixes issue #20132
git-svn-id: trunk@36087 -
2012-03-16 11:39: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
423815bcc3 lcl: post CN_DROPDOWNCLOSED after Popup is executed because it is too early to post it on close event - on windows it reaches the sender before the click event (issue #0016044)
git-svn-id: trunk@29833 -
2011-03-14 06:54:46 +00:00
paul
bbe53df988 lcl: post CN_DROPDOWNCLOSED before closing a toolbar popup menu for delphi compatibility, call TMenuItem.Click when tool button is clicked
git-svn-id: trunk@29779 -
2011-03-10 06:34:49 +00:00
paul
a0328590c5 lcl: formatting, cleanup
git-svn-id: trunk@29778 -
2011-03-10 04:26:42 +00:00
mattias
b3a8dd03b1 fixed typos: childs
git-svn-id: trunk@29440 -
2011-02-10 09:37:16 +00:00
martin
45883b6dc0 IDE: fixed invisible toolbutton in designer. Issue #18192
git-svn-id: trunk@28697 -
2010-12-12 16:26:05 +00:00
paul
4439ab142e lcl: set ToolBar.Transparent = False by default
git-svn-id: trunk@28154 -
2010-11-08 10:34:16 +00:00
paul
d49ae27a49 lcl, win32: implement TToolbar.Transparent property
git-svn-id: trunk@28150 -
2010-11-08 08:57:18 +00:00
mattias
1bb0bd225f LCL: fixed TAnchorSIde.IsAnchoredToParent
git-svn-id: trunk@25271 -
2010-05-09 08:16:14 +00:00
mattias
5c65c9304e LCL: TToolBar: improved check if width is fixed and autosize, bug #16425
git-svn-id: trunk@25264 -
2010-05-08 20:02:33 +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
8798f09aa7 LCL: TToolBar: fixed wrap
git-svn-id: trunk@24620 -
2010-04-14 13:01:02 +00:00
mattias
314c61457e codetools: FindStartOfAtom check if at start of string constant, bug #16203
git-svn-id: trunk@24446 -
2010-04-05 20:02:16 +00:00
mattias
8e09f3c8dd LCL: TToolBar: prevent endless loop if not enough space, bug #16194
git-svn-id: trunk@24412 -
2010-04-04 22:37:50 +00:00
mattias
7c4cb1efcb LCL: DoAllAutoSize: check handleallocated for childs, needed after SetParent
git-svn-id: trunk@24407 -
2010-04-04 18:31:32 +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
e16bb0cfa4 LCL:
autosize: turn childs visible before parent
autosize without visible handle: clear requests
TWinControl.UpdateControlState: call AdjustSize to delay showing after bound computation
TWinControl.WMSize: ignore if no bounds were sent to intf
TToolBar.CreateWnd: delay autosize
TControl.DoAllAutoSize: do not autosize invisible controls

git-svn-id: trunk@24377 -
2010-04-03 13:28:35 +00:00
maxim
0e648dd6d1 LCL: fixed a typo which breaks IDE compilation with -dOldAutoSize
git-svn-id: trunk@24261 -
2010-03-28 00:10:18 +00:00
mattias
4f5b4cc836 LCL: TToolBar: improved CalculatePreferredSize
git-svn-id: trunk@24259 -
2010-03-27 23:12:39 +00:00
mattias
9ec360a2e8 LCL: newautosize: AutoSizeDelayed ignore HandleAllocated, UpdateControlState: call AdjustSize instead of UpdateShowing to delay showing after the bounds have been computed
git-svn-id: trunk@24256 -
2010-03-27 22:58:28 +00:00
mattias
4f4bb0755f lcl: TToolBar: auto fix anchoring of child controls
git-svn-id: trunk@24076 -
2010-03-18 00:23:14 +00:00
blikblum
d1191aa008 lcl: Remove ParentFontChanged from TCustomCheckListBox and TToolbar since it's not necessary
git-svn-id: trunk@23247 -
2009-12-24 01:07:11 +00:00
paul
747db959f4 lcl: add enumerators for TListItems, TTreeNodes, TToolBar
git-svn-id: trunk@22409 -
2009-11-03 16:07:56 +00:00
paul
950305ea23 lcl: readjust toolbuttons size on various events like ImageList change
git-svn-id: trunk@22162 -
2009-10-14 03:38:14 +00:00
paul
b44c4ffbec lcl: formatting
git-svn-id: trunk@22161 -
2009-10-14 03:37:25 +00:00
mattias
7799ac78c6 LCL: started new autosizing phases
git-svn-id: trunk@21491 -
2009-08-30 21:30:57 +00:00
paul
b6ed6bdc07 lcl: implement toolbar autosizing
git-svn-id: trunk@20849 -
2009-07-13 08:24:23 +00:00
paul
7031393709 lcl: formatting
git-svn-id: trunk@20848 -
2009-07-13 08:13:39 +00:00
mattias
e9d3df252f LCL: TToolBar: fixed autosize loop
git-svn-id: trunk@20481 -
2009-06-06 16:59:46 +00:00
mattias
ed48fb1d69 LCL: TToolBar: always use width and height of AutoSized childs
git-svn-id: trunk@20307 -
2009-05-30 13:29:45 +00:00
mattias
db8a062f86 LCL: improved TToolBar.AutoSize with wrapping
git-svn-id: trunk@20305 -
2009-05-30 13:25:02 +00:00
mattias
cabc18d336 LCL: TToolBar.WrapButtons extended for only computing the new size without applying it
git-svn-id: trunk@20304 -
2009-05-30 12:29:21 +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
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
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
paul
c18f0e2a56 lcl: set TToolBar.Flat = True by default - flat toolbars are generally looks better on all platforms (they have more native look). Moreover it is delphi compatible.
git-svn-id: trunk@17436 -
2008-11-19 03:58:02 +00:00
paul
b4697ac21e lcl: take ButtonCount into account on calculating toolbar preferred size (#0012073)
git-svn-id: trunk@16819 -
2008-10-01 07:04:25 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
paul
e1ffc23daa lcl: improve reordering of toolbuttons if they were added on toolbar create and their bounds are equal
git-svn-id: trunk@15434 -
2008-06-16 07:06:37 +00:00
paul
51a4213c3f lcl: ToolBar should not get focus (in other case every toolbutton click will focus it)
git-svn-id: trunk@15092 -
2008-05-11 12:38:53 +00:00
marc
b7569c6053 * Fixed crash when TToolbar.ButtonHeight = 0
* TToolbar.ButtonHeight overrules TToolbutton.Autosize (when > 0)
* Fixed caption update when TToolbar.Autosize = False
* Fixed setting Toolbutton size when alignment allowes

git-svn-id: trunk@14909 -
2008-04-20 16:31:50 +00:00
paul
a3ac3bce41 lcl: don't create handle for invisible menu items on inserting them to menu (issue #0000646)
git-svn-id: trunk@14725 -
2008-04-02 07:36:40 +00:00