Commit Graph

13351 Commits

Author SHA1 Message Date
paul
c20cf07caf lcl: formatting
git-svn-id: trunk@30287 -
2011-04-14 01:03:20 +00:00
paul
26ede9d979 win32: cleanup win32proc - remove unused code
git-svn-id: trunk@30286 -
2011-04-14 00:33:12 +00:00
paul
10f142445b lcl: Remove RaiseLastOsError dummy proc. It is already implemented by RTL
git-svn-id: trunk@30279 -
2011-04-13 08:37:17 +00:00
paul
fb870600ff win32: get/restore active window before/after windows dialog showing
git-svn-id: trunk@30278 -
2011-04-13 07:10:43 +00:00
paul
c16ebf7b70 lcl: don't always enabled/disable AppWindow and other windows more than once in TScreen.DisableWindows/TScreen.EnableWindows - disable only enabled windows and store their handle instead of their LCL class (fixes issue #0019026)
git-svn-id: trunk@30277 -
2011-04-13 07:09:29 +00:00
juha
87c3945597 LCL: fix comment for TCustomEditButton
git-svn-id: trunk@30271 -
2011-04-12 20:59:45 +00:00
zeljko
d1b2bde9aa Qt: cleanups, removed unused units, removed unreachable code
git-svn-id: trunk@30269 -
2011-04-12 06:33:04 +00:00
paul
9f4bb027ae win32: erase paint buffer on creation
git-svn-id: trunk@30264 -
2011-04-11 01:40:28 +00:00
juha
c84b0737b7 LCL: Clean out unused variables and code.
git-svn-id: trunk@30261 -
2011-04-10 17:07:43 +00:00
juha
4d7d059433 LCL: write a piece of code in a shorter way.
git-svn-id: trunk@30260 -
2011-04-10 17:07:39 +00:00
blikblum
61ba5061f5 gtk2: remove virtual keywords remnant from Gtk/Gtk21 interface split
git-svn-id: trunk@30249 -
2011-04-09 15:13:07 +00:00
blikblum
30af23279d gtk2: don't call FreeAllStyles in AppTerminate. It's called on Destroy
git-svn-id: trunk@30248 -
2011-04-09 14:58:51 +00:00
zeljko
a3d3512da0 Qt: stop signals from qt when deleting an item from list. issue #19127
git-svn-id: trunk@30246 -
2011-04-08 18:05:50 +00:00
zeljko
6b1b1b22d1 Gtk2: respect TCustomForm.ShowInTaskbar in case of modal form.Only when value is stAlways modal form will be visible in taskbar.Moved GtkWindowShowModal() to gtk2proc.
git-svn-id: trunk@30236 -
2011-04-07 13:07:57 +00:00
zeljko
b2602124fe Gtk2: skip taskbar hint for modal forms of type <> GDK_WINDOW_TYPE_HINT_DIALOG. issue #18323
git-svn-id: trunk@30235 -
2011-04-07 11:56:31 +00:00
paul
2d450a59f1 repeat r30232 and revert r30231 #0962e03d29 - the fail was in that revision
git-svn-id: trunk@30234 -
2011-04-07 07:58:09 +00:00
paul
30c63a22c2 revert r30232 #5f678a92c9 - something fails with it
git-svn-id: trunk@30233 -
2011-04-07 07:33:23 +00:00
paul
5f678a92c9 win32: remove win32uxtheme.pas - it can be replaced by UxTheme from win32units-base now
git-svn-id: trunk@30232 -
2011-04-07 06:56:47 +00:00
paul
0962e03d29 win32: fix drawing of bitbtn under windows vista/7 (issue #0015139)
git-svn-id: trunk@30231 -
2011-04-07 06:50:57 +00:00
paul
0ab62c8fa2 win32: correct GetThemeFont, GetThemeSystemFont LogFont to LogFontW
git-svn-id: trunk@30230 -
2011-04-07 06:28:06 +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
a7e622e6ab lcl: formatting
git-svn-id: trunk@30226 -
2011-04-07 00:19:59 +00:00
zeljko
0048e84bad Qt: fixed wrong TQtWidgetSet.SetParent() behaviour. Flags shouldn't be setted up if form is reparented to other control.
git-svn-id: trunk@30223 -
2011-04-06 16:15:18 +00:00
zeljko
b48287dbb8 Gtk2: fixed crashes inside TGtk2WidgetSet.ShowWindow() when form is reparented. issue #19108.
git-svn-id: trunk@30222 -
2011-04-06 15:53:27 +00:00
zeljko
719cc8fa83 Qt: fixed assertions from Qt when drawing win panels with negative width or height.
git-svn-id: trunk@30221 -
2011-04-06 14:48:14 +00:00
paul
5e397ae583 lcl: save/restore TControlScrollBar.Position even if AutoScroll = True (issue #0017409)
git-svn-id: trunk@30220 -
2011-04-06 11:30:56 +00:00
zeljko
c6bdd569fa Qt: fixed strange behaviour of QTreeWidget selection when multiselection is enabled (TListView.Style = vsReport). issue #18972
git-svn-id: trunk@30198 -
2011-04-05 06:19:50 +00:00
paul
e40d070b88 win32: cleanup
git-svn-id: trunk@30197 -
2011-04-05 03:01:51 +00:00
paul
9fadfea500 win32: move last notebook related message handling to own window proc
git-svn-id: trunk@30196 -
2011-04-05 02:53:07 +00:00
paul
902d2755bb win32: cleanup
git-svn-id: trunk@30195 -
2011-04-05 02:42:36 +00:00
paul
f056040452 win32: move notebook related WM_NOTIFY code to NotebookParentMsgHandler
git-svn-id: trunk@30194 -
2011-04-05 01:23:47 +00:00
juha
3a816c7fd1 LCL: Formatting
git-svn-id: trunk@30189 -
2011-04-04 18:51:05 +00:00
zeljko
1049bada99 Qt: issues.xml - added TBitBtn.Layout to restrictions. We cannot change glyph layout inside QPushButton. issue #19088
git-svn-id: trunk@30188 -
2011-04-04 18:03:21 +00:00
zeljko
ecc941f2f6 Gtk2: fixed bug where combobox returned caret position for selection length. issue #19081
git-svn-id: trunk@30185 -
2011-04-04 16:11:17 +00:00
paul
4fc8df4ed0 win32: refactoring: move ShowHideTabPage to win32extctrls, move preprocessing of TCN_SELCHANGE into NotebookParentMsgHandler
git-svn-id: trunk@30173 -
2011-04-04 09:29:12 +00:00
zeljko
ee25740910 Qt: simplified TCN_SELCHANGING for qt < 4.7
git-svn-id: trunk@30172 -
2011-04-04 09:11:48 +00:00
paul
4c97b24012 win32: allow WM_ERASEBKGND processing for TCustomNotebook and descendants (in other case left/right tab notebooks contains garbage)
git-svn-id: trunk@30170 -
2011-04-04 09:06:46 +00:00
zeljko
53bf526a50 Qt: fixed mouse wheel event with qt < 4.7. Now it does same as qt-4.7.
git-svn-id: trunk@30169 -
2011-04-04 08:59:42 +00:00
zeljko
fe743caa95 Qt: remove redundant line breaks when reading from lfm.Patch by Vladimir Zhirov issue #18278.
git-svn-id: trunk@30168 -
2011-04-04 07:53:38 +00:00
paul
335de8955d lcl: invalidate splitter on ResizeAnchor change (issue #0018254)
git-svn-id: trunk@30167 -
2011-04-04 06:15:01 +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
f42a381547 lcl: add TSplitter.OnCanOffset event (issue #0016629)
git-svn-id: trunk@30165 -
2011-04-04 05:34:32 +00:00
zeljko
da1579018e LCL: TCustomRadioGroup - trigger OnClick if ItemIndex is programatically changed before Handle is allocated to be Delphi compatibile.Fixes issue #15989
git-svn-id: trunk@30161 -
2011-04-03 18:53:37 +00:00
zeljko
524d3d34c9 Gtk2: do not send TCN_SELCHANGE from same routine where TCN_SELCHANGING is sender, use after signal connection to send TCN_SELCHANGE.Patch by Christian. issue #18930
git-svn-id: trunk@30160 -
2011-04-03 18:28:52 +00:00
zeljko
343e50d39c Qt: fixed bug where TPageControl.OnChanging AllowChange param wasn't respected, so if AllowChange=False, qt changed page anyway.
git-svn-id: trunk@30159 -
2011-04-03 18:24:44 +00:00
zeljko
7674b680b6 Qt: fixed bug when control doesn't have csCaptureMouse, but mouse is higher than width or height of control.
git-svn-id: trunk@30153 -
2011-04-03 13:39:55 +00:00
zeljko
67aec0c9c4 Gtk2: bugfix where csCaptureMouse cannot be disabled. issue #8178
git-svn-id: trunk@30152 -
2011-04-03 13:32:40 +00:00
paul
aecfd2f738 lcl: implement TListBox.ScrollWidth:
- win32, wince: set/get scrollwidth using LB_SETHORIZONTALEXTENT/LB_GETHORIZONTALEXTENT (issue #0018912)
  - qt, gtk2: don't show listbox horizontal scrollbar by default. show it only when scrollwidth > content area

git-svn-id: trunk@30138 -
2011-04-02 17:30:44 +00:00
marc
031074fb47 * When a maskhandle of a bitmap is set, update the masked property too
git-svn-id: trunk@30135 -
2011-04-02 16:21:47 +00:00
marc
e999be5449 * Clear pixmap contents of empty mask. The contents of a new pixmaps is undefined
git-svn-id: trunk@30134 -
2011-04-02 16:19:42 +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
e191075b61 win32: remove WindowInfo^.needParentPaint set in CreateHandle of ListBox and CheckListBox - they are set during WM_NCCREATE
git-svn-id: trunk@30091 -
2011-03-31 00:56:20 +00:00
zeljko
3b4ec3eed8 Gtk2: avoid assertions from TListView itemSetState when path is null for gtk2 libs >= 2.14. issue #18865
git-svn-id: trunk@30089 -
2011-03-30 17:48:56 +00:00
zeljko
bf7ad8a2f9 Qt: fixed msg providing to LCL when deselection of items occured by mouse click into listview viewport. issue #18972
git-svn-id: trunk@30078 -
2011-03-30 09:53:16 +00:00
paul
e0f19a0bea lcl: cleanup
git-svn-id: trunk@30077 -
2011-03-30 01:43:40 +00:00
paul
a7f36e8fb3 lcl: don't scroll inner control with TScrollingWinControl when it is visible (issue #0019020)
git-svn-id: trunk@30076 -
2011-03-30 01:42:52 +00:00
paul
4aefc884a2 win32: change handling of WM_MEASUREITEM:
- look at CtlType before searching for menu,
  - move ListBox, Combobox WM_MEASUREITEM to their window procedures
  - subclass ListBox, CheckListBox to set control ID on window creation
  - set control ID in FinishCreateWindow by SetWindowLong call (I previously removed it from CreateWindow call)

git-svn-id: trunk@30075 -
2011-03-30 01:38:00 +00:00
zeljko
1c92a3ea27 Qt: take into account vertical and horizontal scrollbars position when setting bounds for children of TScrollBox.issue #18993
git-svn-id: trunk@30072 -
2011-03-29 16:25:19 +00:00
zeljko
a0ceb2bdb1 *Qt: invalidate clientrect cache when scrollbar range is changed.part of issue #18993
git-svn-id: trunk@30068 -
2011-03-29 11:44:29 +00:00
paul
b6dfaf0b4b lcl: formatting
git-svn-id: trunk@30060 -
2011-03-29 05:25:21 +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
a84af3e7a0 lcl: change active control when a child form is focused too
git-svn-id: trunk@30057 -
2011-03-29 03:20:19 +00:00
paul
32fe9f12d1 win32: send LM_HITTEST to LCL
git-svn-id: trunk@30056 -
2011-03-29 03:08:51 +00:00
paul
6ae245e8c8 lcl: skip call of SetActive to a child form
git-svn-id: trunk@30051 -
2011-03-28 08:51:26 +00:00
paul
455a1fcdc3 win32: don't set any menu/child handle on create window at all - this is not required and depends on flags (fixes issue #0019009)
git-svn-id: trunk@30050 -
2011-03-28 08:50:28 +00:00
paul
85e8f8b7a0 win32: remove unneeded condition
git-svn-id: trunk@30047 -
2011-03-28 07:19:40 +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
2bd0c336c8 lcl: formatting
git-svn-id: trunk@30045 -
2011-03-28 07:10:57 +00:00
paul
98c49e3bfb lcl: formatting
git-svn-id: trunk@30044 -
2011-03-28 03:23:37 +00:00
paul
7e428c54ed win32: pass WM_WINDOWPOSCHANGING to LCL
git-svn-id: trunk@30043 -
2011-03-28 02:59:58 +00:00
mattias
604d91db73 LCL: ReadAllLinks: stop after 12 levels
git-svn-id: trunk@30028 -
2011-03-27 09:08:23 +00:00
paul
c6d193a983 gtk2: fix crash in calendar (issue #0010190)
git-svn-id: trunk@30018 -
2011-03-25 10:25:33 +00:00
paul
430a3674ca lcl: don't show messages about non-portable symbols while lcl, widgetset compilation
git-svn-id: trunk@30017 -
2011-03-25 09:14:23 +00:00
paul
bc2ceec887 win32: use Vista dialogs by default
git-svn-id: trunk@30016 -
2011-03-25 09:11:29 +00:00
paul
1106bb17a4 win32: reduce warnings and hints
git-svn-id: trunk@30015 -
2011-03-25 09:04:25 +00:00
paul
f5f836b7d6 win32: reduce hints and warnings
git-svn-id: trunk@30014 -
2011-03-25 09:00:06 +00:00
paul
d3caac78b7 win32: cleanup
git-svn-id: trunk@30013 -
2011-03-25 08:56:24 +00:00
paul
3fe1a6d2a2 lcl: fix warning
git-svn-id: trunk@30012 -
2011-03-25 08:55:01 +00:00
paul
2e3d386b9e win32, wince: make sure all LoadIcon, LoadCursor go to windows unit instead of graphics
git-svn-id: trunk@30010 -
2011-03-25 06:04:41 +00:00
paul
047830f98d lcl: add LoadBitmap, LoadIcon, LoadCursor into graphics.pp for winapi compatibility
git-svn-id: trunk@30007 -
2011-03-24 06:04:22 +00:00
paul
e334fff57a lcl: fix loading of icons and cursor from the resources:
- fix signature check for TCursorImage in case of ReadData call
  - split loading of icons and cursor from the resource because of different structures used for them
  - load TCursorImage from RT_CURSOR instead of RT_ICON

git-svn-id: trunk@30006 -
2011-03-24 03:37:06 +00:00
zeljko
e65ea3f1b8 Qt: always DetachEvents, also do not call QObject_delete() from TQtWidget.DestroyWidget if InEvent=True, postpone as
QObject_deleteLater(). fixes crashes when huge amount of input events is processed but object is destroyed in the meantime.

git-svn-id: trunk@30005 -
2011-03-23 13:17:13 +00:00
zeljko
e99faf3fd1 Qt: nil each hook variable after destroying hook.
git-svn-id: trunk@30003 -
2011-03-23 12:16:39 +00:00
paul
dd8e84b315 win32: fix typo which case vertical trackbar to had no focus rectangle (bug #0018957)
git-svn-id: trunk@29995 -
2011-03-23 09:29:53 +00:00
zeljko
64e944c92e Qt: more checks for LCLObject in input events. Assign 1 to LResult of DeliverMessage in case of input event, so eventfilter
will stop with Result = True in case of error.

git-svn-id: trunk@29991 -
2011-03-23 07:32:59 +00:00
zeljko
f965d18fea Qt: Set true result if LCLObject dissapeared inside key event
git-svn-id: trunk@29984 -
2011-03-22 20:06:49 +00:00
mattias
c2a58808d3 codetools: changed some uppercase parameters to mixed case
git-svn-id: trunk@29982 -
2011-03-22 13:41:30 +00:00
zeljko
67ed6805ce LCL: TCustomRadioGroup, TCustomCheckBoxGroup - propagate OnKeyDown, OnKeyUp, OnKeyPress, OnUTF8KeyPress from TRadioButton/TCheckBox to our groupBox (parent).
git-svn-id: trunk@29958 -
2011-03-21 10:03:23 +00:00
paul
5445a84dc4 win32: hide/restore popup windows on application.minimize/restore (issue #0016577)
git-svn-id: trunk@29955 -
2011-03-21 07:53:51 +00:00
paul
a7816a6197 lcl: correct FPColor assignment while TBrush constructing
git-svn-id: trunk@29953 -
2011-03-21 06:25:00 +00:00
paul
2c5f759de9 lcl: set FPColor during TBrush constructing (issue #0018958)
git-svn-id: trunk@29952 -
2011-03-21 04:37:01 +00:00
paul
00d73b2f13 lcl: cleanup
git-svn-id: trunk@29945 -
2011-03-21 02:48:03 +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
maxim
c1bf5ff2e4 LCL, printers: fix typos in Exception messages and comments, fixes bug #18950
git-svn-id: trunk@29918 -
2011-03-19 21:38:31 +00:00
jesus
f1dbbf861a LCL, grids, only call cellclick on cells which completes the mousedown-mouseup cycle, fixes problem where grid receives mouseup on doubleclicking opendialog
git-svn-id: trunk@29917 -
2011-03-19 19:31:20 +00:00
paul
df3550bba9 lcl: set TFileNameEdit.FilterIndex before OnAcceptFileName execution + formatting (issue #0017306)
git-svn-id: trunk@29916 -
2011-03-19 17:13:39 +00:00