Commit Graph

170 Commits

Author SHA1 Message Date
michl
72252baee8 LCL: Win32: Fixed TComboBox tab key isn't working with style csSimple. Issue #32559
git-svn-id: trunk@56086 -
2017-10-16 20:56:13 +00:00
juha
475249d4fa LCL: Handle TComboBox.ItemHeight with new csOwnerDrawEditableXXX styles. Issue #32276, patch from Andrey Zubarev.
git-svn-id: trunk@55707 -
2017-08-19 22:47:32 +00:00
ondrej
d1886ddb8d LCL: combobox: sanity check for ItemIndex
git-svn-id: trunk@55598 -
2017-07-27 19:25:38 +00:00
ondrej
0cd8ed04e5 LCL: combobox, listbox: fix drawing of customdrawn items. Change TOwnerDrawStateType.odPainted to odBackgroundPainted
git-svn-id: trunk@55304 -
2017-06-10 11:43:19 +00:00
ondrej
c68b93c58e lcl: combo box: add new styles csOwnerDrawEditableFixed and csOwnerDrawEditableVariable as replacement for the old ReadOnly property
git-svn-id: trunk@55245 -
2017-06-05 19:27:43 +00:00
ondrej
2276076e95 LCL: combo box: fix typo
git-svn-id: trunk@55244 -
2017-06-05 19:09:38 +00:00
ondrej
9a9e336851 LCL: combo box: deprecate ReadOnly property
git-svn-id: trunk@55243 -
2017-06-05 19:07:31 +00:00
ondrej
3f56e69dc6 lcl: combobox, listbox: assign Font.PixelsPerInch to Canvas for custom draw events.
git-svn-id: trunk@54914 -
2017-05-14 08:43:35 +00:00
ondrej
fb53b10290 LCL: combo box: High-DPI. Issue #31504
git-svn-id: trunk@54369 -
2017-03-08 15:54:45 +00:00
ondrej
ede622b2a3 LCL: TComboBox: keep Items sorted on handle destroy. Issue #31303
git-svn-id: trunk@54090 -
2017-02-04 20:10:08 +00:00
michl
2f58813eed LCL: TComboBox: Make keys Delphi compatible with AutoDropDown = True. Issue #31331
git-svn-id: trunk@54056 -
2017-02-01 19:16:06 +00:00
michl
f09fd93cc5 LCL: TComboBox: Fixed closing app with <Alt> + <F4> when AutoDropDown = True, make it Delphi compatible. Issue #31247
git-svn-id: trunk@54055 -
2017-02-01 14:15:37 +00:00
michl
27e3118627 LCL: TComboBox: prevent hiding dropdown window, like Delphi. Issue #31247
git-svn-id: trunk@54053 -
2017-02-01 11:08:53 +00:00
michl
7650468f69 LCL: TComboBox: make tabbing Delphi compatible. Issue #31247
git-svn-id: trunk@54045 -
2017-01-31 20:17:42 +00:00
juha
b2658d37bc LCL: Temporary fix for focus jumping on Arrow keys between controls. Will be moved to WS code. Issue #22191, patch from AlexeyT.
git-svn-id: trunk@53933 -
2017-01-12 15:44:56 +00:00
juha
80328f4ead LCL: Set TComboBox ItemIndex with duplicate text elements correctly. Issue #28683, patch from AlexeyT.
git-svn-id: trunk@53676 -
2016-12-14 11:14:28 +00:00
ondrej
58c2446357 lcl: highDPI: handle right and bottom anchored controls in AutoAdjustLayout.
git-svn-id: trunk@53555 -
2016-12-03 23:07:10 +00:00
ondrej
adf87c511a lcl: merge ShouldAutoAdjust* into one method. Fix Width and Height adjustment in relation to Align.
git-svn-id: trunk@53538 -
2016-12-03 06:52:15 +00:00
juha
ea8843fd24 LCL: Ignore AutoSize in ShouldAutoAdjustWidthAndHeight for TEdit and TCombobox. Helps with DPI issues. Issue #30995, patch from AlexeyT.
git-svn-id: trunk@53486 -
2016-11-30 15:07:13 +00:00
ondrej
9effa4e621 lcl: win32: ComboBox ItemWidth support. Issue #29149, patch by Simon Ameis/Janusz Tomczak
git-svn-id: trunk@51094 -
2015-12-31 10:06:02 +00:00
juha
5747ff089c LCL: Get ComboBox.ItemIndex from Widgetset also when csDestroying. Needed by TIniPropStorage. Issue #28514, patch from Luca Olivetti.
git-svn-id: trunk@49674 -
2015-08-15 21:40:06 +00:00
jesus
9c2b7067ce LCL, trigger OnSelect when autocomplete changed the current item, fix DbGrid updating values on pressing Up/Down (or ENTER on last column) when AutoComplete is enabled in picklist editor, reported by McClane
git-svn-id: trunk@47185 -
2014-12-12 21:46:45 +00:00
bart
5f894bec77 TComboBox: prevent execution of DefaultAction on parentform (e.g. Button with Default/Cancel := True) when pressing Enter/Cancel when DroppedDown (Issue #0024819).
git-svn-id: trunk@46762 -
2014-11-05 18:22:41 +00:00
bart
9cace444de TCustomComboBox: remove redundant KeyPress method. All this is already done in Utf8KeyPress.
git-svn-id: trunk@44886 -
2014-05-02 12:58:31 +00:00
bart
9cc96a93a2 TCustomComboBox: call inherited (Utf8)KeyPress before changing the case (when CharCase <> ecNormal)
git-svn-id: trunk@44866 -
2014-05-01 12:09:26 +00:00
zeljko
9936c8d776 LCL: TCustomComboBox: fixed AddHistoryItem and case sensitivity.patch by Vojtech Cihak.issue #26020
git-svn-id: trunk@44726 -
2014-04-14 16:40:02 +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
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
blikblum
7b40b6ff7e lcl: always close/prevent dropdown when pressing Return, ESC or TAB. Code cleanup
git-svn-id: trunk@34373 -
2011-12-23 14:19:28 +00:00
juha
bf07765fd5 LCL: In TComboBox, after pressing Enter call EditingDone. Issue #20782
git-svn-id: trunk@33889 -
2011-12-01 15:04:28 +00:00
mattias
c78feb9f4b LCL: clean up
git-svn-id: trunk@32469 -
2011-09-23 09:59:08 +00:00
paul
b50386a94e lcl: set combobox DropDownCount on handle initialization (bug #0018933)
git-svn-id: trunk@29877 -
2011-03-17 01:59:44 +00:00
blikblum
69b2b72516 lcl: move RegisterPropertyToSkip calls to Register* procedures or unit initialization so it's called only once and not on every component created
git-svn-id: trunk@27070 -
2010-08-12 12:24:11 +00:00
paul
9094e47382 lcl: move combobox style from win32 to LCL createparams, override unsupported styles in wince
git-svn-id: trunk@25793 -
2010-05-31 06:22:37 +00:00
paul
946321d393 lcl: formatting
git-svn-id: trunk@25792 -
2010-05-31 06:00:53 +00:00
paul
29e6bbae92 lcl: fix combobox lm_measureitem message recursion on windows me
git-svn-id: trunk@25206 -
2010-05-05 08:37:21 +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
f82013575c lcl: redo fixing issue #0016354, don't set ItemIndex = -1 after loading
git-svn-id: trunk@25095 -
2010-05-01 11:51:32 +00:00
paul
4f31973425 lcl, gtk2: don't force combobox to have 0 ItemIndex - it needs to be -1 if not really assigned (issue #0016354)
git-svn-id: trunk@25060 -
2010-04-29 03:13:10 +00:00
paul
2dfb22d93e lcl: apply patch of Juha Manninen which registers more VCL compatibility properties which LCL should skip while reading
git-svn-id: trunk@24327 -
2010-04-01 00:49:45 +00:00
paul
b89b28de7c lcl: remove lclintf ComboBoxDropDown, create 2 methods instead in TWSCustomCombobox: one to get DroppedDown status, another to set it. + implementation for all widgetsets except carbon
git-svn-id: trunk@22285 -
2009-10-26 10:21:56 +00:00
paul
38826ee313 lcl: set AutoSelect to true by default for TEdit, TCombobox and descendants, disable AutoSelect for TCustomMemo
git-svn-id: trunk@21831 -
2009-09-23 10:19:12 +00:00
paul
f8c5dc7b12 lcl: set some defaults for TCombobox properties (by Alexander S. Klenin, issue #0013772)
git-svn-id: trunk@20103 -
2009-05-21 12:20:11 +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
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
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
25e9426c10 lcl: MaxLength redo:
- MaxLength = 0 => no limit, MaxLength > 0 => limit. Default = 0 for memo, combo and edit
  - fix gtk, gtk2 code where MaxLength = -1 was used for unlimited length in Memo (why? combo and edit used 0)
  - fix qt combobox SetLength (was occasional forgotten?)
  - cleanup

git-svn-id: trunk@17365 -
2008-11-13 06:42:37 +00:00