Commit Graph

1762 Commits

Author SHA1 Message Date
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
paul
746c583d65 win32: set only ptMaxTrackSize. Windows will automatically calculate ptMaxSize (fixes bug #0012655)
git-svn-id: trunk@18609 -
2009-02-09 06:52:53 +00:00
paul
43212b3449 win32: use SendMessageW when pass statusbar text
git-svn-id: trunk@18600 -
2009-02-08 12:10:29 +00:00
paul
aaefb01ca1 win32: reduce flickering of themed applications (bug #0010307, bug #0012190)
git-svn-id: trunk@18594 -
2009-02-06 18:44:50 +00:00
paul
cac90a2be9 lcl, win32: use cLineCaption instead of '-' for separator menu
win32: change menu item enabled state when we change caption since we can change caption from '-' to normal caption and vice versa (fixes bug #0012055)

git-svn-id: trunk@18581 -
2009-02-05 14:54:47 +00:00
paul
14a26422f9 lcl: formatting
git-svn-id: trunk@18552 -
2009-02-04 08:03:37 +00:00
paul
82572a7ab9 win32: pass both LogOff and ShutDown to Application.OnQueryEndSession, Application.OnEndSession (bug #0011969)
git-svn-id: trunk@18548 -
2009-02-04 02:24:58 +00:00
paul
03516b6b64 win32: don't set combobox text on closeup notification (bug #0010929)
git-svn-id: trunk@18528 -
2009-02-01 10:23:09 +00:00
paul
a7c0eda865 win32: save and restore combobox text if we clear combobox items and combobox is not readonly (bug #0009736)
git-svn-id: trunk@18527 -
2009-02-01 09:54:56 +00:00
paul
2e44efcd0b win32: formatting
git-svn-id: trunk@18526 -
2009-02-01 09:48:04 +00:00
paul
9056fdcdf0 win32: combobox fixes
- add combobox messages to WM_TO_STRING function
  - fix recursion in the ComboBoxWindowProc related to GetComboboxInfo call and further CB_GETCOMBOBOXINFO message generated by windows
  - fix destroying wrong window info if combobox has no edit (fixes bug #0012529)

git-svn-id: trunk@18525 -
2009-02-01 09:29:47 +00:00
paul
e8a9d70590 win32: remove period (.) from defaultExt (fixes bug #0013040)
git-svn-id: trunk@18511 -
2009-01-31 06:34:56 +00:00
paul
9839c4a098 win32:
- change set open/save dialog options after execute
  - use DefaultExt
fixes bug #0013040

git-svn-id: trunk@18507 -
2009-01-30 18:02:41 +00:00
paul
983e3633ec lcl: fix some autosize problems
git-svn-id: trunk@18501 -
2009-01-30 07:44:06 +00:00
paul
6fd6f8e904 win32: workaround showing accelerator chars (bug #0013056)
git-svn-id: trunk@18481 -
2009-01-29 03:30:24 +00:00
paul
3058282d40 win32: rewrite DrawBitBtnImage to overcome vista bug/feature with transparent text on buttons (bugs #0012558; #0012270; #0011184), disabled BitButtons on xp classic theme looks better now too
git-svn-id: trunk@18471 -
2009-01-28 08:22:46 +00:00
paul
acab2e4958 win32: fix TEdit autosize
git-svn-id: trunk@18457 -
2009-01-27 03:48:01 +00:00
paul
7ce333d91a win32: don't reassign already found lWinControl variable by HandleUnicodeChar - use parent lWinControl value (fixes bug #0013044)
git-svn-id: trunk@18448 -
2009-01-26 09:36:50 +00:00
paul
d3ed4629f9 win32: update spinedit text on focus change (bug #0013046)
git-svn-id: trunk@18446 -
2009-01-26 04:29:06 +00:00
paul
6eccca7842 lcl: button changes
- set TabStop = Checked on radio button checked change (delphi compatibility) 
  - move LM_CLICKED handler from TCustomButton to TButtonControl
  - change TRadioGroup TabStop back to false
win32: pass LM_CLICKED for TButtonControls, remove unneeded code
(fixes #0012855, #0012689 ?)

git-svn-id: trunk@18426 -
2009-01-24 19:38:02 +00:00
paul
a1ea9760c4 win32: implement color applying for TStatusBar (bug #0012560)
git-svn-id: trunk@18419 -
2009-01-24 17:49:13 +00:00
paul
463fc295c5 win32: fix few warnings (mantis #0013033)
git-svn-id: trunk@18418 -
2009-01-24 17:22:57 +00:00
paul
f22cb37270 lcl: adjust static text size on border change
win32: implement autosize for TStaticText

git-svn-id: trunk@18416 -
2009-01-24 17:00:13 +00:00
paul
2b5fa9f4a9 win32: implement autosize for TEdit (bug #0009445)
git-svn-id: trunk@18415 -
2009-01-24 16:42:50 +00:00
paul
6bce26b8af win32: don't destroy listview imagelist on handle destroying (bug #0009639)
git-svn-id: trunk@18412 -
2009-01-24 15:31:42 +00:00
paul
50714a86e0 win32: sort listview items by index if handle is allocated (fixes bug #0009611)
git-svn-id: trunk@18409 -
2009-01-24 13:53:47 +00:00
paul
f7dce3c301 win32: correct some debugLn
git-svn-id: trunk@18407 -
2009-01-24 11:48:29 +00:00
paul
fefaf6be1a lcl: implement TApplication.UpdateVisible, add TWidgetset.AppSetVisible (defined only for win32 at moment) (mantis #0010544)
git-svn-id: trunk@18403 -
2009-01-24 10:07:36 +00:00
paul
3effa2d5fa win32: set correct bg color and text bg color when we set color to the ListView control (bug #0011051)
git-svn-id: trunk@18400 -
2009-01-23 18:08:43 +00:00
paul
632fda53b8 winapi: don't request mask handle if bitmap is not masked when copy it to the clipboard (bug #0013029)
git-svn-id: trunk@18395 -
2009-01-23 15:31:10 +00:00
paul
949b2781aa win32: pass WM_CANCELMODE to the LCL,
lcl: stop mouse capture on LM_CANCELMODE (issue #0012813)

git-svn-id: trunk@18393 -
2009-01-23 02:40:28 +00:00
paul
2721a7be42 win32: apply font color when painting a bitbtn (bug #0010601)
git-svn-id: trunk@18391 -
2009-01-22 14:40:36 +00:00
paul
65d0d8bd24 win32: restore focus after showing open, save or color dialog
git-svn-id: trunk@18388 -
2009-01-22 08:54:41 +00:00
paul
9aa3d3facd win32: invalidate not only window which holds a list but also all child windows on EndUpdate
git-svn-id: trunk@18327 -
2009-01-18 14:44:06 +00:00
paul
f71d89b2b3 lcl: fix owner drawn statusbar panels
- don't skip TStatusPanel.Bevel
  - assign passed in the WM_DrawItem Message DC to the Canvas.Handle

git-svn-id: trunk@18318 -
2009-01-17 10:41:01 +00:00
vincents
38adeef869 lcl: implemented owner drawn statusbar in the LCL and the win32 widget set (issue #1679)
* based on a patch from Leslie Kaye
* doesn't work yet for themed windows XP

git-svn-id: trunk@18312 -
2009-01-16 19:22:58 +00:00
paul
252c07b69b win32: fix copying CF_BITMAP data into clipboard (bug #0012729)
git-svn-id: trunk@18309 -
2009-01-16 17:35:28 +00:00
vincents
9371294916 win32 interface: use Unicode functions in the message loop, suggested by arnix, fixes issue #12950
git-svn-id: trunk@18288 -
2009-01-14 14:23:34 +00:00
paul
862a8f9949 win32: don't change mainform window state on application restore (bug #0012654)
git-svn-id: trunk@18284 -
2009-01-14 04:34:13 +00:00
paul
92a3c282c1 lcl: formatting
git-svn-id: trunk@18283 -
2009-01-14 04:33:24 +00:00
paul
133caf74fd win32: draw missed focus rectangle for all themed bitbtns
git-svn-id: trunk@18250 -
2009-01-11 07:08:27 +00:00
paul
d15d1c0630 win32: don't override all WN_NOTIFY results we set in the win32callback default handler
git-svn-id: trunk@18249 -
2009-01-11 07:07:46 +00:00
sekelsenmat
8d7d304d4c Patch from Yury Sidorov. Adds native ballonhint to trayicon in win32/64
git-svn-id: trunk@18239 -
2009-01-10 18:12:28 +00:00
paul
f7eda562c6 win32: rewrite focusing while pages switching (bug #0012959)
git-svn-id: trunk@18233 -
2009-01-10 12:55:04 +00:00
paul
5612e34a33 win32, qt: fix retrieving correct imageindex for page (bug #0012029)
git-svn-id: trunk@18230 -
2009-01-09 20:02:30 +00:00
paul
5df806377b formatting
git-svn-id: trunk@18229 -
2009-01-09 19:37:13 +00:00
paul
3939054ef3 win32: create page handle when it is added to the pagecontrol (solves bug #0012434)
git-svn-id: trunk@18214 -
2009-01-08 18:42:49 +00:00
paul
69bd358a27 win32: set focus on first focusable control or on page itself if no such control on pagecontrol page change (bug #0012692)
git-svn-id: trunk@18213 -
2009-01-08 18:06:52 +00:00
martin
c0109e8c01 Fix RangeCheck, introduced in rev 18190 #12e937579c
git-svn-id: trunk@18196 -
2009-01-07 18:54:51 +00:00
paul
12e937579c win32: use better approach to fix MeasureText for bitbtn
git-svn-id: trunk@18190 -
2009-01-07 15:07:07 +00:00
paul
ae9d552d60 win32: fix MeasureText for use with custom drawn controls (bug #0012934)
git-svn-id: trunk@18189 -
2009-01-07 15:01:05 +00:00
paul
75f25dfbab win32: don't add tab is Notebook.ShowTabs = False (bug #0012775)
git-svn-id: trunk@18183 -
2009-01-07 09:27:42 +00:00
paul
e65435e6ab win32: switch tabsheets even if pagecontrol is placed on another controls (bug #0012931)
git-svn-id: trunk@18182 -
2009-01-07 09:14:18 +00:00
paul
0bdc86d766 win32: fix glyph is not centered in TBitBtn when Caption is empty (by Luiz Americo, bug #0012930)
git-svn-id: trunk@18181 -
2009-01-07 08:06:29 +00:00
paul
aa6305c562 lcl: implement TEdit.Alignment (patch of Zeljan with small mine modifications)
git-svn-id: trunk@18139 -
2009-01-05 18:22:41 +00:00
vincents
e1ea4a30d9 win32 interface: create widestring edit for TSpinEdit
git-svn-id: trunk@18131 -
2009-01-05 10:59:35 +00:00
paul
a5a865fedc win32: fix non unicode version compilation
git-svn-id: trunk@18130 -
2009-01-05 10:33:02 +00:00
paul
b2de706c04 win32: convert StrCaption, WindowTitle to String from PChar
git-svn-id: trunk@18127 -
2009-01-05 10:21:14 +00:00
paul
3657fbfe4f lcl: retrieve font handle from the window handle, don't retrieve it from the LCL font when we want to measure text size of a control (bug #0012857)
git-svn-id: trunk@18079 -
2009-01-03 16:23:13 +00:00
paul
4543ee3e94 win32: better autosize checkbox (bug #0012857)
git-svn-id: trunk@18031 -
2009-01-02 07:48:21 +00:00
paul
cd79a420be win32: don't fire Wheel events for disabled windows (bug #0012803)
git-svn-id: trunk@18019 -
2009-01-01 19:17:29 +00:00
paul
c0bf8bbc48 win32: repair focus rectangle for themed windows (bug #0012885)
git-svn-id: trunk@18004 -
2008-12-31 09:06:18 +00:00
paul
3659841c55 lcl: disable docking at the design time (#0012772)
git-svn-id: trunk@17776 -
2008-12-10 01:56:37 +00:00
paul
4bd4fa8fb0 win32: apply patch of Martin Friebe which allows triple and quad-mouse-click action for windows (only for left mouse button though) #0012767
git-svn-id: trunk@17742 -
2008-12-09 05:57:18 +00:00
paul
9e6ad52bfa lcl: force treeview to reset scrollbar info after window recreation (#0012761)
win32: redraw scrollbars also if themes are not used but available (xp application without manifest)

git-svn-id: trunk@17722 -
2008-12-08 07:58:31 +00:00
paul
7fad68ae28 lcl: don't return incorrent ItemIndex (valid values are from -1 to Count - 1)
git-svn-id: trunk@17628 -
2008-11-29 10:41:48 +00:00
paul
efe9d531c3 widgetset: make WS classes method explicitly published
win32: fix WS classes. move methods to published sections

git-svn-id: trunk@17576 -
2008-11-25 02:29:28 +00:00
paul
6e2e2c1ff2 lcl: update visibility of methods to prevent compiler warnings
- move KeyDown, KeyUp, DoMouseWheelDown, DoMouseWheelUp, ColorIsStored, Paint, and other misc methods from public to protected
  - move some descendants methods from lower visibility to higher
  - fix use of protected KeyDown, Paint inside few ide units

git-svn-id: trunk@17564 -
2008-11-24 08:15:23 +00:00
marc
c8855d51da + Added flags to allow TLazIntfImage initialize description in creation
* replaced existing calls to create TLazIntfImage without description since it is set later (default works too, but might change).
* Enabled palette support for descriptions without palette

git-svn-id: trunk@17407 -
2008-11-16 15:27:37 +00:00
paul
2c2126066b win32: fix range check error in TWin32ListStringList.GetObject
git-svn-id: trunk@17371 -
2008-11-13 14:56:45 +00:00
paul
7cf7828c20 win32: fix window scrollbar drawing under xp - sometimes they look unthemed (#0011872)
git-svn-id: trunk@17363 -
2008-11-13 02:12:18 +00:00
paul
b36d20730f lcl:
- add TColorBox.CustomColors property (as delphi has)
  - populate TColorBox.CustomColors with standard + extended colors
  - add function to extract ColorIndex and ColorValue from CustomColors list

win32: 
  - split TWin32WSColorBox code between CreateHandle, FreeHandle and ShowModal
  - use TColorBox.CustomColors to populate win32 colorbox custom colors (todo for qt, gtk2, carbon?)

git-svn-id: trunk@17337 -
2008-11-11 10:39:22 +00:00
paul
5914e66d5e win32, default: return details size for tree sign
git-svn-id: trunk@17235 -
2008-11-05 10:06:56 +00:00
paul
5a32fcc6f6 win32: request frame invalidation after every icon change operation
git-svn-id: trunk@17228 -
2008-11-05 02:42:32 +00:00
tombo
c5e876817b LCL:
* SetScrollInfo - return new position
* SetScrollPos - return previous position

git-svn-id: trunk@17173 -
2008-11-01 17:24:46 +00:00
paul
a30bd377b0 win32: cleanup
git-svn-id: trunk@17165 -
2008-10-31 09:59:48 +00:00
vincents
ad6608e616 win32 interface: workaround fpc bug that CommDlg_OpenSave_GetSpecW uses SendMessage instead of SendMessageW, fixes largely issue #12479
git-svn-id: trunk@17142 -
2008-10-28 13:27:47 +00:00
vincents
13e3cd5e97 win32 interface: implement ListView.BeginUpdate and EndUpdate from JoshyFun (issue #12503)
git-svn-id: trunk@17138 -
2008-10-28 08:07:18 +00:00
paul
592d0ebfd3 win64: fix compilation
git-svn-id: trunk@17135 -
2008-10-27 07:43:35 +00:00
paul
3461ad0f49 lcl: start ExtCreatePen function to allow pen creation with different cap style, join style, and pattern
qt: start implementation of ExtCreatePen

git-svn-id: trunk@17119 -
2008-10-24 09:29:53 +00:00
vincents
fb9d5e8065 win32 interface: fixed range check error
git-svn-id: trunk@17113 -
2008-10-23 22:05:22 +00:00
paul
48793b3843 win32: also handle correct when themes are not enabled
git-svn-id: trunk@17092 -
2008-10-22 05:21:41 +00:00
paul
1628077528 lcl: undo CN_NOTIFY overriding for trackbar
win32: 
  - handle CN_NOTIFY in the default handler and redirect it to the window proc in case of trackbar
  - use ThemeManager code to draw themed trackbar

git-svn-id: trunk@17091 -
2008-10-22 05:12:23 +00:00
paul
112beff0fb win32: don't override TrackBar WM_NOTIFY handler result in the lcl default handler (trackbar bg is transparent now)
git-svn-id: trunk@17090 -
2008-10-22 03:39:47 +00:00
paul
9dc2198062 lcl, win32: fix form.icon handling (#0012395)
git-svn-id: trunk@17077 -
2008-10-21 03:38:09 +00:00
paul
3de03aa7ba lcl, win32: fix icon for dialog forms (#0012395)
git-svn-id: trunk@17031 -
2008-10-17 08:58:52 +00:00
paul
06924525ea lcl, widgetsets: reimplement form, application icon setting to allow set 2 icons: small and big (#0012401)
git-svn-id: trunk@17015 -
2008-10-16 03:23:40 +00:00
paul
294989aa80 win32: fix OpenDialog.FileName retrieving when FileName already contains path (#0012364)
git-svn-id: trunk@16977 -
2008-10-12 08:54:29 +00:00
paul
3c20093934 win32: fix range check error in open/save dialogs code (#0012336)
git-svn-id: trunk@16954 -
2008-10-11 08:11:01 +00:00
micha
54fd9e1a03 * win32: fix waiting for event handles
git-svn-id: trunk@16951 -
2008-10-10 20:48:40 +00:00
vincents
6361b90a57 win32 interface: don't change spinedit, if readonly=true (issue #12306)
git-svn-id: trunk@16892 -
2008-10-06 10:44:30 +00:00
paul
677ae24396 win32: add preview control to the savePictureDialog
git-svn-id: trunk@16874 -
2008-10-04 16:27:54 +00:00
paul
f5dd112266 win32: add some constants to .rc file so windres can compile it, remove .res file
git-svn-id: trunk@16873 -
2008-10-04 16:25:26 +00:00
paul
de54a967cd win32: set preview panel color to clBtnFace in OpenPictureDialog (#0012286)
git-svn-id: trunk@16872 -
2008-10-04 13:57:56 +00:00
paul
26cc18cb0c win32: call DoShow when file dialog is shown
git-svn-id: trunk@16871 -
2008-10-04 13:39:01 +00:00
paul
862affa6fe win32: fix incorrect filename return in TSaveDialog
git-svn-id: trunk@16870 -
2008-10-04 13:25:49 +00:00
paul
f43da932e4 win32: insert preview panel to PictureOpenDialog
git-svn-id: trunk@16856 -
2008-10-03 03:19:01 +00:00
tombo
e365c98cca LCL: renamed TWidgetSet.LCLCapabilities to GetLCLCapabilities
- added new capabilities

git-svn-id: trunk@16849 -
2008-10-02 12:51:37 +00:00
paul
771a7ee01f win32: simplify FileDialog handling:
- always use our own buffer for file names
  - invoke DoSelectionChange on file selection changed
  - update dialog Files, FileName props on selection change

git-svn-id: trunk@16845 -
2008-10-02 10:01:49 +00:00
paul
c9899ebca4 lcl, widgetsets: hope fix misuse of TScrollBar.PageSize (#0011788 based on ideas of Sergey Bulba)
git-svn-id: trunk@16835 -
2008-10-02 01:47:29 +00:00
paul
898d951e30 lcl: introduce TListBox.GetItemAtXY, TListBox.GetItemAtY exists for compatibility with existing projects
interfaces: replace TWSCustomListBox.GetIndexAtY by TWSCustomListBox.GetIndexAtXY
win32, wince, qt, carbon: use X coord too
(based on patch of Yuriy Yeroshkin, #0011923)

git-svn-id: trunk@16801 -
2008-09-30 02:15:17 +00:00