blikblum
5f0b15ad52
win32: dont update index for ReadOnly in TWin32WSCustomComboBox.SetText. It's not necessary because index, so the Text, is updated in LCL. The previous implementation was also wrong since could select wrong item, e.g., setting text to 'a' in a combo that has items 'abc', 'a' was selecting 'abc'
...
git-svn-id: trunk@34120 -
2011-12-11 23:11:29 +00:00
juha
69a63a5af6
LCL: set Windows listbox itemindex to -1 if nothing is selected. Issue #19893
...
git-svn-id: trunk@31884 -
2011-08-06 10:00:58 +00:00
paul
fb02700240
win32: don't call LB_GETITEMRECT during ListBox initialization (fixes issue #0019191 )
...
git-svn-id: trunk@30377 -
2011-04-19 06:09:26 +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
e191075b61
win32: remove WindowInfo^.needParentPaint set in CreateHandle of ListBox and CheckListBox - they are set during WM_NCCREATE
...
git-svn-id: trunk@30091 -
2011-03-31 00:56:20 +00:00
paul
4aefc884a2
win32: change handling of WM_MEASUREITEM:
...
- look at CtlType before searching for menu,
- move ListBox, Combobox WM_MEASUREITEM to their window procedures
- subclass ListBox, CheckListBox to set control ID on window creation
- set control ID in FinishCreateWindow by SetWindowLong call (I previously removed it from CreateWindow call)
git-svn-id: trunk@30075 -
2011-03-30 01:38:00 +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
5a667e33d6
win32: don't perform flickering optimization for TCheckListBox with Columns > 1 (bug #0018204 )
...
git-svn-id: trunk@29911 -
2011-03-19 16:22:06 +00:00
paul
7214b124da
win32:
...
- update combobox interface constraints on WM_SIZE message,
- fix combobox window proc - it had double processing for some messages
- don't use FItemHeight, FEditHeight stored on initialization - they can be not valid if something has changed (like font, theme, metrics)
git-svn-id: trunk@29880 -
2011-03-17 06:19:18 +00:00
juha
0b006a506b
LCL: Fixed Windows compilation of Setcortcut definition
...
git-svn-id: trunk@29875 -
2011-03-16 19:16:55 +00:00
juha
5d796b9cbb
LCL: Remove OldShortCut from SetShortCut parameters and add the real shortcut keys there.
...
git-svn-id: trunk@29872 -
2011-03-16 16:53:36 +00:00
paul
914f7c1903
win32: fix a regression which make TStaticText draw only using default text color if Transparent = True (bug #0018289 )
...
git-svn-id: trunk@29864 -
2011-03-16 03:39:17 +00:00
juha
4e95f6a390
LCL: Show menu shortcuts also when they are sequencial keys combinations (like Ctrl+Q, B)
...
git-svn-id: trunk@29853 -
2011-03-15 14:05:55 +00:00
paul
dd4583c8bf
win32: check win32 code for correctness after Assert->DebugLn replacement, fix ObjectToHWND, remove TraceEvent, remove all commented DebugLn
...
git-svn-id: trunk@29828 -
2011-03-14 02:32:50 +00:00
juha
01db3bb47c
LCL (mostly), Replace Assert(False... with //DebugLn(... Now Assert can be used for its original purpose again.
...
git-svn-id: trunk@29820 -
2011-03-13 18:21:51 +00:00
vincents
629b64d29f
win32 interface: allow TTogleButton to be multiline (issue #17301 )
...
git-svn-id: trunk@28829 -
2010-12-28 14:11:09 +00:00
paul
24bf045db8
win32: draw static border if border style is sunken or themes are not enabled (part 2 of bug #0016764 )
...
git-svn-id: trunk@28825 -
2010-12-27 07:45:00 +00:00
paul
1e7ca80be4
win32: fix 2 typos
...
git-svn-id: trunk@28152 -
2010-11-08 10:23:29 +00:00
paul
f09ed2fb3c
lcl: add TStaticText.Transparent property for Delphi compatibility
...
win32: implement TStaticText.Transparent same way as groupbox transparency
git-svn-id: trunk@28151 -
2010-11-08 09:07:40 +00:00
paul
cd70f00a57
win32: make TGroupBox transparent when its color = parent color
...
git-svn-id: trunk@28148 -
2010-11-08 07:24:09 +00:00
paul
867da8c06b
win32: fix combobox painting (issue #0017665 )
...
git-svn-id: trunk@27845 -
2010-10-25 02:30:01 +00:00
blikblum
0d632cce9c
win32: use a hardcoded flag to avoid sending LM_CHANGED msg to LCL when handling BM_SETCHECK (TCustomCheckBox), fixes #17425
...
git-svn-id: trunk@27386 -
2010-09-16 14:08:01 +00:00
blikblum
8d7d250608
win32: avoid sending LM_CHANGE message when clearing TRadioButton siblings and when setting TRadioButton checked property programatically. Send LM_CHANGE when TRadioButton is unchecked. Don't toggle TRadioButton state when it's already checked. Part of 0017139 and 0017104
...
git-svn-id: trunk@27050 -
2010-08-10 16:52:13 +00:00
paul
321a2f3d30
lcl, win32, wince: use system cut, copy, paste operations for TEdit control and descendants
...
git-svn-id: trunk@26480 -
2010-07-06 11:43:02 +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
ce91a6a9f0
lcl,win32,wince: move edit control flags to createparams
...
git-svn-id: trunk@25476 -
2010-05-17 07:34:07 +00:00
paul
b44f635f4a
win32: remove isGroupBox flag
...
git-svn-id: trunk@25474 -
2010-05-17 01:57:14 +00:00
paul
7686d846ed
lcl, win32, wince: move button controls flags into CreateParams methods
...
git-svn-id: trunk@25473 -
2010-05-17 01:10:18 +00:00
paul
04fbaa3b72
win32: use custom window proc for button to fix glow on vista/w7 when it has focus
...
git-svn-id: trunk@25472 -
2010-05-17 00:15:55 +00:00
paul
bc8f5f3d69
lcl: map LM_PAINT to WM_PAINT message number, don't perform any special handling if control has no doublebuffering and Message.DC = 0
...
win32: don't use doublebuffing and other hacks for TBitBtn wm_paint handler - pass the message to LCL as is (windows 7 glue is not visible on focused bit buttons, to be done for regular buttons too)
git-svn-id: trunk@25400 -
2010-05-14 09:55:36 +00:00
paul
8b1b85e16d
lcl: move button flags to TCustomButton.CreateParams
...
git-svn-id: trunk@25398 -
2010-05-14 09:16:51 +00:00
paul
3feefa999d
win32: remove unused code
...
git-svn-id: trunk@25395 -
2010-05-14 08:39:34 +00:00
blikblum
95c213a0ee
lcl/win32: move BorderStyle params setting from widgetset (win32) to LCL (TWinControl.CreateParams).
...
git-svn-id: trunk@25389 -
2010-05-14 02:34:25 +00:00
martin
f33862d0fc
Interface,win32: fix HideSelection for memo
...
git-svn-id: trunk@25365 -
2010-05-13 14:35:35 +00:00
paul
2138813221
win32: don't explicitly set WS_EX_CLIPCHILDREN since it is set by CreateParams method
...
git-svn-id: trunk@25230 -
2010-05-07 02:48:16 +00:00
paul
a943bcacd5
win32: don't pass WM_PAINT and friends of TScrollBar to the WindowProc - scrollbar does not require paint handler running and using own handler conflicts with windows vista fading (issue #0013161 )
...
git-svn-id: trunk@25157 -
2010-05-04 01:12:50 +00:00
paul
908323d504
win32: cleanup
...
git-svn-id: trunk@25152 -
2010-05-03 09:56:47 +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
6e25284b27
win32: move wm_enable groupbox handling to groupbox message handler
...
git-svn-id: trunk@25053 -
2010-04-29 01:46:04 +00:00
paul
8ef1c9a937
win32: remove groupbox createhandle hack (issue #0016360 , issue #0015085 )
...
git-svn-id: trunk@25052 -
2010-04-29 01:26:13 +00:00
paul
68e504e4e8
win32: invalidate window on WM_UPDATEUISTATE to fix occasional control disappearing, move some groupbox only code to groupbox message handler
...
git-svn-id: trunk@25022 -
2010-04-28 08:10:10 +00:00
paul
6c88ec356b
win32: remove dummy invalidate client rect cache - it is done on LCL level too
...
git-svn-id: trunk@24953 -
2010-04-26 07:57:56 +00:00
paul
e4743af864
win32: remove groupbox wm_erasebackground workaround - this reduces flicking
...
git-svn-id: trunk@24942 -
2010-04-26 01:55:11 +00:00
paul
f95b2f63d5
win32:
...
- redo FinishCreateWindow to allow window subclassing,
- subclass combobox to get access to the first messages that control receives
ideintf: remove workaround with ValueComboBox handle check in MeasureItem
git-svn-id: trunk@24686 -
2010-04-17 19:53:55 +00:00
paul
a20e1dcaac
lcl: change use of CreateParams:
...
- move TForm.PopupParent handling to CreateParams (it only chooses a right Parent handle)
- check also ParentWindow property when setting WndParent in CreateParams
win32: use TCreateParams WndParent property for CreateWindow
git-svn-id: trunk@23840 -
2010-03-05 08:14:49 +00:00
paul
99a7c6eca0
win32: scroll listbox items when ItemIndex is set in multiselect mode
...
git-svn-id: trunk@23703 -
2010-02-15 04:02:06 +00:00
paul
3d4f978f63
win32: move statictext message handling to statictext window proc
...
git-svn-id: trunk@23639 -
2010-02-05 09:31:44 +00:00
luiz
ab2a0ee728
lcl/win32: move the TEdit.MaxLength check from lcl to win32 intf. Gtk2 and Qt has built in check and truncates text automatically
...
git-svn-id: trunk@23243 -
2009-12-23 16:03:12 +00:00
paul
964dd239b9
lcl: add TCustomEdit.HideSelection, publish it for TEdit, TMemo (requested by Marco van de Voort)
...
git-svn-id: trunk@22729 -
2009-11-24 03:29:11 +00:00
paul
616c9d4e4d
lcl: docking: replace
...
DefaultDockTreeClass: TDockTreeClass by
DefaultDockManagerClass: TDockManagerClass
as requested by DoDi
git-svn-id: trunk@22395 -
2009-11-03 03:20:26 +00:00