Commit Graph

12680 Commits

Author SHA1 Message Date
paul
867da8c06b win32: fix combobox painting (issue #0017665)
git-svn-id: trunk@27845 -
2010-10-25 02:30:01 +00:00
vincents
a3555a84c4 LCL: disable declaration of TTime and TDate for fpc version 2.4.2 and newer. In newer fpc versions those types are declared in the system unit.
fixes issue #15474 
patch by: Sven Barth

git-svn-id: trunk@27838 -
2010-10-24 19:38:33 +00:00
zeljko
ad8cb136fd Gtk2: removed optimization code from TGtk2WidgetSet.PromptUser which could lead into wrong button assignments. fixes #17704
git-svn-id: trunk@27836 -
2010-10-24 18:12:18 +00:00
mattias
af460b1644 LCL: improved UTF8FindNearestCharStart
git-svn-id: trunk@27831 -
2010-10-24 17:44:33 +00:00
zeljko
1c4a0cc726 Gtk2: changed the way how main event loop iterates BUT ONLY VIA -dUSE_GTK_MAIN_CONTEXT_ITERATION until it's stable enough.
Now PostMessage() work correct when messages arrives from other threads. fixes #17548 and probably more issues with gtk2 threads usage.

git-svn-id: trunk@27829 -
2010-10-24 11:57:49 +00:00
sekelsenmat
293f373040 Fixes wince button clicking see bug #17702
git-svn-id: trunk@27828 -
2010-10-24 09:14:54 +00:00
sekelsenmat
1323d7f8d1 Implements column autosizing for TListView in Carbon
git-svn-id: trunk@27827 -
2010-10-24 07:56:36 +00:00
jesus
40e1411e15 LCL, Grids, DefaultRowHeight was not stored if modified and then changed back to original value, issue #17692
git-svn-id: trunk@27819 -
2010-10-23 18:30:40 +00:00
jesus
87f28a9497 LCL, fix hiding and then showing a dbgrid column (remained 0 width), bug reported by José Antonio Cuello
git-svn-id: trunk@27813 -
2010-10-22 19:42:09 +00:00
mattias
94f29dfbd2 LCLBase: removed -Ur
git-svn-id: trunk@27805 -
2010-10-21 21:43:49 +00:00
jesus
321f8af932 LCL, fix loading of project created in Lazarus revisions previous to r27800 #3fd96fa189 and that use listview (including Lazarus itself)
git-svn-id: trunk@27801 -
2010-10-21 20:19:02 +00:00
sekelsenmat
3fd96fa189 TListView is changed from published to public. Fixes bug #16367
git-svn-id: trunk@27800 -
2010-10-21 15:45:31 +00:00
zeljko
1767ba3390 Qt: simplified setting scrollstyle over TQtAbstractScrollArea by introducing property ScrollBarPolicy[].
git-svn-id: trunk@27799 -
2010-10-21 15:42:58 +00:00
sekelsenmat
8646d000f4 Fixes a case in which two click events were being sent in WinCE. See bug #17680
git-svn-id: trunk@27798 -
2010-10-21 15:12:47 +00:00
zeljko
1bc2a1db55 Qt: fixed type cast which caused immediate crash of qtlcl when assigning PtrUInt to WParam.
git-svn-id: trunk@27792 -
2010-10-21 11:31:13 +00:00
zeljko
81a1b83ec1 Qt: changed casts to TQtWidget or QObjectH objects to PtrUInt in debugging code.
git-svn-id: trunk@27791 -
2010-10-21 11:19:59 +00:00
sekelsenmat
b0b573e30a Fixes the importing of SHSendBackToFocusWindow in wince
git-svn-id: trunk@27790 -
2010-10-21 11:11:15 +00:00
zeljko
0ef33b2c49 LCL: changed TCustomTrayIcon.Handle from PtrInt to HWND since it's correct.
Qt,Gtk2,Carbon: changed type cast from PtrInt() to HWND() for trayicon handle.

git-svn-id: trunk@27789 -
2010-10-21 11:10:57 +00:00
zeljko
e6a8e1e2a4 LCL: reverted TLMMouse Keys to PtrInt.
Qt: fixed wrong cast in TQtTimer.Create(), cast to THandle(PtrUInt) instead to PtrInt, fixes crash on 32bit with -Cr

git-svn-id: trunk@27788 -
2010-10-21 10:53:10 +00:00
zeljko
339f85f006 Qt: removed unused local variable.
git-svn-id: trunk@27787 -
2010-10-21 10:38:47 +00:00
zeljko
28632554b9 LCL: TLMMouse.Keys:PtrInt becomes TLMMouse.Keys: PtrUInt to avoid range check errors.
Qt, Gtk2: added various type casts to avoid range check errors. Patches by Juha Manninen. fixes #17531

git-svn-id: trunk@27786 -
2010-10-21 10:32:41 +00:00
mattias
e3573e3e88 carbon intf: UpdateLCLClientRect: check if something changed
git-svn-id: trunk@27782 -
2010-10-21 08:47:54 +00:00
zeljko
cd8a98a15d Qt: fixed TQtWidgetSet.DrawText() when ARect param is out of bounds of clipRect, also added QT_DRAWTEXT_MAP_TO_CLIPRECT define if someone want's that drawText respects DT_WORDBREAK flag if included. fixes #17678
git-svn-id: trunk@27779 -
2010-10-21 07:27:47 +00:00
vincents
ab775d508d lcl: published TStringGrid OnGetCheckboxState and OnSetCheckboxState
git-svn-id: trunk@27778 -
2010-10-20 19:20:12 +00:00
vincents
794ad9f79c lcl tests: fixed compilation, use default widget set and stdctrls for TButton
git-svn-id: trunk@27777 -
2010-10-20 14:02:33 +00:00
vincents
48b1cbded7 lcl tests: fixed compilation
git-svn-id: trunk@27776 -
2010-10-20 14:00:21 +00:00
mattias
5ad496ffd6 LCL: reduced hints
git-svn-id: trunk@27772 -
2010-10-20 08:18:58 +00:00
mattias
b07592dfec carbon intf: reduced notes
git-svn-id: trunk@27771 -
2010-10-20 08:18:32 +00:00
paul
d5cb0e2fbe lcl: redo MouseEnter/MouseLeave notifications:
- move application mouse events notification from various message handlers to the WND proc of TWinControl
  - don't assume that control at mouse is the current control which has mouse events. If some control has a mouse capture set then it has the mouse messages and not the control at mouse
  - don't perform a control search in TApplication.DoBeforeMouseMessage - it already has an argument which contains the new mouse control (fixes bug #0016715)
  - fix CM_MOUSEENTER, CM_MOUSELEAVE message handlers so Parent controls will always get CM_ notification before the event handler and inspite of who is the message owner

git-svn-id: trunk@27770 -
2010-10-20 08:02:22 +00:00
zeljko
084fed8f6c Qt: fixed bug with QPainter translation in TQtWidgetSet.GetClipBox(). fixes #17670
git-svn-id: trunk@27769 -
2010-10-20 06:38:47 +00:00
paul
e914afd958 lcl: set default TSpeedButton.Color value to clBtnFace
git-svn-id: trunk@27768 -
2010-10-20 05:51:22 +00:00
zeljko
303f533d2e Qt: fixed complete screen lock caused by setting capture on native abstractitemview (eg. TQtTreeWidget) by moving TQtCustomControl.grabMouse to TQtAbstractScrollArea.grabMouse().Now viewport grabs mouse and that's correct.
git-svn-id: trunk@27759 -
2010-10-19 09:31:07 +00:00
paul
6ce6821a27 lcl: always exclude tvsPainting from the treeview states on DoPaint exit (bug #0017653)
git-svn-id: trunk@27758 -
2010-10-19 01:18:11 +00:00
paul
9b70fb4a72 lcl: formatting
git-svn-id: trunk@27757 -
2010-10-19 01:11:31 +00:00
paul
94ca121303 lcl: TCustomCheckListBox.SetState:
- check index before the action
 - don't perform actions if the new state the same as before (issue #0017660)

git-svn-id: trunk@27756 -
2010-10-19 01:02:35 +00:00
vincents
55f95c92d2 qt interface: fixed compilation with fpc 2.5.1 after the changes in IUnknown
git-svn-id: trunk@27753 -
2010-10-18 20:54:00 +00:00
zeljko
115f4ce243 Qt: fixed wrong TQtTreeWidget.getClientBounds when header is visible, removed headerOffset from TQtWSCustomListView.getItemAt() since needed offset is wrong because of wrong getClientBounds which should take into account embedded header control.
git-svn-id: trunk@27749 -
2010-10-18 13:18:02 +00:00
zeljko
e8d188bf55 Qt: fixed bug when TQtAbstractScrollArea didn't propagate mouse move events after clicking on it's viewport because mousepropagation is disabled.
New behavior: never disable mouse propagation on scroll area viewport.

git-svn-id: trunk@27748 -
2010-10-18 12:24:05 +00:00
zeljko
72e07feaae Qt: fixed bug where TQtWSCustomListView.getItemAt() returned wrong or no result when header visible (showcolumns=true).
git-svn-id: trunk@27746 -
2010-10-18 12:02:01 +00:00
paul
b83df84f67 win32: use standard hand point cursor (issue #0017432)
git-svn-id: trunk@27744 -
2010-10-18 04:45:18 +00:00
zeljko
08bb81fce3 Qt: don't create QTreeWidgetItem with QTreeWidget as parent, otherwise we'll have bug when inserting items using TListView.Insert(AIndex). fixes #17650.
git-svn-id: trunk@27742 -
2010-10-17 12:02:51 +00:00
paul
6e3431f67d win32: use the correct MakeLong
git-svn-id: trunk@27726 -
2010-10-17 02:28:28 +00:00
paul
f1dec0d4e0 win32: a trial to fix a range check error Martin has found
git-svn-id: trunk@27725 -
2010-10-17 02:23:09 +00:00
paul
cfc294acab win32: don't directly set the mouse cursor in Twin32WSWinControl.SetCursor but do this through the window procedures
git-svn-id: trunk@27721 -
2010-10-16 16:01:00 +00:00
paul
d6d4003fe6 win32: also skip disabled windows while changing the cursor
git-svn-id: trunk@27720 -
2010-10-16 15:05:55 +00:00
paul
3efdffe38a win32: skip invisible windows while setting a cursor (bug #0017636)
git-svn-id: trunk@27719 -
2010-10-16 14:49:19 +00:00
sekelsenmat
409c85821c Fixes a small bug in Qt. ItemIndex didn't work for the last item, for example ItemIndex=15 with 15 items.
git-svn-id: trunk@27717 -
2010-10-15 10:25:27 +00:00
zeljko
17cbc0d5bf Qt: properly set tabicon. fixes #17635
git-svn-id: trunk@27716 -
2010-10-15 07:15:34 +00:00
zeljko
1b805137bf Qt: added TQtTabWidget.setTabIcon(), part of #17635
git-svn-id: trunk@27715 -
2010-10-15 06:54:02 +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