Commit Graph

452 Commits

Author SHA1 Message Date
mattias
50ba07eaa8 LCL: fixed TCustomTabControl.AdjustClientRect to use parameter
git-svn-id: trunk@24189 -
2010-03-24 13:26:23 +00:00
paul
c6c63ccae9 lcl: fix ownerdata listview notifications
git-svn-id: trunk@23909 -
2010-03-10 02:54:12 +00:00
dmitry
11f880e78a lcl: setting items state on listview handle creation
git-svn-id: trunk@23724 -
2010-02-17 06:51:12 +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
3319ecca5b lcl: add GetOwner to some TPersistent descendants
git-svn-id: trunk@23237 -
2009-12-23 08:48:01 +00:00
paul
c95dd96212 lcl: add TListView.OnExit, TListView.OnEnter
git-svn-id: trunk@23210 -
2009-12-21 07:36:47 +00:00
paul
b3e63da3b0 lcl: add GetLastMultiSelected to TTreeView
git-svn-id: trunk@23179 -
2009-12-18 08:08:44 +00:00
paul
29154135e7 lcl: return header section text as display name if available
git-svn-id: trunk@23010 -
2009-12-07 02:28:11 +00:00
andrew
e49b42439b * gtk2 Listview now uses custom GtktreeModel that gets it's data directly from TListItems. Old behavior can be restored by compiling lcl with -dUseOrigTreeModel
git-svn-id: trunk@22945 -
2009-12-03 16:15:31 +00:00
paul
aa612b4fd3 lcl: TListColumns must return valid owner on GetOwner
git-svn-id: trunk@22916 -
2009-12-02 03:22:17 +00:00
andrew
211c57e47a Fixed bug #11016 where TTreeNode.EditText was not implemented
git-svn-id: trunk@22910 -
2009-12-02 00:52:42 +00:00
andrew
b88059e19b Fixed bug #10622 where Listview.ItemIndex did not exist
git-svn-id: trunk@22909 -
2009-12-01 23:49:24 +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
bbdc3ac65d lcl: set default size for TCustomTreeView, TCustomListView
git-svn-id: trunk@22719 -
2009-11-23 08:31:31 +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
5cf79cb15b lcl: publish TTabSheet.Font property (issue #0014918)
git-svn-id: trunk@22313 -
2009-10-28 09:52:30 +00:00
paul
5b9bce5f38 lcl: apply patch of Boian Mitov to support listview state images and HitTestInfo under win32 (issue #0014881)
git-svn-id: trunk@22310 -
2009-10-28 09:41:02 +00:00
paul
216212b7a3 lcl: publish TStatusBar.BorderSpacing
git-svn-id: trunk@22212 -
2009-10-18 06:20:52 +00:00
mattias
26c3fe503f LCL: TCustomUpDown: using KeyDown event handler instead of OnKeyDown
git-svn-id: trunk@22151 -
2009-10-13 20:15:54 +00:00
paul
aa3aa41889 lcl: change ImageIndex property from Integer to TImageIndex for more components
git-svn-id: trunk@22141 -
2009-10-13 09:53:40 +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
c8b4ccad1f lcl: fix TPageContol.OnChange event
git-svn-id: trunk@22037 -
2009-10-05 06:26:12 +00:00
paul
ffc58f9042 lcl: publish docking related properties for TListView
git-svn-id: trunk@21883 -
2009-09-26 14:19:20 +00:00
paul
2f6201ed2e lcl: publish OnMouseEnter, OnMouseLeave for some controls (patch of Zeljan, issue #0014575)
git-svn-id: trunk@21683 -
2009-09-13 11:31:57 +00:00
paul
32e74e9789 lcl: publish TPageControl.ShowTabs (mantis #0002037)
git-svn-id: trunk@21678 -
2009-09-13 08:02:09 +00:00
paul
4a0461a558 lcl: ListView:
- add TIconOptions
  - win32 implement support for different IconOptions (issue #0014460)

git-svn-id: trunk@21546 -
2009-09-03 02:48:41 +00:00
paul
ae65b07221 lcl, win32, carbon: initial implementation of virtual TListView by Dmitry (issue #0007749)
git-svn-id: trunk@21524 -
2009-09-01 16:44:31 +00:00
sekelsenmat
9d1b80451a Changes all dynamic methods in the ide, lclintf and lcl to virtual methods, because they are the same in fpc and dynamic is a legacy directive
git-svn-id: trunk@21280 -
2009-08-18 14:44:25 +00:00
paul
5a4bf4a31b lcl: skip ampersands in toolbutton textsize calculations
git-svn-id: trunk@20503 -
2009-06-08 03:28:05 +00:00
mattias
e9d3df252f LCL: TToolBar: fixed autosize loop
git-svn-id: trunk@20481 -
2009-06-06 16:59:46 +00:00
paul
673794373d lcl: publish TToolBar.Anchors
git-svn-id: trunk@20393 -
2009-06-04 06:26:38 +00:00
paul
587061f64f lcl: improve THeaderControl:
- publish BorderSpacing property
  - fix poor drawing if ContentRect is the same as the draw rect

git-svn-id: trunk@20323 -
2009-05-31 08:22:23 +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
mattias
b5b3115e36 LCL: implemented TToolButton.AutoSize
git-svn-id: trunk@20303 -
2009-05-30 11:17:39 +00:00
paul
a8544fc87d lcl: add TProgressBar.Style property, implement Marquee style for win32, qt, gtk2 (issue #0013807)
git-svn-id: trunk@20161 -
2009-05-24 09:49:13 +00:00
paul
a8ae3b4f66 lcl: TPageControl: set dock site rectangle in DockOver and not in PositionDockRect since PositionDockRect used in other unrelated to dock over cases
git-svn-id: trunk@20092 -
2009-05-21 07:58:18 +00:00
paul
aacedf424d lcl: add a separate option to draw themed +/- tree signs in the treeview (by Luiz Americo, issue #0013677)
git-svn-id: trunk@20004 -
2009-05-17 08:31:38 +00:00
paul
c72ee51dc8 lcl: add TStatusBar.GetPanelIndexAt()
git-svn-id: trunk@19818 -
2009-05-06 07:03:16 +00:00
sekelsenmat
fdf5a12e01 Further implements TShellListView and other small changes and fixes
git-svn-id: trunk@19771 -
2009-05-02 16:29:41 +00:00
paul
584cb15de3 lcl: cleanup
git-svn-id: trunk@19393 -
2009-04-13 01:35:06 +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
8235487c42 lcl: fix char case
git-svn-id: trunk@18934 -
2009-03-10 01:58:35 +00:00
paul
80b7122c67 lcl: set default values for TListView.SortColumn, TListView.SortType, TListColumn.AutoSize
git-svn-id: trunk@18931 -
2009-03-09 15:40:29 +00:00
paul
b0938be4da lcl: set default values for TListView.ParentColor and TCustomImageList.Masked
git-svn-id: trunk@18930 -
2009-03-09 15:34:43 +00:00
paul
c363b5fff8 gtk2: fix item exchange (bug #0013081)
git-svn-id: trunk@18809 -
2009-02-23 13:48:46 +00:00
paul
fbfc224459 lcl: Color property storing (fixes bug #0012322)
- change default ColorIsStored method. It was written probably to override old fpc streaming bug. Now it only checks for ParentColor property. If control want to skip some color storing then simple Default value need to be filled.
- remove TButtonControl.ColorIsStored, TStatusBar.ColorIsStored. Default value for color property do this job
- introduce new function IsColorDefault(AControl: TControl): Boolean; which checks both ParentColor and default color value
- gtk: use IsColorDefault instead of IsColorStored

git-svn-id: trunk@18744 -
2009-02-18 08:40:13 +00:00
paul
3e01ab5302 lcl: publish TListView.BorderStyle, implement it for win32 (already works for gtk2 issue #0013182)
git-svn-id: trunk@18732 -
2009-02-17 14:31:56 +00:00
paul
895b31f8f4 lcl: add protected field TStatusPanel.FIntfFlag to store useful flags in the status panels by interfaces (needs in the next commit)
git-svn-id: trunk@18618 -
2009-02-09 14:59:27 +00:00
paul
1523931aa3 lcl: pass status panel parts which need to update to the UpdateHandleObject
git-svn-id: trunk@18599 -
2009-02-08 12:09:04 +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
5afc24b43d lcl: publish ParentFont and ParentColor properties for TListView (bug #0001910 by Leslie Kaye)
git-svn-id: trunk@18585 -
2009-02-05 15:25:30 +00:00
paul
68603b956b lcl: remove Crl3D, ParentCtl3D properties, register them as properties to skip
git-svn-id: trunk@18517 -
2009-01-31 12:04:03 +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
d0c44e6ff9 LCL: TTreeView: implemented editing
git-svn-id: trunk@18355 -
2009-01-20 14:06:28 +00:00
vincents
8b26a74894 LCL: implemented MouseWheel handler for treeview (fixes issue #13002)
scroll whole lines when scrolling vertically as indicated in comment.

git-svn-id: trunk@18346 -
2009-01-19 21:29:10 +00:00
paul
545a71f8fa lcl: add delphi compatible DrawPanel method to the TStatusBar to allow component descendants override it without hooking to event
git-svn-id: trunk@18319 -
2009-01-17 10:56:29 +00:00
vincents
38adeef869 lcl: implemented owner drawn statusbar in the LCL and the win32 widget set (issue #1679)
* based on a patch from Leslie Kaye
* doesn't work yet for themed windows XP

git-svn-id: trunk@18312 -
2009-01-16 19:22:58 +00:00
paul
e5ead902a7 lcl: don't allow to set position of trackbar outside Min and Max (based on idea of Leslie Kaye, bug #0012893)
git-svn-id: trunk@18008 -
2009-01-01 10:23:00 +00:00
paul
d9491a4528 lcl: fix header
git-svn-id: trunk@18002 -
2008-12-31 03:07:17 +00:00
paul
3596127a45 lcl: set default value for TStatusPanel.Alignment
git-svn-id: trunk@17726 -
2008-12-08 10:27:07 +00:00
paul
9e6ad52bfa lcl: force treeview to reset scrollbar info after window recreation (#0012761)
win32: redraw scrollbars also if themes are not used but available (xp application without manifest)

git-svn-id: trunk@17722 -
2008-12-08 07:58:31 +00:00
paul
c806339762 lcl: publish wheel events for trackbar (by request of Maxim Ganetsky)
git-svn-id: trunk@17703 -
2008-12-06 14:43:30 +00:00
paul
6e2e2c1ff2 lcl: update visibility of methods to prevent compiler warnings
- move KeyDown, KeyUp, DoMouseWheelDown, DoMouseWheelUp, ColorIsStored, Paint, and other misc methods from public to protected
  - move some descendants methods from lower visibility to higher
  - fix use of protected KeyDown, Paint inside few ide units

git-svn-id: trunk@17564 -
2008-11-24 08:15:23 +00:00
paul
6ab8ef7ffe lcl: set defaults to some control properties
git-svn-id: trunk@17560 -
2008-11-24 03:15:50 +00:00
andrew
af616a4578 * improved the gtk2 listview to not store data twice
* gtk2 listview can now have ownerdrawn items
* gtk2 listview only keeps one copy of a pixbuf per it's imagelist instead of one per item in the listview
* fixed two memory leaks in gtk2 listview
* added method TListItem.GetCheckedInternal

git-svn-id: trunk@17502 -
2008-11-22 03:21:36 +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
6b61f8046b lcl: use psPattern style as default for TreeView.TreeLineStyle, temporary workaround psPattern painting by a slow code (but treeview looks much better now) #0012471
git-svn-id: trunk@17109 -
2008-10-23 12:52:49 +00:00
vincents
c32d7d3fa6 LCL: added TTreeview.TreeLinePenStyle from Paul Michell (issue #12459)
git-svn-id: trunk@17099 -
2008-10-22 12:45:18 +00:00
paul
1628077528 lcl: undo CN_NOTIFY overriding for trackbar
win32: 
  - handle CN_NOTIFY in the default handler and redirect it to the window proc in case of trackbar
  - use ThemeManager code to draw themed trackbar

git-svn-id: trunk@17091 -
2008-10-22 05:12:23 +00:00
paul
112beff0fb win32: don't override TrackBar WM_NOTIFY handler result in the lcl default handler (trackbar bg is transparent now)
git-svn-id: trunk@17090 -
2008-10-22 03:39:47 +00:00
paul
7b0a85df11 lcl: add TListItems.BeginUpdate, TListItems.EndUpdate with empty implementation to simplify delphi project conversion
git-svn-id: trunk@16941 -
2008-10-09 09:33:45 +00:00
paul
220ada332c lcl: add support for invisible sections in THeaderControl (from Benito van der Zander #0011727)
git-svn-id: trunk@16817 -
2008-10-01 05:42:41 +00:00
paul
3374c666b8 lcl: publish OnUTF8KeyPress
git-svn-id: trunk@16520 -
2008-09-10 09:22:59 +00:00
mattias
69cfe88898 using UTF-8 for file operations and environment variables
git-svn-id: trunk@16236 -
2008-08-25 22:32:23 +00:00
vincents
840a0977ba LCL: don't stream the Data property of a TreeNode, fixes issue #11749
git-svn-id: trunk@16040 -
2008-08-12 14:27:25 +00:00
mattias
4bab0127bc lcl: treeview.TreeLineColor changed default to clWindowFrame, same as ExpandSignColor
git-svn-id: trunk@15923 -
2008-07-31 09:47:58 +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
fad1936a76 lcl: publish OnContextPopup for more controls
git-svn-id: trunk@15446 -
2008-06-17 04:53:06 +00:00
paul
a505d246aa lcl: publish more statusbar properties
git-svn-id: trunk@15162 -
2008-05-16 07:28:47 +00:00
paul
a9c5cef59f lcl: publish TStatusBar.ShowHint
git-svn-id: trunk@15148 -
2008-05-15 07:54:31 +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
paul
2c757eff9a lcl: make TToolButton TGraphicControl instead of TCustomControl. This is: a) delphi compatible b) eats less system resources
git-svn-id: trunk@15091 -
2008-05-11 06:57:49 +00:00
paul
3108f60f93 lcl:
- Publish TListView ShowHint, ParentShowHint (9708).
- Correct TTabControl drawing. Don't clear tab area since it is painted by notebook. Draw pane area with ThemeServices. 
- Teach gtk ThemeServices to draw notebook pane.

git-svn-id: trunk@15027 -
2008-05-01 18:26:50 +00:00
paul
3ec6f39282 lcl: dragging of header control buttons (patch from Benito van der Zander, #0011209)
git-svn-id: trunk@14995 -
2008-04-28 06:56:08 +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
8e0549f6c8 another forgotten file
git-svn-id: trunk@14860 -
2008-04-17 08:43:47 +00:00
paul
7a90db3ab1 lcl: don't show pressed state for whole toolbutton when only arrow is pressed (part of 0000612)
git-svn-id: trunk@14726 -
2008-04-02 08:26:15 +00:00
paul
564ac357d7 lcl: fixes the non-functional OnChange event in TPageControl (by Tobias Giesen, issue #0011071)
git-svn-id: trunk@14691 -
2008-03-31 00:43:45 +00:00
mattias
bd9c42bbd1 LCL: fixed compilation: unit circles and inline dont play together
git-svn-id: trunk@14629 -
2008-03-25 09:19:15 +00:00
paul
ad94ffd5fb THeaderControl:
- Allow to resize the buttons on the THeaderControl (patch from Benito van der Zander with small modifications issue #0011036)
- Add MinWidth, MaxWidth to section to prevent resizing
- correct build lazarus dialogs to prevent header resizing after this changes

git-svn-id: trunk@14622 -
2008-03-24 08:41:25 +00:00
paul
d205eeefae statusbar: reassign sizegrip to interface widget on position change
git-svn-id: trunk@14595 -
2008-03-20 08:51:03 +00:00
paul
9642488f11 statusbar:
- better fix for statusbar jumping (from top to bottom)
- add SizeGrip property and implement it for win32 (0001705)

git-svn-id: trunk@14591 -
2008-03-20 07:27:55 +00:00
paul
63d551e608 statusbar: publish OnCreatePanelClass for better compatibility with Delphi
git-svn-id: trunk@14590 -
2008-03-20 06:25:50 +00:00
paul
df0c6930b5 TStatuBar:
- publish more events and properties
- allow have any align/anchors
- win32: don't reposition StatusBar to bottom if it have another align (0010386)

git-svn-id: trunk@14588 -
2008-03-20 03:54:21 +00:00
vincents
4e7fab3731 LCL: fixed streaming TStatusBar.Color, if Color is clWindow (bug #10696)
git-svn-id: trunk@14463 -
2008-03-07 19:25:21 +00:00
paul
11de6af8b9 decapitalize all procedure and function keywords to make all looks the same
git-svn-id: trunk@14375 -
2008-03-03 08:06:26 +00:00
mattias
1040ede9cd LCL: TTreeView: reduced inavlidates during update
git-svn-id: trunk@14192 -
2008-02-19 13:27:54 +00:00
paul
778b98c928 use clWindow instead of clWhite for TreeView background (hint by rysiek|pl)
git-svn-id: trunk@13982 -
2008-02-05 23:19:59 +00:00
paul
cbb748b963 toolbutton:
- support for vertical toolbars
- improve drawing of dividers
- draw separators on flat toolbars as ||

git-svn-id: trunk@13903 -
2008-01-29 07:18:04 +00:00
paul
7eef259d42 publish TStatusBar.Align
git-svn-id: trunk@13893 -
2008-01-27 14:53:52 +00:00
paul
81f6e73177 fix AutoDragging in TCustomTreeView
git-svn-id: trunk@13871 -
2008-01-24 23:45:25 +00:00
paul
b5adcbda29 listview: update listitem state
git-svn-id: trunk@13802 -
2008-01-19 17:31:38 +00:00
paul
be879539ca - move OnGetDockCaption and friends to TWinControl
- some improvements to dock header drawing

git-svn-id: trunk@13681 -
2008-01-09 09:08:12 +00:00
paul
24b1794ec1 forgotten "var"
git-svn-id: trunk@13661 -
2008-01-07 18:45:22 +00:00
paul
213353b06d - publish some docking related properties for TPageControl
- implement docking into TPageControl (tested with TPanel dock into TPageControl)

git-svn-id: trunk@13660 -
2008-01-07 18:40:31 +00:00
mattias
87f6bf248d LCL: removed unneeded procs
git-svn-id: trunk@13570 -
2008-01-02 00:34:19 +00:00
mattias
525fec94be LCL: replaced drag/dock messages with a cleaner TDragManager from Marius
git-svn-id: trunk@13564 -
2008-01-01 23:35:52 +00:00
paul
1142175130 dont start drag immediately for TListView (this is Delphi compatible)
git-svn-id: trunk@13385 -
2007-12-19 07:45:22 +00:00
paul
0897bb06ff - use BeginUpdate and EndUpdate from TCollection instead of own in TListColumns implementation
- commit forgotten file

git-svn-id: trunk@13383 -
2007-12-19 04:40:13 +00:00
paul
550b78239f remove obsoleted ifdefs
git-svn-id: trunk@13382 -
2007-12-19 04:03:00 +00:00
mattias
fd641213fc LCL: undo docking patch
git-svn-id: trunk@13349 -
2007-12-16 11:00:25 +00:00
mattias
767859d068 IDE: implemented short cuts for ecSetFreeBookmark, ecPrevBookmark, ecNextBookmark
git-svn-id: trunk@13348 -
2007-12-16 10:58:01 +00:00
vincents
13daa3a38b LCL: published TListView.OnResize (bug #10242)
git-svn-id: trunk@13064 -
2007-11-28 15:48:30 +00:00
paul
4787d1157b lcl: draw toobar elements with ThemeServices (0010187)
git-svn-id: trunk@12893 -
2007-11-16 09:34:27 +00:00
mattias
5af932d6f0 LCL: TToolBar: implemented simple heuristic for preferredheight from Paul, and calculating NewWidth,NewHeight of WrapButtons
git-svn-id: trunk@12774 -
2007-11-07 23:10:58 +00:00
paul
2bc5188cb4 TListView:
- lcl: better handling of TListItem.Checked
- gtk1/2 implemented TListView.Checkboxes and TListItem.Checked

git-svn-id: trunk@12755 -
2007-11-06 09:20:04 +00:00
vincents
273b5da323 LCL: keep selected item list of a treeview ordered (#9951), fixes also bug #9750 from Gerard Visent
git-svn-id: trunk@12661 -
2007-10-31 09:55:33 +00:00
paul
4480d1ed60 lcl: draw ToolBar using themes (through -dUseThemes switch). only for manifested winxp at moment
git-svn-id: trunk@12562 -
2007-10-23 12:11:26 +00:00
mattias
6264aac23c LCL: fixed using parent borderspacing, fixed anchor spacing for parallel controls, fixed endless loop autosize interdependencies, implemented auto fixing anchor circles, implemented auto fixing center anchoring, fixed calculation of static childsizing layouts, fixed autosizing for controls without preferred size by providing default sizes also used in creation, fixed TSizeConstraints.MinMaxWidth/Height
git-svn-id: trunk@12461 -
2007-10-14 12:54:29 +00:00
sekelsenmat
ea7c9a28a9 Moved the minimum necessary types and constants from commctrl to lcltype to allow compilation of gtk, gtk2, carbon and qt.
git-svn-id: trunk@12321 -
2007-10-04 19:39:15 +00:00
mattias
f4eaf90e42 undo
git-svn-id: trunk@12129 -
2007-09-22 10:09:27 +00:00
mattias
b647927885 translations: german: added lazreport maincalleditor.de.po from Joerg Braun
git-svn-id: trunk@12128 -
2007-09-22 10:06:48 +00:00
paul
8c2198629f - fix hang (on exit) of projects contains listview with assigned more than 1 imagelist (and hang on lazarus itself) (from Nikolay) issue #9609
git-svn-id: trunk@11975 -
2007-09-09 09:33:16 +00:00
paul
7d5f9842ec - fix win32 crash if listview imagelist changed to nil (from Nikolay aka Browny)
- change ToolButtons font on ToolBar font change events (from Nikolay)
- redraw ToolButton if enabled changed and pass apropriate flag to ImageList.Draw (from Nikolay)
- cleanup

git-svn-id: trunk@11974 -
2007-09-09 08:53:16 +00:00
mattias
be22076c7a LCL: TCustomUpDown remving old csPanel and using default of TCustomControl ancestor
git-svn-id: trunk@11849 -
2007-08-23 13:28:31 +00:00
vincents
99f0cddd30 lcl: added ListView.Tooltips property, implemented for win32 widgetset (bug #9136)
git-svn-id: trunk@11823 -
2007-08-15 18:13:43 +00:00
mattias
3f1cae0b7b LCL: TToolBar: Indent is now used in AdjustClientRect to allow AutoSize=true, TWinControl.GetChildBounds now use AdjustClientRect for space
git-svn-id: trunk@11736 -
2007-08-04 12:13:16 +00:00
vincents
0e34ed8982 LCL: default values of ListItem and TreeNode image index set to -1 for Delphi compatibility (bug #9192)
git-svn-id: trunk@11416 -
2007-07-03 13:26:02 +00:00
paul
7523e184b2 - THeaderControl added
git-svn-id: trunk@11276 -
2007-06-04 07:55:26 +00:00
mattias
545c0cee08 LCL: TTabControl: added comments
git-svn-id: trunk@11086 -
2007-05-06 08:34:20 +00:00
paul
ecd9cd39c7 - fixed doubling of columns if ListView handle had been created during load process (report 0008794)
git-svn-id: trunk@11056 -
2007-05-03 01:46:24 +00:00
paul
7de0398b2a declared TListItem.Position, TListItem.Top, TListItem.Left with implementation for win32 (0008426)
git-svn-id: trunk@10969 -
2007-04-18 15:51:50 +00:00
vincents
263aa5147d LCL: fixed loading ListView items on 64 bits targets
+ the LCL now reads/writes ListView.Items.LazData property which does not include ListItem.Data pointer value
* the only reads, but doesn't write ListView.Items.Data property. It assumes a 32 bit data field. This is to be compatible with existing lfm files and Delphi.

git-svn-id: trunk@10946 -
2007-04-14 20:49:16 +00:00
paul
14d8e68b4a - Step 1 of implementing DragImageList (only barebone)
git-svn-id: trunk@10879 -
2007-04-05 09:31:25 +00:00
paul
d90cad2972 - moved DoShow, DoHide, OnShow, OnHide from TTabSheet to TCustomPage (ancestor)
- fireing OnShow and OnHide on page changing

git-svn-id: trunk@10816 -
2007-03-28 04:48:30 +00:00
mattias
c327bb674a IDE: codebrowser: showing code nodes in treeview
git-svn-id: trunk@10707 -
2007-03-04 22:34:06 +00:00
vincents
ba85e84687 LCL: published dragging related properties
patch by: Paul Ishenin

git-svn-id: trunk@10648 -
2007-02-16 08:31:43 +00:00
mattias
89f08fb3a2 LCL: TTreeView: fixed MoveTo moving selection, h2pas: replaced checklst with TTreeView
git-svn-id: trunk@10562 -
2007-02-01 19:57:23 +00:00
mattias
a4579a8ef6 IDE: fixed not adding CreateForm statement if main project file does not support it
git-svn-id: trunk@10537 -
2007-01-30 10:02:18 +00:00
mattias
cd48c061df LCL: TTreeView: multiselecting node, when selecting
git-svn-id: trunk@10490 -
2007-01-22 16:25:19 +00:00
mattias
070969769c LCL: TTreeView: accelerated TTreeNode.GetIndex
git-svn-id: trunk@10486 -
2007-01-22 14:37:12 +00:00
mattias
66c4a28b49 IDE: message window: replaced TListBox with TTreeView, LCL: TTreeView: fixed normal left click selection with multiselections
git-svn-id: trunk@10484 -
2007-01-21 12:16:13 +00:00
marc
466edbbd14 * Fixed bug #1854
git-svn-id: trunk@10481 -
2007-01-20 02:19:19 +00:00
vincents
0780f4b56b LCL: added treeview option to disable expanding on double clicking a tree node.
git-svn-id: trunk@10408 -
2007-01-09 10:41:00 +00:00
vincents
d40c271e2f fixed some warning from fpc 2.1.1 (bug #8008)
git-svn-id: trunk@10407 -
2007-01-09 10:24:14 +00:00
vincents
c5cfa947b3 LCL: fixed inconsistency in default value of TCustomListView.ViewStyle
git-svn-id: trunk@10329 -
2006-12-13 12:21:24 +00:00
mattias
99c9e9fcce published TPageControl.OnPageChanged
git-svn-id: trunk@9818 -
2006-09-05 19:28:21 +00:00
marc
3140af0ad5 * made listview customdraw Delphi compatible
* moved listview customdraw parts from interface to lcl

git-svn-id: trunk@9812 -
2006-09-04 21:39:47 +00:00
marc
352eaa11ed * made naming more consistent. Intfxxx methods are called by the interface, WSxxx methods call the interface
git-svn-id: trunk@9785 -
2006-09-02 16:21:55 +00:00
marc
d05adb23c1 * modified customdraw listview patch from BeniBela
git-svn-id: trunk@9770 -
2006-08-29 23:33:15 +00:00