Commit Graph

134 Commits

Author SHA1 Message Date
paul
0e7b523d31 lcl: fix TBrush.Assign (was missing FreeReference, extra changed when nothing changed)
git-svn-id: trunk@36813 -
2012-04-16 09:23:24 +00:00
blikblum
6f02c6c229 lcl: cleanup TCustomListBox.Create
git-svn-id: trunk@36768 -
2012-04-14 11:12:05 +00:00
blikblum
2f56ecf4aa lcl: remove Destroying and DestroyWnd calls from TCustomListBox.Destroy
git-svn-id: trunk@36767 -
2012-04-14 11:07:57 +00:00
blikblum
122f243704 lcl: revert 31890 #dd75c9b748 since issue #19882 is properly fixed now
git-svn-id: trunk@36759 -
2012-04-14 00:51:24 +00:00
blikblum
03e0cafaf9 lcl: remove TCustomListBox.Loaded. ItemIndex is initialized in InitializeWnd
git-svn-id: trunk@36756 -
2012-04-13 20:31:58 +00:00
paul
a17cb11168 lcl: reduce amount of hints and warnings
git-svn-id: trunk@36435 -
2012-03-30 01:27:25 +00:00
juha
9adcf1b232 LCL: Register some new Delphi properties to be skipped by form loader. Issue #20273
git-svn-id: trunk@34800 -
2012-01-19 18:26:48 +00:00
zeljko
c9e116762e LCL: TCustomListBox fixed drawing with non-default color and drawing of focus rect.Patch by Ask,modified by me. issue #20837
git-svn-id: trunk@34045 -
2011-12-08 15:18:44 +00:00
juha
ee1b95918a LCL: Fix an error in earlier commit (r31890) and solve issue #19979
git-svn-id: trunk@31986 -
2011-08-14 20:41:39 +00:00
maxim
58bf82aaf0 LCL: fixed TCustomListBox.RaiseIndexOutOfBounds not raising an exception due to missing "raise". Patch by cobines, bug #19921
git-svn-id: trunk@31907 -
2011-08-07 12:33:38 +00:00
juha
dd75c9b748 LCL: Trying to fix issue #19882: Invalid type cast error... Now there are AVs elsewhere
git-svn-id: trunk@31890 -
2011-08-06 12:48:49 +00:00
paul
8a3c07043c lcl: add TCustomListBox.AddItem() method
git-svn-id: trunk@30968 -
2011-05-30 06:31:01 +00:00
blikblum
c7df2d5f85 lcl: don't call EditingDone in every item selection of TListBox
git-svn-id: trunk@30409 -
2011-04-21 12:17:56 +00:00
paul
aecfd2f738 lcl: implement TListBox.ScrollWidth:
- win32, wince: set/get scrollwidth using LB_SETHORIZONTALEXTENT/LB_GETHORIZONTALEXTENT (issue #0018912)
  - qt, gtk2: don't show listbox horizontal scrollbar by default. show it only when scrollwidth > content area

git-svn-id: trunk@30138 -
2011-04-02 17:30:44 +00:00
paul
dfc3dc15df lcl, win32: move ListBox, CheckListBox styles into CreateParams of LCL classes
git-svn-id: trunk@29914 -
2011-03-19 16:40:11 +00:00
paul
03b8af4c0f lcl: add comment
git-svn-id: trunk@29230 -
2011-01-28 04:26:35 +00:00
paul
c5100d475a lcl: don't change TListBox.ItemIndex or set selection based on ItemIndex for MultiSelect listbox on window recreation (bug #0016862)
git-svn-id: trunk@29133 -
2011-01-20 06:45:17 +00:00
zeljko
3d4ae4e620 LCL: ask ws for itemindex.Fixes issue #17887
git-svn-id: trunk@28318 -
2010-11-18 17:02:45 +00:00
zeljko
aa4e3d6902 LCL: trigger OnSelectionChange() when TCustomListBox.SelectAll called. Fixes issue #17069
git-svn-id: trunk@28291 -
2010-11-17 09:30:07 +00:00
jesus
8f1ae24251 LCL, implements KeyValue for DbLookupComboBox and DbLookupListbox components, issue #16557
git-svn-id: trunk@28031 -
2010-11-02 00:50:53 +00:00
mattias
dc78f11aef fixed typo cant
git-svn-id: trunk@27305 -
2010-09-11 14:06:32 +00:00
blikblum
8242414ed3 lcl: don't set ListBox BorderStyle after handle creation since widgetset already does.
git-svn-id: trunk@25393 -
2010-05-14 03:51:18 +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
173c4aa8b4 LCL: fix owner draw of TListBox,TComboBox for BiDi, bug #16196
git-svn-id: trunk@25176 -
2010-05-04 10:13:22 +00:00
paul
89de20ed38 lcl: formatting + cleanup
git-svn-id: trunk@23702 -
2010-02-15 04:01:29 +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
93a355923e lcl: don't add lineending after the last line in TListBox.GetSelectedText (bug #0012839)
git-svn-id: trunk@18097 -
2009-01-04 09:33:40 +00:00
sekelsenmat
226434bc52 Moves freeing TStrings from standard controls to the widgetset. Necessary for widgets with a native TStrings.
git-svn-id: trunk@17787 -
2008-12-10 21:12:10 +00:00
paul
7fad68ae28 lcl: don't return incorrent ItemIndex (valid values are from -1 to Count - 1)
git-svn-id: trunk@17628 -
2008-11-29 10:41:48 +00:00
paul
a8e65749a5 lcl: fix TCustomListBox.GetItemHeight (#0012527, #0012441 by Zeljan)
git-svn-id: trunk@17163 -
2008-10-31 08:42:23 +00:00
paul
cd1987af7a lcl: TCustomList.ItemHeight must return correct value if our ListBox has non-variable item heights
git-svn-id: trunk@16978 -
2008-10-13 03:32:17 +00:00
paul
898d951e30 lcl: introduce TListBox.GetItemAtXY, TListBox.GetItemAtY exists for compatibility with existing projects
interfaces: replace TWSCustomListBox.GetIndexAtY by TWSCustomListBox.GetIndexAtXY
win32, wince, qt, carbon: use X coord too
(based on patch of Yuriy Yeroshkin, #0011923)

git-svn-id: trunk@16801 -
2008-09-30 02:15:17 +00:00
vincents
fa633cdfbc LCL: fixed setting TListBox.Items.Sorted for Listbox without handle, fixes #12216
git-svn-id: trunk@16688 -
2008-09-23 20:35:55 +00:00
paul
5f76c9b083 win32: TCustomListBox: don't recreateWnd if we are destroying handle
git-svn-id: trunk@16410 -
2008-09-04 12:15:08 +00:00
mattias
3083aece74 LCL: clean up
git-svn-id: trunk@16409 -
2008-09-04 11:21:48 +00:00
mattias
32e073f898 LCL: TListBox: fixed Sorted
git-svn-id: trunk@16406 -
2008-09-04 09:43:34 +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
d5d9f4c4d6 win32: update checklistbox itemheight in runtime on font change
git-svn-id: trunk@15433 -
2008-06-16 01:37:30 +00:00
vincents
baab4f3e05 LCL: implemented TCustomListBox.SelectAll (issue #1603)
git-svn-id: trunk@15266 -
2008-05-28 08:02:34 +00:00
vincents
005a406b7f LCL: ListBox.MakeCurrentVisible: don't move current item to the top, if it is already visible, related to bug #11274
git-svn-id: trunk@15080 -
2008-05-09 10:55:18 +00:00
paul
8e4a1950a9 more potential range check errors
git-svn-id: trunk@14253 -
2008-02-26 04:30:37 +00:00
paul
20dee3aee0 + TCustomListbox.ClearSelection
git-svn-id: trunk@13682 -
2008-01-09 10:11:37 +00:00
paul
33a107cabe dont start drag immediately for TListBox (this is Delphi compatible)
git-svn-id: trunk@13381 -
2007-12-19 04:02:20 +00:00
vincents
01a956df63 LCL: in case of index out of bounds error, the message shows the upperbound instead of the count of the list (bug #10367)
git-svn-id: trunk@13201 -
2007-12-07 13:00:20 +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
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
abe113718c - move TWidgetset.GetListBoxXXX to TWSCustomListBox.GetXXX (where XXX in [GetIndexAtY, GetItemRect]) *untested on Carbon and wince*
- implement GetIndexAtY and GetItemRect for TQtWsListBox

git-svn-id: trunk@11875 -
2007-08-28 17:44:28 +00:00
paul
d8ab3c6a9c (Qt):
- fix mem leak in TQtWidget.RawImage_CreateBitmaps
- implementation of OwnerDrawn listbox (through ItemDelegate)
- cleanup

git-svn-id: trunk@11872 -
2007-08-28 13:16:46 +00:00