Commit Graph

333 Commits

Author SHA1 Message Date
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
365cf5ddde win32: fix record initialization in TWin32WidgetSet.GetWindowSize
git-svn-id: trunk@25232 -
2010-05-07 03:03:48 +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
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
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
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
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
3299c6aa4c win32: move TrackBar code to own window message handlers
git-svn-id: trunk@23635 -
2010-02-05 07:49:42 +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
marc
eae138c2f6 * winapi: added GetDoubleClickTime, RedrawWindow, SubtractRect as part of lclextentions integration
git-svn-id: trunk@23550 -
2010-01-24 18:06:08 +00:00
paul
9430f5e3e6 win32: cleanup win32extra
git-svn-id: trunk@23393 -
2010-01-06 17:26:04 +00:00
paul
216da02c61 lcl: remove ver2_0 workarounds
git-svn-id: trunk@23392 -
2010-01-06 17:05:28 +00:00
paul
b09f9f224a win32: don't perform any logic in DrawFrameControl - just call the windows function. By Luiz Americo (issue #0015358)
git-svn-id: trunk@23230 -
2009-12-22 07:03:31 +00:00
paul
d17bb54ae0 win32: allow system colors for FloodFill by Luiz (issue #0015345)
git-svn-id: trunk@23145 -
2009-12-15 03:59:26 +00:00
paul
45e870d575 win32, gtk, qt: implement viewport affine transformation functions by tk (issue #0014857)
git-svn-id: trunk@23137 -
2009-12-14 05:59:52 +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
c4c2cdc5cd lcl: formatting
git-svn-id: trunk@21926 -
2009-09-30 07:47:53 +00:00
paul
0ef68ba7f4 win32: fix few issues with right-to-left popup menu drawing (bug #0014686)
git-svn-id: trunk@21911 -
2009-09-29 08:28:16 +00:00
paul
00ec699a6e lcl: rename AttachMenuToWindow to SetMenu for winapi compatibility
git-svn-id: trunk@21868 -
2009-09-25 16:09:33 +00:00
paul
048789bd19 win32: move GetDesignerDC, ReleaseDesignerDC to the appropriate files, implement IsDesignerDC
git-svn-id: trunk@21835 -
2009-09-23 12:00:42 +00:00
paul
e85ba5aa58 win32: return normal position of minimized windows for LM_MOVE and in GetRelativePosition
git-svn-id: trunk@21744 -
2009-09-17 08:08:36 +00:00
paul
72b7bf8ca6 lcl: add IsIconic, IsZommed win32 compatibility functions
git-svn-id: trunk@21711 -
2009-09-15 09:34:41 +00:00
paul
1417561829 win32: better detect top level window in TWin32WidgetSet.GetWindowSize (fixes bug #0013921)
git-svn-id: trunk@21648 -
2009-09-11 09:04:01 +00:00
paul
4ccfccdb9b win32: TWin32WidgetSet.GetWindowSize - don't return negative size for minimized windows
git-svn-id: trunk@20883 -
2009-07-18 04:14:36 +00:00
martin
9d66dc7a98 LCL: 2 missing typecast / rangecheck
git-svn-id: trunk@20843 -
2009-07-12 19:45:02 +00:00
paul
8b71b8f590 win32: use GetWindowInfo in GetWindowSize if possible
git-svn-id: trunk@20839 -
2009-07-12 04:59:04 +00:00
paul
87a2fea05c win32: rename TWindowInfo -> TWin32WindowInfo, GetWindowInfo -> GetWin32WindowInfo, etc because of conflict with winapi functions and structures
git-svn-id: trunk@20836 -
2009-07-12 04:27:59 +00:00
paul
319321c0d4 win32: remove debug writeln
git-svn-id: trunk@20835 -
2009-07-12 02:18:18 +00:00
paul
5f2c2bce3a win32: revert r20833 #b8419ee7b1 since it does not count menu and scrollbar sizes
git-svn-id: trunk@20834 -
2009-07-11 17:16:10 +00:00
paul
b8419ee7b1 win32: change GetWindowSize to return ClientRect instead of own calculations for the top level windows as suggested by Martin
git-svn-id: trunk@20833 -
2009-07-11 16:13:42 +00:00
paul
f112be2363 win32: fix aero snap problems (issue #0013921)
git-svn-id: trunk@20522 -
2009-06-08 15:22:03 +00:00
paul
822a2b7210 win32: improve checklistbox drawing
- draw focus rectangle
  - draw better looking check mark
  - don't fill the space between the "check" and "text" parts

git-svn-id: trunk@20417 -
2009-06-05 01:55:34 +00:00
paul
385d9cdf40 win32: implement winapi GradientFill function (strange that it is implemented for gtk only)
git-svn-id: trunk@20037 -
2009-05-19 04:36:37 +00:00
paul
ae839602c2 lcl: formatting
git-svn-id: trunk@19937 -
2009-05-12 05:59:22 +00:00
paul
08fcb6a2b1 win32: fix typo
git-svn-id: trunk@19746 -
2009-05-01 17:52:00 +00:00
paul
752897afdc lcl: further monitor support
- add TScreen.MonitorFromPoint, TScreen.MonitorFromRect, TScreen.MonitorFromWindow
  - add TForm.Monitor
win32: add support for new TScreen methods

git-svn-id: trunk@19264 -
2009-04-07 05:29:35 +00:00
paul
e2075dffd2 win32: fixes for unicode in GetMonitorInfo()
git-svn-id: trunk@19241 -
2009-04-06 09:10:30 +00:00
paul
3a19dfff75 lcl: add TMonitor class which represents single screen monitor, add TScreen.MonitorCount, TScreen.Monitors[]
win32, qt, gtk2: implement EnumDisplayMonitors, GetMonitorInfo

git-svn-id: trunk@19239 -
2009-04-06 08:14:58 +00:00
paul
5027651b45 win32: fix GetObject to support fonts with national names
git-svn-id: trunk@19132 -
2009-03-27 08:30:09 +00:00
paul
ea305d04d4 win32: initial support for fonts with national names (issue #0013141)
git-svn-id: trunk@19131 -
2009-03-27 08:15:34 +00:00
paul
dcab697872 win32: return false for GetDCOriginRelativeToWindow if DC is not a control DC
git-svn-id: trunk@19063 -
2009-03-22 15:56:51 +00:00
paul
2f1f84b816 win32: don't count origin between memory/metafile DC and window in the GetDCOriginRelativeToWindow - it is imposible to do
git-svn-id: trunk@19055 -
2009-03-21 15:36:01 +00:00
paul
3c5d739364 win32, wince: Frame3D must decrease passed rect
git-svn-id: trunk@18803 -
2009-02-23 08:22:45 +00:00
vincents
1f3f833a84 win32 interface: use UTF16 <-> UTF8 conversion functions from LCLProc instead of UTF8Encode/UTF8Decode from the RTL to work around fpc bug #13075
patch by: Theo
fixes issue #13067

git-svn-id: trunk@18769 -
2009-02-20 08:33:44 +00:00
vincents
54d1e48d17 win32 interface: fixed passing length to TextOutW, based on patch by Theo (issue #13197)
git-svn-id: trunk@18737 -
2009-02-18 00:40:01 +00:00
sekelsenmat
3366947be6 Adds CreateEllipticRgn to win32
git-svn-id: trunk@18697 -
2009-02-15 11:24:29 +00:00
sekelsenmat
3ef10c5da2 Implements SetWindowRgn for win32
git-svn-id: trunk@18696 -
2009-02-15 11:06:36 +00:00