Commit Graph

102 Commits

Author SHA1 Message Date
paul
0ac2f35d4e lcl: move WN_NCHITTEST handling of THintWindow into LCL to allow overriding (issue #0019594)
git-svn-id: trunk@31468 -
2011-06-30 06:30:12 +00:00
paul
b11b6f938a win32: don't recreate window or perform any action when form style changes from fsStayOnTop to fsSystemStayOnTop and vice versa
git-svn-id: trunk@30229 -
2011-04-07 02:40:45 +00:00
paul
f37b868f3a win32: a trial to correct application focus lose when local stay on top windows are involved (issue #0018494)
git-svn-id: trunk@30228 -
2011-04-07 02:30:35 +00:00
paul
6c7c35c17b lcl: formatting
git-svn-id: trunk@30227 -
2011-04-07 00:35:47 +00:00
paul
902d2755bb win32: cleanup
git-svn-id: trunk@30195 -
2011-04-05 02:42:36 +00:00
paul
318a6d8d6f win32: don't activate forms when we only need to change z-order (issue #0018494)
git-svn-id: trunk@30166 -
2011-04-04 05:49:56 +00:00
paul
c0ca12b0b3 win32: fix compilation
git-svn-id: trunk@30133 -
2011-04-02 16:14:06 +00:00
paul
e9016d46d3 win32: cleanup
git-svn-id: trunk@30132 -
2011-04-02 15:42:29 +00:00
paul
eb193faaf6 win32: move handling of hint window messages to a dedicate window proc
git-svn-id: trunk@30059 -
2011-03-29 05:11:02 +00:00
paul
c7ac358e17 win32: move BorderStyleToWin32Flags, BorderStyleToWin32FlagsEx to win32wsforms, fix form style for bsNone with Parent <> nil or ParentWindow <> 0 (don't set WS_POPUP) - fixes issue #0019012
git-svn-id: trunk@30058 -
2011-03-29 04:57:29 +00:00
paul
8387ee8302 win32: don't clear WS_CHILD and other unrelated to border style/border icon flags on form handle creation, fix handling of WS_CHILD forms (can be either parent <> nil or ParentWindow <> 0)
git-svn-id: trunk@30046 -
2011-03-28 07:12:19 +00:00
paul
1106bb17a4 win32: reduce warnings and hints
git-svn-id: trunk@30015 -
2011-03-25 09:04:25 +00:00
paul
0373c8de84 lcl: make ScrollBy more delphi compatible:
- invert direction of scroll
  - add TWinControl.ScrollBy to scroll inner controls
  - scroll controls in TScrollingWinControl (fixes issue #0016721)

git-svn-id: trunk@29944 -
2011-03-21 02:41:43 +00:00
paul
412dc4ecc9 win32: also put Icon flags into AdjustWindowRectEx calls, cleanup
git-svn-id: trunk@29757 -
2011-03-09 04:06:03 +00:00
paul
bc0c4be8ea win32: cleanup
git-svn-id: trunk@29279 -
2011-02-01 05:41:35 +00:00
paul
dca336b627 win32: start work on implementation of MainFormOnTaskBar
git-svn-id: trunk@29266 -
2011-01-31 09:07:31 +00:00
paul
511b386b50 lcl: set PopupMode to pmAuto to fix problems with showing input/message/question dialogs to users from StayOnTop forms
win32: fix ShowModal of child forms which has WS_EX_TOPMOST parent

git-svn-id: trunk@28200 -
2010-11-13 09:12:04 +00:00
paul
520d367826 lcl, win32: fix showing of windows which needs to be shown on taskbar (bug #0017561)
git-svn-id: trunk@27714 -
2010-10-15 06:45:36 +00:00
mattias
369aa3055c fixed typo dont
git-svn-id: trunk@27304 -
2010-09-11 14:05:21 +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
paul
d53a9b30fa win32: skip AlphaBlend in design time (issue #0017080)
git-svn-id: trunk@26975 -
2010-08-02 09:03:05 +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
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
sekelsenmat
45b34f356d Doesn't activate StayOnTop if designing under win32
git-svn-id: trunk@25559 -
2010-05-21 05:29:42 +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
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
paul
db1ba90fac formatting
git-svn-id: trunk@25137 -
2010-05-02 16:50:58 +00:00
paul
68570673c2 win32: split common ShowHide method into different ws classes
git-svn-id: trunk@25009 -
2010-04-27 15:17:09 +00:00
mattias
5ee092816e win32 intf: TWin32WSCustomForm.SetShowInTaskbar check if something changes
git-svn-id: trunk@24751 -
2010-04-20 18:27:26 +00:00
paul
a20e1dcaac lcl: change use of CreateParams:
- move TForm.PopupParent handling to CreateParams (it only chooses a right Parent handle)
  - check also ParentWindow property when setting WndParent in CreateParams
win32: use TCreateParams WndParent property for CreateWindow

git-svn-id: trunk@23840 -
2010-03-05 08:14:49 +00:00
paul
1f6c52fe1a lcl, win32: start implementation of TCustomForm.PopupMode, TCustomForm.PopupParent
git-svn-id: trunk@23723 -
2010-02-17 06:04:19 +00:00
paul
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
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
2d43d1988c win32: support biHelp BorderIcon
git-svn-id: trunk@20815 -
2009-07-09 09:04:29 +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
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
78cb9d1a20 win32: implement TWin32WSCustomForm.SetFormStyle
git-svn-id: trunk@20579 -
2009-06-11 01:23:02 +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
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
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
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
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