Commit Graph

1762 Commits

Author SHA1 Message Date
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
112777a442 win32: create form and hint window classes with brush handle (for clDefault support)
git-svn-id: trunk@25425 -
2010-05-15 15:06:48 +00:00
paul
22ffafbcc9 win32: bring selected page to top on switching
git-svn-id: trunk@25420 -
2010-05-15 13:04:16 +00:00
paul
7faf34fbcc win32: use SetWindowPos instead of ShowWindow for page showing/hiding
git-svn-id: trunk@25418 -
2010-05-15 12:47:14 +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
martin
b5059ab9c6 LCL/Win32: Fixed Notebook.GetTabRect
git-svn-id: trunk@25336 -
2010-05-12 16:39:36 +00:00
paul
a240f72efb win32: redo TWin32WSCustomNotebook.SetPageIndex to support negative PageIndex
git-svn-id: trunk@25331 -
2010-05-12 08:32:42 +00:00
paul
e2bde5f2a6 win32: cleanup
git-svn-id: trunk@25325 -
2010-05-12 03:24:24 +00:00
paul
990ef2a038 win32: fix 64bit compilation (issue #0016449)
git-svn-id: trunk@25322 -
2010-05-12 00:56:10 +00:00
paul
f8cf173c87 win32: don't call ShowWindow in TWin32WSCustomForm.ShowModal since it is already called by ShowHide
git-svn-id: trunk@25296 -
2010-05-10 13:22:48 +00:00
paul
77895ca1a7 win32: move wm_getminmaxinfo to the form window proc
git-svn-id: trunk@25293 -
2010-05-10 10:19:31 +00:00
dmitry
a5fd959f77 win32: changed DrawGrid to use widgetset DCSetPixel, instead of Windows.SetPixel
git-svn-id: trunk@25291 -
2010-05-10 09:34:19 +00:00
paul
b1347c7a57 win32: call LM_SYSCOMMAND LCL handler before the OS handler (fixes bug #0016426)
git-svn-id: trunk@25289 -
2010-05-10 09:11:27 +00:00
paul
a1b553b7f1 win32: fix spinedit updown creation flags
git-svn-id: trunk@25281 -
2010-05-09 16:18:10 +00:00
paul
b69a9ba57d win32: restore occasionally disabled spinedit autosize
git-svn-id: trunk@25280 -
2010-05-09 16:08:05 +00:00
dmitry
521f4bf383 win32: vista setpixel bug fixing #15822, modified patch by zg
git-svn-id: trunk@25277 -
2010-05-09 15:10:18 +00:00
paul
256161bfc7 lcl: add LPtoDP - symmetrical to DPtoLP winapi compatibility method
win32: implement LPtoDP, DPtoLP
qt: implement LPtoDP

git-svn-id: trunk@25236 -
2010-05-07 07:08:43 +00:00
paul
19470fe5a8 win32: don't extract and parse windowinfo from menu (bug #0011087)
git-svn-id: trunk@25233 -
2010-05-07 03:40:45 +00:00
paul
365cf5ddde win32: fix record initialization in TWin32WidgetSet.GetWindowSize
git-svn-id: trunk@25232 -
2010-05-07 03:03:48 +00:00
paul
a74fe9bc84 win32: fix typo in spinedit createhandle for non-unicode version
git-svn-id: trunk@25231 -
2010-05-07 02:55:36 +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
8e045a3736 win32: redo SpinEdit control:
- don't use CreateUpDownControl since it is deprecated for win32 (was made for 16bit win 3.1)
  - return Edit window handle as handle instead of UpDown

git-svn-id: trunk@25229 -
2010-05-07 02:47:44 +00:00
paul
aa3c62a413 win32: debugging
git-svn-id: trunk@25225 -
2010-05-06 02:20:23 +00:00
paul
6d94a2f0b5 win32: optimize buddy window retrieval
git-svn-id: trunk@25215 -
2010-05-05 12:48:46 +00:00
sekelsenmat
e0fd273216 Further progress attempting to fix wince issues
git-svn-id: trunk@25201 -
2010-05-05 06:27:16 +00:00
paul
b1e9437ade win32: cleanup + formatting
git-svn-id: trunk@25200 -
2010-05-05 03:14:36 +00:00
paul
d4d220476d win32: change var to out argument modifier for PrepareCreateWindow
git-svn-id: trunk@25160 -
2010-05-04 03:31:30 +00:00
paul
c83026097e win32: initialize LMNotify result with 0 (fixes bug #0013932)
git-svn-id: trunk@25158 -
2010-05-04 01:56:47 +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
0cc6be3008 lcl: correctly fill TCreateParams structure in CreateParams method
win32: use CreateParams styles, exstyle, parent, caption and geometry instead of own calculated (issue #0014288)

git-svn-id: trunk@25149 -
2010-05-03 09:39:52 +00:00
paul
6cbcdb2b75 win32: fix modal form showing when stay on top forms are visible (bug #0015636)
git-svn-id: trunk@25138 -
2010-05-02 16:59:54 +00:00
paul
db1ba90fac formatting
git-svn-id: trunk@25137 -
2010-05-02 16:50:58 +00:00
paul
9e2134c1a2 lcl: use GetSysColorBrush if solid brush needs to be created with system color
win32: call Windows.GetSysColorBrush for lclintf.GetSysColorBrush

git-svn-id: trunk@25128 -
2010-05-02 09:25:41 +00:00
paul
37bdc6873b lcl: formatting
git-svn-id: trunk@25125 -
2010-05-02 07:00:16 +00:00
paul
fa0ab5a8ad lcl: allow to request true column width during listview destruction (based on patch of José Mejuto)
win32: use stored width while setting column width in interface
gtk2: use true column width, not the requested one
fixes issue #0014371

git-svn-id: trunk@25124 -
2010-05-02 06:45:23 +00:00
paul
0b8c73b16e win32: allow interception of LM_SYSCOMMAND (issue #0013442)
git-svn-id: trunk@25123 -
2010-05-02 06:16:38 +00:00
paul
340c30848d win32: invalidate pagecontrol client rectangle after the page removing (fixes issue #0014625)
git-svn-id: trunk@25122 -
2010-05-02 04:22:33 +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
e42bebb3a1 win32: fix trayicon code:
- don't assume that application have only 1 trayicon => don't use 1 global variable for trayicon
  - don't assume that trayicon message handler return correct mouse position in LParam => use TMouse.CursorPos while sending messages to LCL
  - add trayicon again to the taskbar when taskbar is recreated (based on msdn explanation and example)

git-svn-id: trunk@25093 -
2010-05-01 11:25:45 +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
676c706e5c lcl, win32: implement loading icon,cursor from an icon handle (HICON) (GetInfoInfo needs to be implement for other widgetsets to support on other platforms), issue #0016356
git-svn-id: trunk@25024 -
2010-04-28 08:52:16 +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
68570673c2 win32: split common ShowHide method into different ws classes
git-svn-id: trunk@25009 -
2010-04-27 15:17:09 +00:00
paul
e9e35dd3d2 win32: send wm_size if clientrect changes on DoSetBounds
git-svn-id: trunk@25008 -
2010-04-27 14:30:32 +00:00
paul
8118963651 win32: remove flickering from checklistbox
git-svn-id: trunk@24988 -
2010-04-27 01:40:34 +00:00
paul
a3f7991e43 win32: let windows handle paint messages for checklistbox (a trial to reduce flickering)
git-svn-id: trunk@24987 -
2010-04-27 00:40:39 +00:00
paul
44427e31a1 win32: use SetWindowPos to set position, size and visibility of the windows - this allows to reliable receive wm_windowposchanged message
git-svn-id: trunk@24960 -
2010-04-26 09:52:47 +00:00
paul
6469d26fdd win32: Move WndText, WndClassName to win32proc to use for debugging in more units
git-svn-id: trunk@24959 -
2010-04-26 09:51:40 +00:00
paul
fd1e6e7681 win32: fix showing of listview subitems images
git-svn-id: trunk@24954 -
2010-04-26 08:12:58 +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
4cf5a87f9d win32: simplify checklistbox paint handler
git-svn-id: trunk@24943 -
2010-04-26 02:16:29 +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
ca09af423f win32: use default thememanager drawing for treeitem text if os < vista
git-svn-id: trunk@24884 -
2010-04-24 16:35:34 +00:00
paul
0672755b94 win32: use default theme manager for treeview parts drawing if OS < Vista
git-svn-id: trunk@24847 -
2010-04-23 07:56:18 +00:00
paul
4a4cdb8ee5 lcl: add treeview hot glyph drawing support to the theme services
git-svn-id: trunk@24813 -
2010-04-22 07:29:26 +00:00
paul
ffee9b5bd4 win32: don't reset autosized width of listview column
git-svn-id: trunk@24774 -
2010-04-21 01:28:42 +00:00
mattias
5ee092816e win32 intf: TWin32WSCustomForm.SetShowInTaskbar check if something changes
git-svn-id: trunk@24751 -
2010-04-20 18:27:26 +00:00
paul
229564f15d lcl: add TTrackBar.SelStart, TTrackBar.SelEnd, TTrackBar.ShowSelRange based on patch of Justin Smyth (issue #0016299)
git-svn-id: trunk@24728 -
2010-04-20 04:39:09 +00:00
paul
fe58688a50 win32: don't use LCLIntf ShowWindow in win32 interface
git-svn-id: trunk@24712 -
2010-04-19 07:56:48 +00:00
paul
d8edee2e5e win32: don't remove WS_VISIBLE flag from TCustomPage window - it is not passed there by default anyway
git-svn-id: trunk@24710 -
2010-04-19 03:22:11 +00:00
paul
7068d507da win32: don't explicitly set WS_VISIBLE WS_CHILD for calendar since PrepareCreateWindow do this
git-svn-id: trunk@24709 -
2010-04-19 03:17:58 +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
9a6460190f win32: use WS_VISIBLE only when it is required by CreateParams
git-svn-id: trunk@24531 -
2010-04-09 01:09:56 +00:00
zeljko
f8cb0875ea win32: added IsWindow()
git-svn-id: trunk@24284 -
2010-03-29 12:45:42 +00:00
paul
db2312a9d8 win32: revert r24144 #7174f32749
git-svn-id: trunk@24206 -
2010-03-25 07:20:24 +00:00
paul
7174f32749 win32: don't block win32 messages in the default handler - let's pass them to windows
git-svn-id: trunk@24144 -
2010-03-21 14:21:04 +00:00
paul
d96d0481d2 win32: clear all LMessages fields at the beginning of the message window proc to prevent passing wrong LParam and WParam to LCL, fill WParam and LParam in case of LM_ACTIVATE, LM_DEACTIVATE since they store new ActiveWindow and other useful data
git-svn-id: trunk@24142 -
2010-03-21 13:48:10 +00:00
paul
458567979d lcl: add delphi compatible GetWindowOrgEx declaration
git-svn-id: trunk@24139 -
2010-03-21 13:08:52 +00:00
paul
99dce14266 win32: open picture dialog: workaround lcl bug with autosizing which prevent controls to apply their bounds if parent = nil and parentwnd = 0
git-svn-id: trunk@24021 -
2010-03-16 03:32:05 +00:00
paul
eef0d16e78 lcl: fix LM_CONTEXTMENU handling - use another message structure (windows compatible). also hopefully fixes 64bit compilation (issue #0016000)
git-svn-id: trunk@24011 -
2010-03-15 14:23:02 +00:00
paul
dcb25bd1e6 win32: fix drawing of 3D and Flat menu bars: choose right colors, draw edges for 3d (issue #0015723)
git-svn-id: trunk@24009 -
2010-03-15 09:58:13 +00:00
paul
1613c3ab5f win32: fix scrollbar regression (issue #0015717)
git-svn-id: trunk@23912 -
2010-03-10 08:40:34 +00:00
paul
a77478ebb9 win32: apply Dmitry patch with modifications for fixing application focus - move focus to last focused window on getting focus event (issue #0015494)
git-svn-id: trunk@23911 -
2010-03-10 08:22:45 +00:00
vincents
86d076e59b win32 and wince interface: fixed range check error, array of const parameters don't accept unsigned 32 bits integers (issue #15815)
git-svn-id: trunk@23890 -
2010-03-09 15:30:05 +00:00
paul
d6ffb794fb lcl: further work on TWinControl.ParentWindow:
- implement LCLIntf.SetParent for win32, wince and qt
  - implement TWinControl.SetParentWindow

git-svn-id: trunk@23846 -
2010-03-06 19:40:29 +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
1f6c52fe1a lcl, win32: start implementation of TCustomForm.PopupMode, TCustomForm.PopupParent
git-svn-id: trunk@23723 -
2010-02-17 06:04:19 +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
dmitry
f091ac2f5d fix for 15704
git-svn-id: trunk@23662 -
2010-02-08 05:45:00 +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
paul
5b8c070f51 win32: remove unused units
git-svn-id: trunk@23636 -
2010-02-05 07:53:33 +00:00
paul
3299c6aa4c win32: move TrackBar code to own window message handlers
git-svn-id: trunk@23635 -
2010-02-05 07:49:42 +00:00
paul
45f1d382dd win32: move ListView code from the generic message handler to ListView message handler
git-svn-id: trunk@23634 -
2010-02-05 03:07:57 +00:00
paul
9b24fc25c2 win32: don't perform check 'is TCustomCalendar' in widgetset code
git-svn-id: trunk@23629 -
2010-02-04 04:27:43 +00:00
paul
88d281329b lcl: remove TWidgetset.DrawArrow which got a TArrow control and TCanvas as arguments, move some implementations to TWSArrow classes
git-svn-id: trunk@23626 -
2010-02-04 04:06:00 +00:00
paul
9adc8929ff win32: move TCheckListBox code from the generic handlers to checklistbox handlers
git-svn-id: trunk@23625 -
2010-02-04 03:23:45 +00:00
paul
9d6fb42169 win32: don't perform 'is TCustomFloatSpinEdit' comparisons in code. Therefore empty application does not contains spinedit code anymore (and executable is 12Kb smaller)
git-svn-id: trunk@23624 -
2010-02-04 03:09:32 +00:00
paul
46bb53cc00 win32: remove HandleSpinEditDeltaPos from generic WindowProc to default window proc of spinedit
git-svn-id: trunk@23623 -
2010-02-04 01:56:39 +00:00
paul
072f7f8c22 win32: move spinedit change code to spinedit widgetset class default handler
git-svn-id: trunk@23621 -
2010-02-03 23:51:10 +00:00
paul
83ea351c48 win32: move few spinedit handlers from generic windowproc to spinedit windowproc
git-svn-id: trunk@23616 -
2010-02-03 10:34:48 +00:00
paul
a2d258006a win32: don't send WM_NCLBUTTONDOWN to LCL
git-svn-id: trunk@23614 -
2010-02-03 09:17:54 +00:00
paul
19471a58d8 win32: adjust size of pages after assigning an imagelist to a pagecontrol (bug #0015516)
git-svn-id: trunk@23602 -
2010-01-30 16:16:05 +00:00
paul
db416e28ac win32: pass better messages to NotifyApplicationUserInput for WM_NCMOUSE...
git-svn-id: trunk@23589 -
2010-01-29 09:11:25 +00:00