Commit Graph

475 Commits

Author SHA1 Message Date
zeljko
c86392f301 LCL: added ASystemTopAlso bool param to TApplication.RemoveStayOnTop & TApplication.RestoreStayOnTop, WS.AppRemoveStayOnTop & WS.AppRestoreStayOnTop, because TApplication.HandleException should normalize all stayontop (app, sys), but app activate/deactivate only fsStayOnTop.
git-svn-id: trunk@25535 -
2010-05-20 10:54:19 +00:00
mattias
b36aa016ec LCL: TCustomForm: using Application.BidiMode
git-svn-id: trunk@25512 -
2010-05-19 11:10:26 +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
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
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
mattias
2abe1b3ff4 LCL: added TScreen handler for form Visible changed
git-svn-id: trunk@25097 -
2010-05-01 13:48:24 +00:00
sekelsenmat
4ec26a9c40 Adds support to FPC 2.2.0 for Windows CE
git-svn-id: trunk@25090 -
2010-05-01 10:59:17 +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
81a5b44f7b LCL: optimized TCustomForm.UpdateShowInTaskBar
git-svn-id: trunk@24750 -
2010-04-20 18:22:49 +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
3166de2bc2 LCL: TApplication: replaced TList with TFPList
git-svn-id: trunk@24413 -
2010-04-04 23:04:37 +00:00
paul
2dfb22d93e lcl: apply patch of Juha Manninen which registers more VCL compatibility properties which LCL should skip while reading
git-svn-id: trunk@24327 -
2010-04-01 00:49:45 +00:00
paul
c1327ba16e lcl: publish TForm.Anchors
git-svn-id: trunk@24296 -
2010-03-30 11:23:33 +00:00
mattias
f736a0b704 LCL: autosize: removed autosizecanstart
git-svn-id: trunk@24042 -
2010-03-16 15:02:05 +00:00
paul
e513f0292c lcl: rework LM_CONTEXTPOPUP - recursively call it on right mouse button up (issue #0015709)
git-svn-id: trunk@24005 -
2010-03-15 07:56:44 +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
b2d37865b0 lcl: call Application.OnDeactivate when widgetset interface asking LCL about this
git-svn-id: trunk@23884 -
2010-03-09 08:13:30 +00:00
dmitry
5fe460904f lcl: added support for mouse events and ssMeta modifier. ssMeta present in ShiftState on Cmd (Win) key pressed
git-svn-id: trunk@23815 -
2010-03-01 23:06:56 +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
3f076b14b9 lcl: implement TControlScrollBar.Tracking for win32, qt and gtk2 (issue #0007981)
git-svn-id: trunk@23596 -
2010-01-29 17:32:40 +00:00
paul
43def91dbc lcl: implement Application OnModalBegin, OnModalEnd, ModalLevel, ModalStarted and ModalFinished based on patch of Zeljan (issue #0015616)
git-svn-id: trunk@23584 -
2010-01-29 03:08:31 +00:00
paul
c135622fe5 lcl: apply design-time alphablending on form create
git-svn-id: trunk@23569 -
2010-01-27 08:51:05 +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
mattias
328ce2a7d3 LCL: fixed ReleaseComponent during ProcessAsyncCall
git-svn-id: trunk@23272 -
2009-12-25 11:52:13 +00:00
mattias
f358340f56 IDEIntf+LCL: TGetDesignerFormEvent using TPersistent instead of TComponent
git-svn-id: trunk@22907 -
2009-12-01 20:33:50 +00:00
mattias
53ede9fe10 LCL: fixed TApplication.ReleaseComponent when components in list are freed by other means
git-svn-id: trunk@22905 -
2009-12-01 17:36:53 +00:00
mattias
7a89ac6e1f LCL: update actionlists of nested frames, bug #15229
git-svn-id: trunk@22895 -
2009-12-01 12:56:19 +00:00
paul
ce5d8e99d8 lcl: minor changes for GetDesignerForm
git-svn-id: trunk@22818 -
2009-11-27 04:17:43 +00:00
mattias
9277fa9e42 lcl: clean up
git-svn-id: trunk@22776 -
2009-11-25 21:48:59 +00:00
sekelsenmat
c15be9e2e1 New fix for bug #15075
git-svn-id: trunk@22775 -
2009-11-25 17:53:24 +00:00
vincents
d2ba61eceb LCL: made TCustomForm.FFormState protected (was private), because it is protected in Delphi (issue #15034)
git-svn-id: trunk@22747 -
2009-11-24 10:38:43 +00:00
paul
6264b25bc3 lcl: remove hint
git-svn-id: trunk@22726 -
2009-11-23 14:59:30 +00:00
sekelsenmat
2774606c92 Introduces the define DEBUG_ALLOW_DUMPBACKTRACE which removes code to dump a backtrace to the console, which crashes WinCE applications. Fixed bug #15075
git-svn-id: trunk@22722 -
2009-11-23 13:51:52 +00:00
paul
ffaf004a69 lcl: set default parameter for TCustomForm.CreateNew as it is delphi compatible and Marco van de Voort requested
git-svn-id: trunk@22720 -
2009-11-23 13:13:30 +00:00
sekelsenmat
63f13ceb9c Rework of the ApplicationType property. atKeyPadDevice should be used instead of atSmartphone now
git-svn-id: trunk@22532 -
2009-11-11 16:58:18 +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
194d1c80e3 lcl: BidiMode:
- notify forms when Application.BidiMode changed
  - use application bidi mode when form get parent bidi mode change notification
  - fix TControl.CMParentBidiModeChanged

git-svn-id: trunk@22022 -
2009-10-04 13:10:48 +00:00
paul
4f58001501 lcl: add BiDi mode support and Alignment for THintWindow (patch by Luiz Americo, issue #0014719)
git-svn-id: trunk@22021 -
2009-10-04 13:00:38 +00:00
paul
5b02eb7f37 lcl: fix TCustomForm.CanFocus return
git-svn-id: trunk@21856 -
2009-09-25 09:28:02 +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