paul
f8471c645c
win32: restore ocasional resource removal by Dmitry, replace rc resource usage by res - maybe it is better for cross-compilation (fixes bug #0015620 )
...
git-svn-id: trunk@23583 -
2010-01-29 02:15:50 +00:00
paul
ab7d791825
win32: set WS_EX_LAYERED in TCustomForm.CreateHandle if needed
...
git-svn-id: trunk@23570 -
2010-01-27 08:53:57 +00:00
paul
3208c507b6
lcl: add TCustomForm.AlphaBlend, TCustomForm.AlphaBlendValue, change TWsCustomForm.SetAlphaBlend
...
git-svn-id: trunk@23565 -
2010-01-27 07:57:16 +00:00
dmitry
1b3f777fd0
lcl: fixed lcl compilation. moved SetLayeredWindowAttributes dynamic loading to win32extra
...
git-svn-id: trunk@23563 -
2010-01-27 07:12:46 +00:00
dmitry
f9a3cc0fd2
lcl: added SetAlphaBlend method to TWSCustomForm class + win32 implementation
...
git-svn-id: trunk@23562 -
2010-01-27 07:06:06 +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
marc
20448170ae
+ WinApi: added SetTimer/Killtimer based on existing Widgetset.CreateTimer as part of lclextentions integration
...
git-svn-id: trunk@23417 -
2010-01-10 18:57:23 +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
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
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
825457d6b0
win32, wince, qt, gtk: fix DCSetPixel to allow system colors by Luiz Americo (issue #0015265 )
...
git-svn-id: trunk@23136 -
2009-12-14 05:29:59 +00:00
marc
166da1d03e
* Initialize procedure variables with default value in case a lin cannot be loaded. Fixes crash on win95 or winNT
...
git-svn-id: trunk@22930 -
2009-12-03 00:35:16 +00:00
paul
dfb5d67e48
win32: fix minimize of application where there is no main form or it has not handle yet
...
git-svn-id: trunk@22781 -
2009-11-26 04:20:03 +00:00
paul
cc5896f4e7
lcl: add TPopupMenu.Alignment, TPopupMenu.TrackButton
...
win32: implement TPopupMenu.Alignment, TPopupMenu.TrackButton
git-svn-id: trunk@22732 -
2009-11-24 07:58:44 +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
40861cdaf8
win32: always call default window proc for WM_PAINT progressbar handler if it has marquee style (fixes bug #0015064 )
...
git-svn-id: trunk@22692 -
2009-11-20 10:35:09 +00:00
paul
16bf008f5a
win32: add progressbar messages to wm_to_string
...
git-svn-id: trunk@22690 -
2009-11-20 09:49:35 +00:00
paul
98a2219391
win32: another trial to solve vista menu bar repainting problem (issue #0014894 )
...
git-svn-id: trunk@22595 -
2009-11-15 13:48:25 +00:00
martin
e633753632
LCL, Interfaces: added TNotebook.TabRect for Win/Gtk/2
...
git-svn-id: trunk@22512 -
2009-11-10 05:13:46 +00:00
paul
2e2fcd58fc
lcl: bidi mode support for buttons from Zaher Dirkey (#issue #0014933 )
...
git-svn-id: trunk@22448 -
2009-11-05 14:35:36 +00:00
paul
ef831d1924
win32: fix TWin32WSCustomCalendar.HitTest for systems < vista
...
git-svn-id: trunk@22441 -
2009-11-05 09:53:46 +00:00
paul
8064b14d92
win32: draw menu bar background once per repaint for all the menu bar (fixes bug #0014894 )
...
git-svn-id: trunk@22410 -
2009-11-03 19:21:34 +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
paul
a350849e6b
lcl: patch from Zaher Dirkey to fix TLabel and TStaticText alignment with respect the BiDi mode (issue #0014915 )
...
git-svn-id: trunk@22312 -
2009-10-28 09:49:18 +00:00
paul
5b9bce5f38
lcl: apply patch of Boian Mitov to support listview state images and HitTestInfo under win32 (issue #0014881 )
...
git-svn-id: trunk@22310 -
2009-10-28 09:41:02 +00:00
paul
18a0946b92
win32: restore not only combobox text but also cursor position and selection after items clear
...
git-svn-id: trunk@22301 -
2009-10-27 02:15:35 +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
c19617c093
win32: apply patch from Jose Mejuto to fix "Open/Save dialog (Win32/64) with option ofOldStyleDialog crashes" (bug #0014794 )
...
git-svn-id: trunk@22215 -
2009-10-18 06:34:18 +00:00
paul
ecfeff9149
win32: allow statusbar resizing (issue #0014814 )
...
git-svn-id: trunk@22213 -
2009-10-18 06:21:23 +00:00
paul
82ae075ca3
lcl: notify controls using message on FontChanged, and ParentFontChanged for delphi compatibility
...
git-svn-id: trunk@22196 -
2009-10-16 13:36:52 +00:00
paul
07fc3954f6
win32: workaround windows bug when SetMenuItemInfo destroy/corrupts hSubMenu handle
...
git-svn-id: trunk@22092 -
2009-10-10 03:53:54 +00:00
paul
e477c10fea
win32: menus:
...
- remove submenu flag from the menu item if there are no more child items there
- set submenu flag only when GetMenuItemInfo result is True
- don't try to double destroy menu item handle
- show debug messages in the console in case of errors
git-svn-id: trunk@22080 -
2009-10-09 09:28:13 +00:00
vincents
04304dd66c
LCL: added Application.IntfAppActivate and Application.IntfAppDeactivate, that can be called by the widgetset to notify the LCL, so it can raise the Application.OnActivate and OnDeactivate events. It is used in by the win32 widgetset (issue #8043 )
...
git-svn-id: trunk@22062 -
2009-10-07 12:10:11 +00:00
paul
c6ba3e76d8
win32: TCheckListBox:
...
- move TCheckListBox code from the general WindowProc to the private one
- preserve data on ListBox item change and appropriate code for TCheckListBox
git-svn-id: trunk@22039 -
2009-10-05 07:57:09 +00:00
paul
76f7d9f596
win32: correct vista menu bar drawing when there is only one menu item
...
git-svn-id: trunk@21932 -
2009-10-01 01:55:55 +00:00
paul
11ec547a04
win32: draw parent background using theme services instead of requesting full parent painting
...
git-svn-id: trunk@21928 -
2009-09-30 09:23:30 +00:00
paul
c4c2cdc5cd
lcl: formatting
...
git-svn-id: trunk@21926 -
2009-09-30 07:47:53 +00:00
paul
6eec759d6e
win32: request wm_measureitem for the menu item on item caption/bitmap change
...
git-svn-id: trunk@21915 -
2009-09-29 12:28:41 +00:00
paul
d21ae9f636
win32: don't override various menu flags (rtl for example) when we change caption/icon/or checked state
...
git-svn-id: trunk@21912 -
2009-09-29 09:31:17 +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
0c54c5658c
win32: fix vista drawing of Right-To-Left submenus (issue #0014669 )
...
git-svn-id: trunk@21850 -
2009-09-24 23:23:14 +00:00
paul
48e060d9f7
lcl: MainMenu refactoring and other menu changes:
...
- AttachMenuToWindow api changed. Now it accepts a window handle and a menu handle instead of TMenu component. This change is made to reduce interfaces dependency from the LCL (in order to reduce exe file size)
- TMainMenu.WindowHandle is introduced for delphi compatibility
- Don't show a main menu for the bsDialog windows (delphi compatibility)
- Explicitly request MainMenu to notify form about destruction
git-svn-id: trunk@21844 -
2009-09-24 09:14:53 +00:00
paul
eaa3c7ca92
win32: notify application about idle on WM_ENTERIDLE
...
git-svn-id: trunk@21842 -
2009-09-23 21:44:07 +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
75c0fc522b
win32: don't handle menu opening via keyboard for designer forms
...
git-svn-id: trunk@21815 -
2009-09-22 02:36:54 +00:00
paul
541cc40c6d
win32: formatting
...
git-svn-id: trunk@21768 -
2009-09-19 09:36:16 +00:00
paul
4e08e5bbe0
win32: simplify TWin32MemoStrings.GetTextStr
...
git-svn-id: trunk@21767 -
2009-09-19 09:35:06 +00:00
paul
f4a1e520cd
lcl: cleanup
...
git-svn-id: trunk@21766 -
2009-09-19 09:34:41 +00:00
paul
eeba75a1a6
win32: force showing of form close button in the design-time (even if BorderIcons and BorderStyle request to hide it)
...
git-svn-id: trunk@21753 -
2009-09-18 04:44:38 +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
718cf5e973
win32: return normal window size on WM_SIZE message if window is minimized
...
git-svn-id: trunk@21727 -
2009-09-16 07:02:04 +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
60784ed8aa
win32: remove unneeded CreateHandle for TCustomPanel. TWinControl CreateHandle works very well itself.
...
git-svn-id: trunk@21685 -
2009-09-13 12:51:16 +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
095869caaf
win32: decrease border size when calculating preferred height for edit and spin edit controls (issue #0014327 )
...
git-svn-id: trunk@21553 -
2009-09-03 09:30:54 +00:00
paul
f263d9b283
win32: invalidate groupbox on ui state change if themes are enabled (bug #0014452 )
...
git-svn-id: trunk@21550 -
2009-09-03 07:33:37 +00:00
paul
70b464b507
lcl: remove ICC_ constants from the LCLType unit
...
win32: register more comctrl classes
git-svn-id: trunk@21548 -
2009-09-03 03:18:31 +00:00
paul
77ab5052b4
win32: init more common control classes
...
git-svn-id: trunk@21547 -
2009-09-03 03:09:58 +00:00
paul
4a0461a558
lcl: ListView:
...
- add TIconOptions
- win32 implement support for different IconOptions (issue #0014460 )
git-svn-id: trunk@21546 -
2009-09-03 02:48:41 +00:00
paul
ae65b07221
lcl, win32, carbon: initial implementation of virtual TListView by Dmitry (issue #0007749 )
...
git-svn-id: trunk@21524 -
2009-09-01 16:44:31 +00:00
paul
ebf57a017e
win32: fix WindowsVersion variable initialization (fixes bug #0014400 )
...
git-svn-id: trunk@21384 -
2009-08-21 15:21:04 +00:00
sekelsenmat
839f502c1d
Updates LCL Capability constants
...
git-svn-id: trunk@21284 -
2009-08-18 15:47:26 +00:00
sekelsenmat
cc2fd37660
Uses constants instead of raw numbers for the result of GetLCLCapacity
...
git-svn-id: trunk@21281 -
2009-08-18 14:52:56 +00:00
martin
944b8b028b
LCL: cleanup
...
git-svn-id: trunk@21233 -
2009-08-15 20:07:06 +00:00
martin
0599dc51aa
LCL: small optimization to WM_SETCURSOR, avoid unnecessary calculations, if screen.cursor is set
...
git-svn-id: trunk@21217 -
2009-08-13 14:10:09 +00:00
martin
af0b5a9727
LLCL: Fixes to SetCursor (Windows) for Edit/Comboboxes controls, part of issue #14336
...
git-svn-id: trunk@21216 -
2009-08-13 13:27:54 +00:00
martin
edaea50d9b
LCL: Fixes to SetCursor (Windows) for tabbed controls, one part of issue #14336
...
git-svn-id: trunk@21214 -
2009-08-13 10:33:26 +00:00
martin
7a30d2fdae
Fixes to SetCursor (Windows) / Cleanup
...
git-svn-id: trunk@21197 -
2009-08-12 13:54:59 +00:00
vincents
c794009801
added svn properties
...
git-svn-id: trunk@21168 -
2009-08-11 11:14:49 +00:00
vincents
f2aa35fb07
win32 interface: destroy buttonlist when a bitbtn is destroyed, fixes gdi object leak (issue #14211 )
...
git-svn-id: trunk@21137 -
2009-08-08 08:34:51 +00:00
vincents
808a2558b9
win32 interface: don't handle state changes in togglebox manually (issue #14252 )
...
git-svn-id: trunk@21103 -
2009-08-05 09:47:25 +00:00
martin
344ca971c9
LCL: Window, fixed SetCursor to no longer delay action to next mouse-move
...
git-svn-id: trunk@21090 -
2009-08-03 15:16:39 +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
02382c4881
win32: declare winapi functions and structs TWindowInfo, PWindowInfo, GetWindowInfo
...
git-svn-id: trunk@20837 -
2009-07-12 04:29:40 +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
83038bf575
win32: process wm_help message
...
git-svn-id: trunk@20823 -
2009-07-11 05:49:46 +00:00
paul
2d43d1988c
win32: support biHelp BorderIcon
...
git-svn-id: trunk@20815 -
2009-07-09 09:04:29 +00:00
paul
d889bf171c
win32: fix sub menu items search in wm_menuselect
...
git-svn-id: trunk@20814 -
2009-07-09 06:21:56 +00:00
jesus
f6920f782e
Printers, added TPrinter.FileName property, based on patch from mtournay, issue #13718
...
git-svn-id: trunk@20805 -
2009-07-07 05:09:52 +00:00
martin
10869b8cdf
Fixed a possible RangeCheck exception
...
git-svn-id: trunk@20774 -
2009-07-01 14:04:49 +00:00
paul
7a0a4d2038
win32: fix TWin32WSCustomForm.SetShowInTaskbar for the case when window is visible
...
git-svn-id: trunk@20710 -
2009-06-22 08:09:27 +00:00
paul
5be6d50c10
win32: use better approach for forms with ShowInTaskbar = stAlways
...
git-svn-id: trunk@20707 -
2009-06-22 07:43:51 +00:00
paul
67b08ac58d
win32: add more checks in UpdateUIState (maybe fixes bug #0014014 )
...
git-svn-id: trunk@20686 -
2009-06-21 03:00:13 +00:00
paul
57446cdb93
win32: fix focus rect drawing on TBitBtn on Vista/w7
...
git-svn-id: trunk@20668 -
2009-06-19 07:17:55 +00:00
paul
08d373cf9c
win32: add few checks
...
git-svn-id: trunk@20667 -
2009-06-19 06:37:39 +00:00
paul
1b5a77a7e7
win32: respect show accelerator windows option for controls (windows 2000 and next)
...
git-svn-id: trunk@20666 -
2009-06-19 03:28:59 +00:00
paul
b5da1c1954
win32: fix drawing menu accelerators if they are disabled
...
git-svn-id: trunk@20663 -
2009-06-18 11:33:58 +00:00
paul
5db2c43ab0
win32: fix vista/w7 menu drawing when themes are not enabled (bug #0013986 )
...
git-svn-id: trunk@20644 -
2009-06-17 01:46:09 +00:00
paul
7a80764617
win32: popup menu for vista/w7
...
- override system drawing of submenu arrow, use own painting (right colors now)
- don't use own calculations for right to left layouts, ask windows to do this for us
git-svn-id: trunk@20638 -
2009-06-16 04:38:20 +00:00
paul
26309ffc92
win32: don't draw standard menu item bg for separator items on vista/w7
...
git-svn-id: trunk@20632 -
2009-06-15 09:28:51 +00:00
paul
92e7669048
win32: add button messages to wm_to_string
...
git-svn-id: trunk@20625 -
2009-06-14 09:43:29 +00:00
paul
3e152cc862
win32: don't show accelerator char in menu if windows ask
...
git-svn-id: trunk@20611 -
2009-06-13 08:27:12 +00:00
paul
f50ffbfbc7
win32: implement vista/w7 menubar drawing
...
git-svn-id: trunk@20610 -
2009-06-13 04:54:27 +00:00
paul
a7eca7b2d5
win32: draw popup menu in Vista style on vista/w7
...
git-svn-id: trunk@20606 -
2009-06-12 16:20:19 +00:00
paul
4add4186ce
win32: fix imagelist drawing if passed cx, cy = 0 (it means draw without stretch)
...
git-svn-id: trunk@20595 -
2009-06-12 14:05:30 +00:00
martin
249ee7ec27
LCL: Fixed range-check in InternalColorToRGB
...
git-svn-id: trunk@20590 -
2009-06-12 10:42:00 +00:00
paul
013956d49b
win32: formatting
...
git-svn-id: trunk@20584 -
2009-06-11 16:22:25 +00:00
paul
38f98bdfb0
win32: reimplement BitBtn text + image drawing under Vista, Windows 7 (use 32bit alpha bitmaps + text functions which supports alpha) fixes issue #0013920
...
git-svn-id: trunk@20583 -
2009-06-11 15:45:23 +00:00
paul
dc4763f6ad
lcl: redo HideFormWithStayOnTop with RemoveStayOnTop which is only sets fsNormal instead of fsStayOnTop, add RestoreStayOnTop method. Add AppRemoveStayOnTopFlags, AppRestoreStayOnTopFlags to TWidgetset, implement them on windows (fixes issue #0013953 )
...
git-svn-id: trunk@20580 -
2009-06-11 01:37:06 +00:00
paul
78cb9d1a20
win32: implement TWin32WSCustomForm.SetFormStyle
...
git-svn-id: trunk@20579 -
2009-06-11 01:23:02 +00:00
paul
1235f2dd11
win32: revert r20538 #dda7ce7306 (fixes bug #0013940 )
...
git-svn-id: trunk@20550 -
2009-06-09 14:01:40 +00:00
paul
aa7a14e2ac
win32: add TWin32ThemeServices.DrawTextEx
...
git-svn-id: trunk@20545 -
2009-06-09 09:06:40 +00:00
paul
176f0a934d
win32: detect windows 7 as WindowsVersion = wv7
...
git-svn-id: trunk@20542 -
2009-06-09 06:55:35 +00:00
paul
dda7ce7306
win32: use ThemeServices to draw TBitBtn (maybe fix issue #0013920 )
...
git-svn-id: trunk@20538 -
2009-06-09 06:27:08 +00:00
paul
8140fd8755
lcl: add more extra mouse buttons support
...
git-svn-id: trunk@20536 -
2009-06-09 04:25:32 +00:00
paul
885c4849a4
win32: don't count glyph size in TWin32WSBitBtn.GetPreferredSize if glyph is not shown
...
git-svn-id: trunk@20534 -
2009-06-09 03:04:36 +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
670f0dd35e
win32: more WM_TO_STRING consts
...
git-svn-id: trunk@20521 -
2009-06-08 15:05:47 +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
e03a117023
win32: fix TWin32WidgetSet.InitStockFont for the system font
...
git-svn-id: trunk@20281 -
2009-05-28 14:00:54 +00:00
paul
077b9c0616
lcl: fonts:
...
- add TScreen.IconFont, TScreen.MenuFont, TScreen.SystemFont
- replace TWidgetset.InitHintFont with TWidgetset.InitStockFont
win32, wince: retrieve default font from SystemParametersInfo as described in issue #0013848
git-svn-id: trunk@20275 -
2009-05-28 09:23:07 +00:00
paul
b6cec7a960
win32: Fix for owner drawn TListView on Windows (by Yury Sidorov, issue #0013847 )
...
git-svn-id: trunk@20273 -
2009-05-28 02:32:58 +00:00
paul
fef147777a
win32: cleanup win32extra - remove already defined in fpc 2.2.4 symbols
...
git-svn-id: trunk@20253 -
2009-05-26 23:03:33 +00:00
paul
61fc0cf97e
win32: cleanup win32extra - remove already defined in fpc 2.2.4 symbols
...
git-svn-id: trunk@20252 -
2009-05-26 22:48:02 +00:00
paul
fa52b300b3
win32: cleanup win32extra - remove already defined in fpc 2.2.4 symbols
...
git-svn-id: trunk@20242 -
2009-05-26 13:11:33 +00:00
paul
ae52501a97
win32: translate windows 7 UxTheme.h and add missed declarations into win32uxtheme.pas
...
git-svn-id: trunk@20223 -
2009-05-26 06:44:59 +00:00
paul
597eb84d8c
lcl: Themes
...
- redo TThemeServices.GetDetailSize to return TSize instead of Integer
- improve toolbutton drawing
git-svn-id: trunk@20213 -
2009-05-26 01:32:38 +00:00
paul
fda6d84cc0
lcl: add TThemeServices.GetOption with 2 options at moment - ShowButtonImages and ShowMenuImages
...
git-svn-id: trunk@20188 -
2009-05-25 07:26:57 +00:00
vincents
70a61a9037
win32 interface: add direcory to TSelectDirectoryDialog.Files to be more consistent with the OpenFileDialog (issue #13691 )
...
git-svn-id: trunk@20183 -
2009-05-25 06:33:13 +00:00
paul
a8544fc87d
lcl: add TProgressBar.Style property, implement Marquee style for win32, qt, gtk2 (issue #0013807 )
...
git-svn-id: trunk@20161 -
2009-05-24 09:49:13 +00:00
vincents
299f68fb06
win32 interface: don't restrict the height of a csSimple combobox (issue #13765 )
...
git-svn-id: trunk@20109 -
2009-05-21 20:19:16 +00:00
paul
7526bb803e
gtk: report LCL page index instead of gtk page index on notebook page change
...
git-svn-id: trunk@20087 -
2009-05-21 06:31:13 +00:00
paul
ff4795ef8e
win32: fix restoring of main form state after application minimize (bug #0013752 )
...
git-svn-id: trunk@20081 -
2009-05-21 01:20:27 +00:00
paul
6306629a9e
win32: notify LCL on mouse enter/leave, NC movements more correct
...
git-svn-id: trunk@20069 -
2009-05-20 07:14:50 +00:00
paul
35911b87ad
win32: remove wm_ncactivate handling for main form (issue #0013753 )
...
git-svn-id: trunk@20040 -
2009-05-19 06:20:07 +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
jesus
84cead9009
LCL, custom handling of checkbox states (windows, this enables the use of allowgrayed without cbGrayed state, specially useful for dbcheckbox), fix cbGrayed state under gtk2
...
git-svn-id: trunk@20012 -
2009-05-17 17:00:47 +00:00
paul
ae839602c2
lcl: formatting
...
git-svn-id: trunk@19937 -
2009-05-12 05:59:22 +00:00
paul
f3dfb636c4
lcl: add new property TBitBtn.GlyphShowMode and new function TBitBtn.CanShowGlyph
...
git-svn-id: trunk@19909 -
2009-05-10 15:52:24 +00:00
jesus
a849d36c9a
LCL, changing AllowGrayed at runtime has no effect (windows), fixed
...
git-svn-id: trunk@19892 -
2009-05-10 03:34:08 +00:00
vincents
a348e5f501
win32 interface: reverted r19668 #c1f7d67ccc, because CoInitialize COINIT_MULTITHREADED doesn't work with new style TSelectDirectory.
...
git-svn-id: trunk@19800 -
2009-05-04 13:39:35 +00:00
paul
a460f26890
lcl: add more stock buttons
...
git-svn-id: trunk@19781 -
2009-05-03 12:58:48 +00:00
paul
fd0b672a54
win32: use bigger shield icon
...
git-svn-id: trunk@19774 -
2009-05-02 18:25:12 +00:00
paul
7902442395
lcl: add idDialogShield icon
...
git-svn-id: trunk@19772 -
2009-05-02 17:30:37 +00:00
paul
c92f6641d1
lcl: replace TWidgetSet.LoadStockPixmap by ThemeServices.GetStockImage
...
git-svn-id: trunk@19769 -
2009-05-02 15:36:56 +00:00
paul
08fcb6a2b1
win32: fix typo
...
git-svn-id: trunk@19746 -
2009-05-01 17:52:00 +00:00
paul
b5d76c7a76
win32: fix autosize for TSpinEdit
...
git-svn-id: trunk@19709 -
2009-04-30 15:33:36 +00:00
paul
02f8fc163d
lcl: add new LCLCapability flag lcDragDockStartOnTitleClick
...
git-svn-id: trunk@19701 -
2009-04-30 03:22:04 +00:00
vincents
c1f7d67ccc
win32 interface: use CoInitialize instead of OleIntialize, so we can choose the threading model; COINIT_APARTMENTTHREADED, the value used by OleIntialize crashes in some cases (issue #12742 )
...
git-svn-id: trunk@19668 -
2009-04-28 19:50:13 +00:00
vincents
4d7acfea9e
win32 interface: fixed compilation with -dDEBUG_DOUBLEBUFFER
...
git-svn-id: trunk@19656 -
2009-04-28 06:48:30 +00:00
vincents
71f54ad658
win32 interface:
...
- removed obsolete debugging statements
* fixed compilation with -dMSG_DEBUG
git-svn-id: trunk@19655 -
2009-04-28 06:44:16 +00:00
paul
7d97f14c33
lcl: THintWindow drawing:
...
- remove TThemeServices.DrawTooltip, move content to DrawElement for teTooltip
- call standard ThemeServices.DrawElement in THintWindow.Paint (now tooltips looks native on windows xp, vista, gtk, gtk2)
git-svn-id: trunk@19619 -
2009-04-25 14:40:54 +00:00
paul
793393a8d6
lcl: start native drawing of tooltip windows
...
- add TThemeServices.DrawTooltip
- reimplement tooltip drawing through ThemeServices in case of color = clInfoBk
- implement native tooltip drawing in ThemeServices for Windows with enabled themes
git-svn-id: trunk@19616 -
2009-04-25 12:56:04 +00:00
vincents
0f06c0fbd1
win32 interface: fixed typo in comment
...
git-svn-id: trunk@19550 -
2009-04-21 12:31:42 +00:00
paul
b4435027f4
win32: add shadow for hint window as it is present for native hints starting from XP
...
git-svn-id: trunk@19512 -
2009-04-19 12:53:09 +00:00
paul
03ec64bd87
win32: cleanup
...
git-svn-id: trunk@19391 -
2009-04-13 01:18:26 +00:00
paul
8361d10065
win32: show open/save dialogs on correct monitor (another part of issue #0013446 )
...
git-svn-id: trunk@19380 -
2009-04-12 09:39:43 +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
e9e4a01870
win32: remove TCustomFrame dependency
...
git-svn-id: trunk@19295 -
2009-04-10 06:12:29 +00:00
paul
e486ddaa54
lcl: cleanup
...
git-svn-id: trunk@19284 -
2009-04-09 08:03:03 +00:00
paul
bca9b43b00
lcl: cleanup
...
git-svn-id: trunk@19283 -
2009-04-09 06:50:22 +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
d37486a114
win32: raise TMemo.OnChange not only by user input but also by Lines change (bug #0013411 )
...
git-svn-id: trunk@19149 -
2009-03-29 07:12:15 +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
3215e2c1d2
qt: start HitTest implementation for calendar
...
git-svn-id: trunk@19125 -
2009-03-27 03:15:00 +00:00
paul
5c9822cc3e
win32: implement TWin32WSCustomCalendar.HitTest
...
git-svn-id: trunk@19112 -
2009-03-26 08:30:08 +00:00
paul
3b0c402312
lcl: remove TCalendar.ReadOnly property, add HitTest function
...
git-svn-id: trunk@19111 -
2009-03-26 07:59:44 +00:00
paul
b4f0c63393
win32: if calendar has today string (always true at moment) we need to choose maximal width between calendar rectangle and today string for our control (must fix bug #0012780 )
...
git-svn-id: trunk@19086 -
2009-03-24 06:36:26 +00:00
paul
e82b00defb
win32: cleanup calendar code, implement ShowWeekNumbers option
...
git-svn-id: trunk@19084 -
2009-03-24 03:41:11 +00:00
paul
84f98a4450
win32: port r13117 #7b318045cc from wince - fixes threading synchronization (fixes issue #0011561 )
...
git-svn-id: trunk@19070 -
2009-03-23 08:23:45 +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
5c9f7efdf3
lcl: set default value for TScrollBox.BorderStyle to bsSingle
...
win32, wince: handle TScrollBox.BorderStyle on window creation
(issue #0013346 )
git-svn-id: trunk@19023 -
2009-03-18 10:48:43 +00:00
paul
7a6728e3d2
win32: improve error message if window creation failed
...
git-svn-id: trunk@19017 -
2009-03-18 08:00:46 +00:00
paul
7f70a99e13
win32: fix pagecontrol in the designer after r18831 #af721847eb
...
git-svn-id: trunk@18833 -
2009-02-27 03:52:48 +00:00
jesus
af721847eb
LCL, fixed TabIndexAtClientPos for win32 and gtk2
...
git-svn-id: trunk@18831 -
2009-02-27 03:23:46 +00:00
paul
cdcb46fcd0
win32: application should call OleInitialize to use some windows features like Clipboard, Drag and Drop, etc. Do this for LCL applications (maybe related to issue #0010409 ).
...
git-svn-id: trunk@18807 -
2009-02-23 10:25:47 +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
paul
4c55ecc090
win32: changing border style by changing exstyle does not work for ListView -> use RecreateWnd (fixes part of issue #0013182 )
...
git-svn-id: trunk@18752 -
2009-02-19 01:55:50 +00:00
paul
7ddb879bc3
win32: adjust clientrect when we restore form from minimized/maximized state (fixes bug #0013136 , bug #0010503 )
...
git-svn-id: trunk@18743 -
2009-02-18 07:08:46 +00:00
paul
1051a764db
lcl: formatting
...
git-svn-id: trunk@18741 -
2009-02-18 03:43:39 +00:00
paul
e99ad89ddb
win32: trial to draw imagelist images with alpha even we don't have comctl >= 6 (fixes bug #0011424 )
...
git-svn-id: trunk@18740 -
2009-02-18 02:41:44 +00:00
paul
dc17234e14
win32: use cached system brush to draw highlight in the menu instead of creating new brush every time
...
git-svn-id: trunk@18739 -
2009-02-18 02:40:10 +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
paul
3e01ab5302
lcl: publish TListView.BorderStyle, implement it for win32 (already works for gtk2 issue #0013182 )
...
git-svn-id: trunk@18732 -
2009-02-17 14:31:56 +00:00
paul
ff0c1822d1
win32: postpone combobox CBN_CLOSEUP message to let CBN_SELCHANGE to be handled first (fixes bug #0013189 )
...
git-svn-id: trunk@18723 -
2009-02-17 07:29:14 +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
paul
0819d94bb4
win32: use LCL DeliverMessage instead of own
...
win32: better handle windows theme change (part of bug #0012715 )
git-svn-id: trunk@18695 -
2009-02-15 09:33:57 +00:00
paul
f8c7a97600
win32: set statubar update flag before actual update since actual update cause direct call of wm_paint on windows 98 and wm_paint do direct call of update (and we have endless loop)
...
git-svn-id: trunk@18664 -
2009-02-13 15:15:31 +00:00
paul
2d4442e54c
win32: fix PageIndex use at various places. When we work with page control window we need to convert PageIndex to the real index in all places. This fixes a bug when use set text or imageindex to the page which is placed after invisible tab. Also use correct PageIndex when we request page image index in all places.
...
git-svn-id: trunk@18658 -
2009-02-13 07:41:06 +00:00
paul
9dc46caf40
win32: cleanup
...
git-svn-id: trunk@18657 -
2009-02-13 06:50:47 +00:00
paul
84a9349117
wince: port some win32 notebook changes
...
git-svn-id: trunk@18652 -
2009-02-13 05:50:45 +00:00
paul
53a4ae0a3e
win32: remove few workarounds regards window focus and application z-order
...
lcl: remove code which focused control on every window show. it caused errors with z-order of forms after minimize-restore (issue #0012635 )
lcl: restore last active control/form on application restore
git-svn-id: trunk@18645 -
2009-02-12 10:21:33 +00:00
paul
366e21d328
lcl: add lcModalWindow flag to the TLCLCapatibility enum. Windows has this flag set to 0 and other widgetsets which supports native modal forms to 1 (todo: make wince modal handling the same as on win32)
...
git-svn-id: trunk@18630 -
2009-02-10 15:06:14 +00:00
paul
1d777bebeb
lcl: introduce TScreen.DisableForms, TScreen.EnableForms,
...
lcl: Disabling/Enabling forms before/after showing of modal form
win32: remove win32 specific methods of disabling/enabling windows. Use new TScreen methods instead
win32: disable/enable forms before/after showing some system dialog (fixes bug #0012366 , bug #0012382 )
git-svn-id: trunk@18629 -
2009-02-10 14:38:01 +00:00
paul
be1f7a30e1
win32: follow msdn suggest to update statubar text on wm_paint message to reduce flickering (fixes issue #0012816 )
...
git-svn-id: trunk@18619 -
2009-02-09 15:01:16 +00:00