blikblum
d2ab60647a
lcl,win32: implement GetBkColor. Issue #14792
...
git-svn-id: trunk@27388 -
2010-09-16 19:02:43 +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
marc
74c55b5b4e
* Take lineorder into account when creating bitmap
...
git-svn-id: trunk@27377 -
2010-09-15 23:22:25 +00:00
marc
fd72ca7ff3
* Use DstBpp instead of SrcDepth when calculating DstLineSize ( fixes #0017234 )
...
* Use SrcBytes (=3) for 24Bpp images when RGB indices require a pixel copy
git-svn-id: trunk@27376 -
2010-09-15 22:59:16 +00:00
mattias
dc78f11aef
fixed typo cant
...
git-svn-id: trunk@27305 -
2010-09-11 14:06:32 +00:00
mattias
369aa3055c
fixed typo dont
...
git-svn-id: trunk@27304 -
2010-09-11 14:05:21 +00:00
marc
74596e95e8
* Don't use ADesc.Depth as biBitCount, it can only be used in case of a 24 bits image. Fixes #0017234
...
git-svn-id: trunk@27235 -
2010-08-29 16:30:24 +00:00
paul
f20f3aa1ef
lcl: add public property TCustomListView.ColumnCount,
...
win32: don't access listview columns array out of it bounds (issue #0017263 )
git-svn-id: trunk@27199 -
2010-08-26 16:39:45 +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
2c127c9897
win32: fix TListView.Autosize by Bernd Kreuss (issue #0017141 )
...
git-svn-id: trunk@27046 -
2010-08-10 02:07:48 +00:00
marc
a65d1b9fc1
* Convert rgb(a) bitmap data if data in different order. Modified patch #0016304 by Denis Golovan
...
git-svn-id: trunk@27044 -
2010-08-09 22:55:52 +00:00
paul
65ab258cc6
win32: draw disabled text if bitbtn is disabled even when themes are enabled (issue #0017106 )
...
git-svn-id: trunk@27006 -
2010-08-04 10:29:37 +00:00
paul
83e5f75727
lcl: ignore BorderStyle changes for TForm during the design time (issue #0017099 )
...
git-svn-id: trunk@26993 -
2010-08-03 11:55:11 +00:00
dmitry
f017af8aaa
win32: implement IME input support for Edit controls. KeyUp (for VK_RETURN) event is supressed if IME composition is finished, bug #16430
...
git-svn-id: trunk@26984 -
2010-08-02 23:52:51 +00:00
paul
d53a9b30fa
win32: skip AlphaBlend in design time (issue #0017080 )
...
git-svn-id: trunk@26975 -
2010-08-02 09:03:05 +00:00
sekelsenmat
72d00b6953
Patch from José Mejuto, fixes Listview column autosize
...
git-svn-id: trunk@26846 -
2010-07-27 07:33:03 +00:00
paul
013200586a
lcl: move shortcut handling from after interface to before interface (bug #0016990 )
...
git-svn-id: trunk@26833 -
2010-07-26 04:54:10 +00:00
paul
ec0670136a
win32, wince: remove unused ancient accelerator code
...
git-svn-id: trunk@26775 -
2010-07-22 08:46:31 +00:00
paul
df4dcb0147
lcl: formatting, cleanup
...
git-svn-id: trunk@26773 -
2010-07-22 08:19:41 +00:00
paul
e0a5a6d15b
win32: remove some system menu items from the window if borderstyle = bsDialog to behave the same as standard windows dialogs and delphi dialogs
...
git-svn-id: trunk@26770 -
2010-07-22 04:47:44 +00:00
paul
35a4f8ad05
lcl, win32: better support for wm_help command. pass context and keyword to DoOnHelp in a compatible to delphi way (issue #0015065 )
...
git-svn-id: trunk@26744 -
2010-07-20 08:43:36 +00:00
mattias
e0341b226e
win32 intf: documented TPopupMenu.OnClose and delete items
...
git-svn-id: trunk@26733 -
2010-07-19 10:39:06 +00:00
paul
47c3b8be53
lcl, win32: cleanup
...
git-svn-id: trunk@26732 -
2010-07-19 05:43:57 +00:00
paul
6070876176
lcl: formatting
...
git-svn-id: trunk@26730 -
2010-07-19 03:15:12 +00:00
paul
dbfda353fe
win32: fix typo in HandleUnicodeChar (bug #0016950 )
...
git-svn-id: trunk@26729 -
2010-07-19 00:54:26 +00:00
paul
f6d293c39b
win32: process UTF8KeyPress properly - look for the key changes. based on patch of José Mejuto (win32 part of issue #0015927 )
...
git-svn-id: trunk@26672 -
2010-07-16 02:16:43 +00:00
paul
b18be4646a
lcl: fix ControlAtPos when it search recursively by Martin Friebe (issue #0014256 )
...
git-svn-id: trunk@26660 -
2010-07-15 06:25:51 +00:00
paul
a3dac0b6df
lcl: redo context menu message handling:
...
- when called by keyboard pass -1, -1 coords
- remove child->parent loop from LCL to widgetsets (win32 and wince do this automatically, qt do it too if mouse propagation is on)
- don't show parent context menu if child has own standard menu (like TEdit)
qt: redo mouse handling, turn on mouse propagation and mouse tracking for most of widgets, stop propagation in event filters
gtk2: implement context menu loop
widgetsets: remove LM_PRESSED, LM_RELEASED messages (LCL does not use them and they are not needed for any compatbility reasons)
git-svn-id: trunk@26637 -
2010-07-14 08:47:02 +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
sekelsenmat
06d9c193a5
Large update to wince listview
...
git-svn-id: trunk@26474 -
2010-07-05 20:00:54 +00:00
dmitry
4b6492764d
win32: updated Win7 opensave dialog library dir selection. fix #16797
...
git-svn-id: trunk@26471 -
2010-07-05 13:50:08 +00:00
paul
fe54310b0f
lcl: introduce new widgetset functions for rubberband creation and moving, implement them for win32, qt and gtk2
...
git-svn-id: trunk@26446 -
2010-07-03 15:25:36 +00:00
paul
195d1c5013
win32: improve DrawDefaultDockImage - use it with winxp too since it looks prettier, prevent window and application deactivation
...
git-svn-id: trunk@26439 -
2010-07-03 09:20:13 +00:00
paul
a849dbc99a
win32: use highlight color for transparent dock drawing, fix drawing for the case when no theme engine is used
...
git-svn-id: trunk@26312 -
2010-06-29 01:16:27 +00:00
paul
7ddd34c18c
win32: implement dock image using alpha-transparent window for windows >= vista (issue #0016782 )
...
git-svn-id: trunk@26309 -
2010-06-28 08:22:32 +00:00
blikblum
2b652bd86c
lcl/win32: Add GetCurrentObject. Implement under win32. Part of 14792
...
git-svn-id: trunk@26256 -
2010-06-22 17:03:04 +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
dmitry
25902403e2
win32: prevent designed components to become TopMost
...
git-svn-id: trunk@25774 -
2010-05-30 16:21:26 +00:00
dmitry
aff5d74181
win32: improve FormStyle switching, without window recreation
...
git-svn-id: trunk@25773 -
2010-05-30 16:12:51 +00:00
dmitry
70416c81dc
win32: fix for changing FormStyle in runtime. fix for #16573
...
git-svn-id: trunk@25771 -
2010-05-30 15:33:35 +00:00
dmitry
928c735935
win32: fix for StayOnTop switching
...
git-svn-id: trunk@25727 -
2010-05-28 11:49:01 +00:00
paul
1aae556694
win32, wince: revert r25425 #112777a442 because it adds flickering to applications
...
git-svn-id: trunk@25679 -
2010-05-27 03:07:34 +00:00
paul
c7f1b52257
win32: do a spinedit parts reposition in one step
...
git-svn-id: trunk@25654 -
2010-05-26 02:29:23 +00:00
paul
12964e2686
win32: constraint spinedit minimal width by updown width
...
git-svn-id: trunk@25632 -
2010-05-25 03:28:50 +00:00
sekelsenmat
45b34f356d
Doesn't activate StayOnTop if designing under win32
...
git-svn-id: trunk@25559 -
2010-05-21 05:29:42 +00:00
sekelsenmat
a72bba258d
Updates Win32 RemoveStayOnTop
...
git-svn-id: trunk@25536 -
2010-05-20 11:07:03 +00:00
zeljko
c86392f301
LCL: added ASystemTopAlso bool param to TApplication.RemoveStayOnTop & TApplication.RestoreStayOnTop, WS.AppRemoveStayOnTop & WS.AppRestoreStayOnTop, because TApplication.HandleException should normalize all stayontop (app, sys), but app activate/deactivate only fsStayOnTop.
...
git-svn-id: trunk@25535 -
2010-05-20 10:54:19 +00:00
sekelsenmat
9d7aa39624
Implements a new form style: fsSystemStayOnTop, reverts win32 fsStayOnTop to mean staying on top of the App only and implements sending WM_HOTKEY messages to the user TMyForm.WndProc. Also adds the OldFormStyle to the parameters of TWSCustomForm.SetFormStyle so that it isn't always necessary to recreate the Wnd.
...
git-svn-id: trunk@25531 -
2010-05-20 09:28:21 +00:00
sekelsenmat
3a4f157391
Fixes fsStayOnTop on Windows as defined as staying on top of all windows of any application, regardless of enabled status or anything else for that matter.
...
git-svn-id: trunk@25520 -
2010-05-19 18:24:12 +00:00
paul
32ae8008b2
win32: notify LCL about notebook size change in case of switching multiline property
...
git-svn-id: trunk@25506 -
2010-05-19 08:30:36 +00:00
paul
e362c99c72
win32: update notebook when multiline flag is set
...
git-svn-id: trunk@25505 -
2010-05-19 08:23:25 +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
b4c23c4585
win32: formatting
...
git-svn-id: trunk@25475 -
2010-05-17 02:15:56 +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
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