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
mattias
b36aa016ec
LCL: TCustomForm: using Application.BidiMode
...
git-svn-id: trunk@25512 -
2010-05-19 11:10:26 +00:00
zeljko
2396c08449
LCL: update form default position if TPosition changed manually during runtime. fixes #16495
...
git-svn-id: trunk@25481 -
2010-05-17 12:52:36 +00:00
zeljko
2773d06487
Qt,Gtk2: added minimize/restore ability to get consistent behaviour on all platforms. Patch by Flavio Etrusco modified by me for qt. fixes #13919
...
git-svn-id: trunk@25407 -
2010-05-14 19:12:02 +00:00
mattias
b9fa24bd7d
LCL: TCustomForm.SetLastFocusedControl check for nil
...
git-svn-id: trunk@25363 -
2010-05-13 13:23:39 +00:00
mattias
e5248e7e7a
LCL: TCustomForm.SetFocusedControl: check if lastfocusedcontrol was deleted
...
git-svn-id: trunk@25356 -
2010-05-13 12:07:49 +00:00
mattias
6ceab75bed
LCL: clear TCustomForm.FLastFocusedControl when it is destroyed
...
git-svn-id: trunk@25353 -
2010-05-13 11:01:53 +00:00
paul
c7ce02bc66
lcl: don't explicitly set ActiveControl in TCustomForm LM_SETFOCUS handler
...
git-svn-id: trunk@25311 -
2010-05-11 02:48:56 +00:00
paul
47bd1163f8
lcl: calling of CM_EXIT can cause other focus changes in the user code, so we need to change FLastFocusedControl before the call (based on demo of Zeljan)
...
git-svn-id: trunk@25309 -
2010-05-11 00:43:11 +00:00
paul
b7e13f130d
lcl: remove unneeded SetFocusedForm argument
...
git-svn-id: trunk@25301 -
2010-05-10 14:32:45 +00:00
paul
0868cb6177
lcl: redo cm_activate, cm_deactivate for showmodal - not it works consistently on win32, qt and gtk2
...
git-svn-id: trunk@25300 -
2010-05-10 14:31:29 +00:00
paul
54cd9134f0
lcl: don't look at fsModal formstate in SetFocusedForm, use an argument for modal behavior detection for the case if other forms are opened after modal form open
...
git-svn-id: trunk@25297 -
2010-05-10 13:32:31 +00:00
paul
581c468507
lcl: send CM_ACTIVATE, CM_DEACTIVATE for modal forms
...
git-svn-id: trunk@25294 -
2010-05-10 13:21:47 +00:00
paul
3e6c6b0ea4
lcl: cleanup
...
git-svn-id: trunk@25292 -
2010-05-10 10:06:51 +00:00
paul
a12d403ae0
lcl: don't call Activate, Deactivate for TForm on WM_ACTIVATE message - since it also means activate/deactivate on application activation/deactivation. Use Screen.FocusedForm to track form activation/deactivation. Send CM_ACTIVATE, CM_DEACTIVATE instead of direct event calling. (this is VCL compatible and fixes issue #0015054 )
...
git-svn-id: trunk@25274 -
2010-05-09 13:28:15 +00:00
paul
9f0a3a69df
lcl: don't use SendMessage(Handle) - use perform to prevent handle creation
...
git-svn-id: trunk@25257 -
2010-05-08 16:36:59 +00:00
paul
0254875222
lcl: fix OnEnter/OnExit handling:
...
- don't assume DoEnter, DoExit are the same as WM_SETFOCUS, WM_KILLFOCUS - Enter must happen for all controls from the current focused control to the new focused control on the form, Exit must happen from the focused control to the first parent of the new focused control. If another focusing event happens during this look we need to stop the loop and return False state for SetFocusedControl method (this is VCL compatible behavior)
- handle enter, exit code in SetFocusedControl because this is the only place where form handles focus for child controls
- send CM_ENTER, CM_EXIT messages instead of direct call of DoEnter, DoExit methods
- reimplement SaveFocusState, RestoreFocusState - save restore the last global focused control
(fixes issue #0014041 )
git-svn-id: trunk@25255 -
2010-05-08 16:18:40 +00:00
paul
622f0ba392
lcl: fix GetControlClassDefaultSize - use TSize instead of TPoint
...
git-svn-id: trunk@25204 -
2010-05-05 07:59:04 +00:00
mattias
cf55952b42
removed OldAutoSize
...
git-svn-id: trunk@25190 -
2010-05-04 19:16:18 +00:00
paul
c3564e26d8
lcl: TTrackBar.OnChange should be called after Position change in code, add Changed method for VCL compatibility, fix qt, gtk2 to skip message sending in case of position change through code to prevent double calling of the message (issue #0014545 )
...
git-svn-id: trunk@25161 -
2010-05-04 04:29:27 +00:00
mattias
2abe1b3ff4
LCL: added TScreen handler for form Visible changed
...
git-svn-id: trunk@25097 -
2010-05-01 13:48:24 +00:00
mattias
02e09dd031
gtk2 intf: do not maximize designing forms
...
git-svn-id: trunk@25068 -
2010-04-29 16:50:24 +00:00
mattias
af904f7c5a
LCL: TCustomForm.WMWindowPosChanged, gtk intf: do not send WMWindowPosChanged because of strange side effects
...
git-svn-id: trunk@24979 -
2010-04-26 18:12:48 +00:00
mattias
3fddde242b
LCL: if WMWindowPosChanged message does not come from interface, ignore
...
git-svn-id: trunk@24977 -
2010-04-26 17:36:19 +00:00
mattias
496bc473da
LCL: TDockPerformer.DragStop: started simple move
...
git-svn-id: trunk@24938 -
2010-04-25 21:12:36 +00:00
mattias
612e69dc4a
LCL: fixed crash when poMainFormCenter if there is no mainform
...
git-svn-id: trunk@24781 -
2010-04-21 07:35:51 +00:00
mattias
81a5b44f7b
LCL: optimized TCustomForm.UpdateShowInTaskBar
...
git-svn-id: trunk@24750 -
2010-04-20 18:22:49 +00:00
mattias
49948f42f1
LCL: TCustomForm: autosize/updateshowing is now delayed till AfterConstruction, including DoCreate, bug #16290
...
git-svn-id: trunk@24700 -
2010-04-18 17:31:58 +00:00
zeljko
6ac3997a9f
LCL: fixed bug where MDIChild form can be moved over main menu or task bar, introduced in r24682 #708e6de6d9
...
git-svn-id: trunk@24693 -
2010-04-18 12:36:02 +00:00
mattias
708e6de6d9
LCL: implemented Application.TaskBarBehavior, bug #13537
...
git-svn-id: trunk@24682 -
2010-04-17 19:28:43 +00:00
zeljko
724575d244
LCL: TCustomForm DoCreate moved to AfterConstruction to be fully delphi compatibile. fixes #14120
...
git-svn-id: trunk@24525 -
2010-04-08 18:25:05 +00:00
zeljko
17c1015f20
LCL: fixed broken compilation with -dOldAutoSize.
...
git-svn-id: trunk@24521 -
2010-04-08 17:28:55 +00:00
mattias
5c3e8a2458
LCL: moved form positon code to TCustomForm.MoveToDefaultPosition, positioning form before sending bounds to interface
...
git-svn-id: trunk@24498 -
2010-04-08 11:02:45 +00:00
mattias
04c7c63cf7
LCL: TWinControl.WndProc LM_SETFOCUS: check csDestroying for form
...
git-svn-id: trunk@24421 -
2010-04-04 23:52:22 +00:00
mattias
408eb18c12
LCL: TCustomForm.CreateNew: delay autosize
...
git-svn-id: trunk@24420 -
2010-04-04 23:46:56 +00:00
mattias
7e0680c59c
LCL: TCustomForm.UpdateShowing: check csDestroying
...
git-svn-id: trunk@24417 -
2010-04-04 23:28:32 +00:00
mattias
7c4cb1efcb
LCL: DoAllAutoSize: check handleallocated for childs, needed after SetParent
...
git-svn-id: trunk@24407 -
2010-04-04 18:31:32 +00:00
mattias
d69055d322
LCL: fixed some nil checks
...
git-svn-id: trunk@24397 -
2010-04-04 14:37:47 +00:00
mattias
b1b4157851
LCL: disabled exception for handle creation during loading, needed by glscene
...
git-svn-id: trunk@24382 -
2010-04-03 19:51:51 +00:00
zeljko
dd97a09f46
LCL: TCustomForm.ShowModal() use LCLIntf.IsWindow(ActiveWindow) instead ActiveWindow <> 0 for check, since ActiveWindow can dissappear in the meantime.
...
git-svn-id: trunk@24286 -
2010-03-29 13:01:33 +00:00
mattias
9ec360a2e8
LCL: newautosize: AutoSizeDelayed ignore HandleAllocated, UpdateControlState: call AdjustSize instead of UpdateShowing to delay showing after the bounds have been computed
...
git-svn-id: trunk@24256 -
2010-03-27 22:58:28 +00:00
mattias
bf3ee47952
lcl: TCustomForm.SetRestoredBounds: reduce double calls
...
git-svn-id: trunk@24097 -
2010-03-19 12:26:43 +00:00
mattias
c70222fe4e
LCL: debugging for disableautosizing
...
git-svn-id: trunk@24096 -
2010-03-19 11:24:42 +00:00
mattias
e7b5a78d0f
LCL: added debugging for Disable/EnableAutoSizing
...
git-svn-id: trunk@24094 -
2010-03-19 11:11:47 +00:00
mattias
bf4387a62b
LCL: improved debugging, TScrollingWinControl.CreateWnd: reduce autosizing overhead
...
git-svn-id: trunk@24068 -
2010-03-17 15:46:11 +00:00
mattias
f736a0b704
LCL: autosize: removed autosizecanstart
...
git-svn-id: trunk@24042 -
2010-03-16 15:02:05 +00:00
paul
0be135a22d
lcl: update FocusedForm when new form control get focus
...
git-svn-id: trunk@24029 -
2010-03-16 09:11:33 +00:00
paul
770d3e2d9d
lcl: fix new autosize to work with ParentWindow too
...
git-svn-id: trunk@24003 -
2010-03-15 03:24:29 +00:00
paul
0c1c7b1a6c
lcl, gtk, gtk2: fix some ParentWindow problems when assigned to TCustomForm
...
git-svn-id: trunk@23984 -
2010-03-14 07:29:50 +00:00
mattias
2c4f1b0959
LCL: TCustomForm: activate focus after showing
...
git-svn-id: trunk@23956 -
2010-03-11 21:29:18 +00:00