Commit Graph

608 Commits

Author SHA1 Message Date
paul
fd9e3c084e lcl: properly release control resources on TWinControl.DestroyWnd:
- notify child controls (only TControl, not TWinControl) before parent handle destruction to perform appropriate preparations inside controls
  - release canvas handle of TGraphicControl when before parent handle destruction
(fixes issue #0014152)

git-svn-id: trunk@20874 -
2009-07-17 02:44:31 +00:00
paul
bc55fefead lcl: modify TWinControl.FindChildControl to search also for TControl descendants (not only TWinControl. by report from Russian forum)
git-svn-id: trunk@20705 -
2009-06-22 06:54:28 +00:00
paul
d7dd2de4ce lcl: formatting
git-svn-id: trunk@20676 -
2009-06-20 08:36:07 +00:00
paul
ef2791cdc5 lcl: PositionDockRect only when we move it
git-svn-id: trunk@20629 -
2009-06-15 02:58:12 +00:00
mattias
ad7de21ad9 LCL: ChildSizing.Layout align right only when BidiMode=bdRightToLeft
git-svn-id: trunk@20618 -
2009-06-13 14:27:33 +00:00
paul
bdc5abc1da lcl: replace (csReadingState in AControl.ControlState) by (csReading in AControl.ComponentState) since we don't support csReadingState yet
git-svn-id: trunk@20612 -
2009-06-13 08:58:15 +00:00
mattias
356a3e484e LCL: fixed BidiMode for ChildSizing.Layout
git-svn-id: trunk@20558 -
2009-06-09 17:45:21 +00:00
mattias
6da7ac1398 LCL: implemented BidiMode for ChildSizing.Layout
git-svn-id: trunk@20557 -
2009-06-09 17:39:04 +00:00
paul
a9c33794ae lcl: cleanup
git-svn-id: trunk@20421 -
2009-06-05 08:02:01 +00:00
mattias
2acd7d65c3 LCL: autosize: use for centered controls at least the preferred size
git-svn-id: trunk@20322 -
2009-05-31 08:06:38 +00:00
mattias
15e759fe74 LCL: autosize: asrCenter: content with one side
git-svn-id: trunk@20321 -
2009-05-31 07:27:09 +00:00
mattias
141931d775 LCL: AutoSize and childs: using the same algorithm for moving as for resizing
git-svn-id: trunk@20320 -
2009-05-31 06:49:50 +00:00
paul
071f4c60e7 lcl: formatting
git-svn-id: trunk@20093 -
2009-05-21 08:09:32 +00:00
paul
1687773f6d lcl: TCustomForm.SetFocusedControl returned wrong result in some cases, csFocusing flag was used in LCL but was not nowhere set
git-svn-id: trunk@20077 -
2009-05-20 12:07:24 +00:00
paul
bdda69cd5d lcl: pass LM_SIZE, LM_MOVE messages to DockManager, handle them for LazDockTree (now dock header looks fine on dock zone resize)
git-svn-id: trunk@20073 -
2009-05-20 09:05:30 +00:00
paul
f22d9341c2 lcl: DockManager: handle CM_VISIBLECHANGED
git-svn-id: trunk@20065 -
2009-05-20 04:38:24 +00:00
paul
a91f4faee0 lcl: forward CM_TEXTCHANGED notifications to the DockManager
git-svn-id: trunk@20061 -
2009-05-20 03:07:45 +00:00
paul
7f29518b52 lcl: add Sender argument to TDockManager.MessageHandler
git-svn-id: trunk@20059 -
2009-05-20 02:22:52 +00:00
paul
fe8960bd81 lcl: rename TDockManager.MouseMessage to TDockManager.MessageHandler to allow handling of more messages
git-svn-id: trunk@20058 -
2009-05-20 02:19:28 +00:00
paul
3e258b4ef8 lcl: request Font and Color update after DestroyWnd call to properly restore them after new Handle creation (fixes issue #0011935)
git-svn-id: trunk@19936 -
2009-05-12 05:23:55 +00:00
paul
4a1309f268 lcl: formatting
git-svn-id: trunk@19704 -
2009-04-30 08:04:12 +00:00
paul
39e9bea31c lcl: don't lose Perform result in IsControlMouseMSG
git-svn-id: trunk@19640 -
2009-04-27 02:07:07 +00:00
paul
6af0fb9bc9 lcl: fix asterisk position in the copyright comment
git-svn-id: trunk@19477 -
2009-04-18 04:03:13 +00:00
mattias
a4a1f193d8 LCL: fixed computing preferred size of client height - from Marc
git-svn-id: trunk@19467 -
2009-04-17 10:39:49 +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
1051a764db lcl: formatting
git-svn-id: trunk@18741 -
2009-02-18 03:43:39 +00:00
paul
a3b8501d07 lcl: don't corrupt key handling by drag manager if not needed (bug #0012497)
git-svn-id: trunk@18667 -
2009-02-13 16:34:34 +00:00
paul
2ac2054abd lcl: don't disable mouse handlers calling when dragging (bug #0012554)
git-svn-id: trunk@18666 -
2009-02-13 16:20:17 +00:00
sekelsenmat
ddf3663f55 Adds a setShape for regions in TWinControl
git-svn-id: trunk@18665 -
2009-02-13 15:35:02 +00:00
paul
e14c92e885 lcl: apply few comments related to docking from Hans-Peter Diettrich (issue #0013118)
git-svn-id: trunk@18625 -
2009-02-10 02:01:54 +00:00
paul
5d150ea462 lcl: use standard exception when we parent is needed but is not assigned
git-svn-id: trunk@18610 -
2009-02-09 07:17:55 +00:00
mattias
7571caa3da LCL: increase LCLRefCount during IntfUTF8KeyPress
git-svn-id: trunk@18579 -
2009-02-05 12:29:15 +00:00
paul
80e3207944 fix gtk autosize loop
git-svn-id: trunk@18574 -
2009-02-05 02:55:49 +00:00
paul
702dc11c4c lcl: apply patch of Hans-Peter Diettrich (issue #0013034) - Missing dock manager notifications (with small my changes)
git-svn-id: trunk@18573 -
2009-02-05 02:06:26 +00:00
paul
81fe22f744 lcl: formatting
git-svn-id: trunk@18549 -
2009-02-04 04:00:16 +00:00
paul
68603b956b lcl: remove Crl3D, ParentCtl3D properties, register them as properties to skip
git-svn-id: trunk@18517 -
2009-01-31 12:04:03 +00:00
paul
748f663981 lcl: BorderWidth
- TWinControl: send CM_BORDERCHANGED when borderwidth property is changed
  - TPanel: move DoAdjustClientRectCache to the TWinControl CM_BORDERCHANGED handler; use that handler to handle bevel changes; use TWinControl BorderWidth property instead of own
  - implement TForm.BorderWidth (part of issue #0001182)
  

git-svn-id: trunk@18513 -
2009-01-31 11:27:20 +00:00
paul
9492070e1e lcl: clear FAdjustClientRectRealized on handle destroy (fixes Qt autosize problems in IDE)
git-svn-id: trunk@18506 -
2009-01-30 17:07:22 +00:00
paul
983e3633ec lcl: fix some autosize problems
git-svn-id: trunk@18501 -
2009-01-30 07:44:06 +00:00
paul
d43decb3b2 lcl: mark clientrect as not valid after window handle creation (fixes bug #0012802)
git-svn-id: trunk@18487 -
2009-01-29 08:11:17 +00:00
paul
0a7dc1d469 lcl: DoRemainingKeyUp must return False it LCL does not handle that key
git-svn-id: trunk@18480 -
2009-01-29 03:28:36 +00:00
paul
a30f7b2db3 lcl: fix FindNextControl and GetTabOrderList for the case when CheckTabStop = False, simplify PerformTab
git-svn-id: trunk@18442 -
2009-01-25 15:18:31 +00:00
paul
485b2b9169 lcl: if font has changed and TWinControl.AutoSize = True then adjust control size (part of bug #0009445)
git-svn-id: trunk@18414 -
2009-01-24 16:31:16 +00:00
paul
5cb7294343 lcl: if we erase a control background we need to return 1 as a message result (at moment at least in windows we erase background 2 times - one by lcl and second by windows. as result our bg color is cleared by windows)
git-svn-id: trunk@18399 -
2009-01-23 18:07:17 +00:00
marc
7572b4f5aa * Swapped Control1 and 2 so CustomAlignInsertBefore is compatible with Delphi
git-svn-id: trunk@18255 -
2009-01-11 17:20:19 +00:00
marc
1fbe62ce7f * Missing custom align events
git-svn-id: trunk@18217 -
2009-01-08 23:22:24 +00:00
marc
fd3ab04151 + Added missing custom align methods (VCL compatebility)
git-svn-id: trunk@18203 -
2009-01-08 00:43:38 +00:00
paul
ff9a4a9b4f lcl: fix FindNextControl when we need next control from nil and parent has only 1 control in list
git-svn-id: trunk@18158 -
2009-01-06 10:07:15 +00:00
paul
9e0691d323 lcl: fix OnExit event from Zeljan
git-svn-id: trunk@17473 -
2008-11-20 13:13:17 +00:00
mattias
d778c5fb8e gtk2: fixed reading gtk width/height by manually updating allocation.width/height
git-svn-id: trunk@17449 -
2008-11-19 17:12:26 +00:00