Commit Graph

19104 Commits

Author SHA1 Message Date
blikblum
e25c495758 gtk2: do type check only once in DoDeliverPaintMessage
git-svn-id: trunk@53862 -
2017-01-03 14:08:39 +00:00
blikblum
375b5e1736 gtk2: remove check in edit_drag_data_received. Seems that was used to supress compiler hints but has side effects
git-svn-id: trunk@53861 -
2017-01-03 14:08:05 +00:00
blikblum
96726974b7 gtk2: remove redundant typecasts / Removes code used to supress hint
git-svn-id: trunk@53860 -
2017-01-03 14:07:59 +00:00
blikblum
fd332f1b2a gtk2: Enclose code used only to debug in EventTrace define
git-svn-id: trunk@53859 -
2017-01-03 14:07:52 +00:00
blikblum
6877851905 gtk2: remove code that was used only to supress hint. Use compiler directive instead
git-svn-id: trunk@53858 -
2017-01-03 14:07:45 +00:00
blikblum
7e47287541 gtk2: remove uneeded typecast in key snooper
git-svn-id: trunk@53857 -
2017-01-03 14:07:37 +00:00
blikblum
ebcefd5e9a gtk2: fix typo in NeedShiftUpdateAfterFocus
git-svn-id: trunk@53856 -
2017-01-03 14:07:31 +00:00
blikblum
b620b473b5 gtk2: remove redundant checks and casts
git-svn-id: trunk@53855 -
2017-01-03 14:07:24 +00:00
blikblum
e6a01b5d3f gtk2: enclose debug specific code inside define
git-svn-id: trunk@53854 -
2017-01-03 14:07:17 +00:00
juha
39fe54c5f6 Make LCL and LazUtils compile for Amiga systems (NoGUI). Issue #31186, patch from Marcus Sackrow.
git-svn-id: trunk@53853 -
2017-01-03 12:01:49 +00:00
sekelsenmat
ffc1493b4a cocoa: Patch for bug #30372: Drag and drop on app icon does not work with Cocoa widget set
git-svn-id: trunk@53850 -
2017-01-03 06:19:42 +00:00
sekelsenmat
f9a5f928c7 cocoa: Patch for bug #30817 Disabled menu items do not appear disabled
git-svn-id: trunk@53849 -
2017-01-03 06:15:15 +00:00
juha
39edd3b2b6 LCL: Add more title attributes in TCustomGrid.LoadColumns and SaveColumns. Issue #31173, patch from Andrey Korol.
git-svn-id: trunk@53848 -
2017-01-03 00:10:48 +00:00
blikblum
98866fb02d gtk2: do not set fill, tile or stipple in SelectObject
git-svn-id: trunk@53839 -
2017-01-02 20:11:17 +00:00
blikblum
9108c60199 gtk2: allocate background color in TextOut when drawing opaque text (same as what was done for ExtTextOut in rev 38758 #06660654be). Issue #31187
git-svn-id: trunk@53838 -
2017-01-02 20:00:07 +00:00
jesus
42132a8872 LCL, dbgrid: implements OnRowMoved event (public) by Gabor Boros (with changes), issue #31061
git-svn-id: trunk@53837 -
2017-01-02 17:59:38 +00:00
zeljko
7f6f830071 Qt5: use Qt mouse capture, fixes problems with MDI under win32.
git-svn-id: trunk@53836 -
2017-01-02 17:45:48 +00:00
ondrej
b7eac8eeca win32: fix scrolling boundaries. Issue #31183, patch by Michl
git-svn-id: trunk@53834 -
2017-01-02 17:15:40 +00:00
blikblum
5a0d2dc90a gtk2: fix drawing with pattern bitmap brushes. Related to issue #23663
git-svn-id: trunk@53833 -
2017-01-02 10:42:11 +00:00
zeljko
da10ad0af2 Gtk2: set proper window hints. Patch by AlexeyT. issue #13051
git-svn-id: trunk@53831 -
2017-01-01 15:09:37 +00:00
zeljko
74de2aeee7 Qt5: fixed wrong X & Y coordinates when Rect param is nil and options contains ETO_OPAQUE.
git-svn-id: trunk@53830 -
2017-01-01 13:58:21 +00:00
zeljko
55b8db5af8 Qt: fixed wrong X & Y coordinates when Rect param is nil and options contains ETO_OPAQUE.
git-svn-id: trunk@53829 -
2017-01-01 13:58:03 +00:00
zeljko
fcdcae4206 Qt,Qt5: reverted wrong X & Y for opaque
git-svn-id: trunk@53828 -
2017-01-01 13:12:28 +00:00
zeljko
042b662492 Qt5: implemented TQtWidgetSet.ExtUTF8Out() and ETO_RTLREADING
git-svn-id: trunk@53827 -
2017-01-01 12:36:37 +00:00
zeljko
85e23e66e3 Qt: implemented TQtWidgetSet.ExtUTF8Out() and ETO_RTLREADING
git-svn-id: trunk@53826 -
2017-01-01 12:36:09 +00:00
zeljko
dc36528c42 LCL: Implemented ETO_RTLREADING for TCanvas.TextOut(). issue #30514
git-svn-id: trunk@53825 -
2017-01-01 12:04:11 +00:00
zeljko
047946fc48 Qt5: pass MouseUp event from transparent widget to the LCL. part of issue #30232
git-svn-id: trunk@53819 -
2016-12-31 15:05:23 +00:00
zeljko
95cacda273 LCL: cleanup
git-svn-id: trunk@53816 -
2016-12-31 13:07:51 +00:00
zeljko
f0b16537ba LCL: added Qt5 to build macros
git-svn-id: trunk@53815 -
2016-12-31 10:01:08 +00:00
zeljko
54b90fc39f Qt5: sources of C bindings, needed for libQt5Pas library build.
git-svn-id: trunk@53813 -
2016-12-31 09:45:47 +00:00
juha
21eaa54b10 LCL-GTK2: Fix KeyDown value for Russian keyboard layout. Issue #27968, patch from AlexeyT.
git-svn-id: trunk@53811 -
2016-12-30 20:57:37 +00:00
zeljko
bd3190a44a Qt5: fixed build without scrollable forms define.
git-svn-id: trunk@53809 -
2016-12-30 16:52:41 +00:00
zeljko
2b41606a95 Qt5: backported patch for issue #30942 from qt4
git-svn-id: trunk@53808 -
2016-12-30 16:51:26 +00:00
zeljko
f684952850 Qt5: integration into LCL
git-svn-id: trunk@53807 -
2016-12-30 15:05:34 +00:00
zeljko
c28f46376f Qt5: ho ho ho
git-svn-id: trunk@53806 -
2016-12-30 15:03:51 +00:00
michl
159b8b4873 LCL: Win32: DrawText: revert 53725 #af3f20163d and 53732 because fixed at wrong place. Issue #20762
git-svn-id: trunk@53800 -
2016-12-29 19:45:56 +00:00
ondrej
b350995af3 lcl: memo: fix CanShowEmulatedTextHint when destroying focused TMemo
git-svn-id: trunk@53798 -
2016-12-29 13:40:42 +00:00
blikblum
019b8c5c6b win32: use PrintWindow instead of WM_PRINT in PaintTo so windows are draw with theme
git-svn-id: trunk@53791 -
2016-12-28 10:59:59 +00:00
michl
b77917bbc2 LCL: TWinControl: refreshing RawImage data after painting on canvas. Issue #25448
git-svn-id: trunk@53790 -
2016-12-27 23:38:54 +00:00
maxim
e86baf504d LCL: committed autoregenerated file
git-svn-id: trunk@53781 -
2016-12-26 22:45:04 +00:00
joost
f8a3c33a05 * Added IndustrialBase.pp to lclbase-package
git-svn-id: trunk@53779 -
2016-12-26 15:39:35 +00:00
juha
3df554f091 LCL: Restore the FilterEdit cancel icon made by Paul Ishenin.
git-svn-id: trunk@53775 -
2016-12-25 15:33:05 +00:00
bart
7dd5e7f07f Carbon: remove TListBox.ItemHeight from restricted tab.
git-svn-id: trunk@53773 -
2016-12-24 15:50:39 +00:00
sekelsenmat
ea61d1502b carbon: Patch 30497Fix TListBox.ItemHeight
git-svn-id: trunk@53770 -
2016-12-23 19:37:49 +00:00
juha
52ab6a0253 LCL: Cleanup
git-svn-id: trunk@53763 -
2016-12-22 22:29:16 +00:00
juha
ed0f21525e LCL: Remove automatic registration of EditBtn, RegisterLCL already does it. Cleanup fpmake file.
git-svn-id: trunk@53762 -
2016-12-22 22:29:04 +00:00
michl
9d9f85d608 LCL: Win32: Prevent one flickering after restoring a minimized modal form. Issue #31122
git-svn-id: trunk@53761 -
2016-12-22 21:20:27 +00:00
ondrej
33449c9e87 lcl: groupededit: highDPI: scale BuddyWidth in AutoAdjustLayout
git-svn-id: trunk@53759 -
2016-12-22 18:12:29 +00:00
michl
96b919c8c1 LCL: TListView: Win32: use caption width, if there are no items to calculate the correct autosize width. Issue #29132
git-svn-id: trunk@53757 -
2016-12-22 11:51:15 +00:00
juha
90cf12dacd Move LazLinkedList from LCL to LazUtils.
git-svn-id: trunk@53752 -
2016-12-21 22:35:12 +00:00
michl
f937a0c74b LCL: TListView: Win32: use stored width, if there are no items to calculate the correct autosize width. Issue #29132
git-svn-id: trunk@53746 -
2016-12-21 08:25:18 +00:00
juha
d33b9f61a2 Reuse LazLogger.DumpExceptionBackTrace. Cleanup.
git-svn-id: trunk@53742 -
2016-12-20 22:52:02 +00:00
juha
cfd390c5c5 Order uses sections some more.
git-svn-id: trunk@53741 -
2016-12-20 22:32:52 +00:00
juha
2329f266ed Move Translations unit from LCL to LazUtils.
git-svn-id: trunk@53740 -
2016-12-20 22:32:43 +00:00
michl
b1a91e3d7c LCL: TMemo: Fix for flickering on Windows, activating MemoWndProc. Issue #16140
git-svn-id: trunk@53739 -
2016-12-20 19:05:15 +00:00
juha
73aa9aa4bb Order uses sections again to see dependencies better.
git-svn-id: trunk@53738 -
2016-12-20 16:26:44 +00:00
juha
3b52a368a2 Move containers from LCL to LazUtils. DynamicArray, DynHashArray, DynQueue, Maps, StringHashList, ExtendedStrings, TextStrings.
git-svn-id: trunk@53737 -
2016-12-20 16:26:27 +00:00
ondrej
db0a509d69 win32: group box: invalidate after caption change. Issue #25868
git-svn-id: trunk@53736 -
2016-12-20 14:07:18 +00:00
mattias
c458f34d54 IDE: register TProcessUTF8 with LazUtils, not LCL
git-svn-id: trunk@53735 -
2016-12-20 13:25:34 +00:00
michl
d749179227 LCL: TLabel: Win32: fixed Wordwrap loses lines when word exceeds MaxWidth. Issue #20762
git-svn-id: trunk@53732 -
2016-12-20 12:27:19 +00:00
juha
9c405911fd Reduce SynEdit dependencies from units. Reorder uses sections to see dependencies better.
git-svn-id: trunk@53727 -
2016-12-20 00:09:10 +00:00
michl
af3f20163d LCL: TCanvas: fixed Windows WordWrap bug. Issue: #20763
git-svn-id: trunk@53725 -
2016-12-19 22:32:28 +00:00
michl
3a3af4fd12 LCL: TMemo: Fix for flickering on Windows. Issue #16140
git-svn-id: trunk@53722 -
2016-12-18 21:42:49 +00:00
michl
365e66afe4 LCL: TWinControl: Fix for WMSize loop on minimizing a autosized form. Issue #30826
git-svn-id: trunk@53721 -
2016-12-18 19:19:32 +00:00
zeljko
2dd9752a04 Qt: use Qt's native event loop by default.
git-svn-id: trunk@53719 -
2016-12-18 15:17:29 +00:00
mattias
21c43e9c0a lcl: gtk2: clean up
git-svn-id: trunk@53717 -
2016-12-18 12:40:01 +00:00
ondrej
8d6fb55c21 lcl: customform: revert r53334 #0a383ad832, issue #31122
git-svn-id: trunk@53716 -
2016-12-18 12:22:07 +00:00
ondrej
5b8fe624b4 cocoa: change LOGPIXELSX and -Y to 96 PPI. Issue #31037
git-svn-id: trunk@53714 -
2016-12-18 10:11:27 +00:00
ondrej
f1dca4c40d carbon: change LOGPIXELSX and -Y to 96 PPI. Issue #31037, by AlexeyT
git-svn-id: trunk@53712 -
2016-12-18 10:10:15 +00:00
juha
a714a91311 LCL: Move TLCLPlatform and related non-GUI code to a new unit to be used without GUI.
Organize uses-sections by package so that dependencies can be easier seen.

git-svn-id: trunk@53711 -
2016-12-17 22:58:08 +00:00
michl
2254a18568 LCL: TNotebook: fixed wrong index after deleting a page. Issue #29976
git-svn-id: trunk@53707 -
2016-12-17 18:49:14 +00:00
bart
bc9a802ce1 GTK2/GTK3: Fix TOpenDialog.Files if ofAllowMultiSelect is not in Options. Issue #0031133.
git-svn-id: trunk@53705 -
2016-12-17 16:48:52 +00:00
zeljko
d01b3461ce Qt: fixed compilation for non scrollable forms.
git-svn-id: trunk@53703 -
2016-12-16 18:28:41 +00:00
juha
b83fa220bb LCL: Don't require TForm.Handle in afterconstruction when scaling. Issue #31121, patch from Anton Kavalenka.
git-svn-id: trunk@53694 -
2016-12-15 19:47:51 +00:00
ondrej
b7048b98fc lcl: forms: execute AutoScale for Scaled := True only when not loading
git-svn-id: trunk@53693 -
2016-12-15 09:48:38 +00:00
ondrej
8c7043289d lcl: forms: add AutoScale method and execute it when setting Scaled := True
git-svn-id: trunk@53692 -
2016-12-15 09:00:04 +00:00
ondrej
46b5fb7228 lcl: forms: Scale0Fonts in AfterConstruction if MonitorPPI<>ScreenPPI
git-svn-id: trunk@53691 -
2016-12-15 08:57:10 +00:00
ondrej
d770925929 lcl: customform: don't change TopLeft in DoAutoAdjustLayout
git-svn-id: trunk@53690 -
2016-12-15 08:36:22 +00:00
ondrej
172aa765ac lcl: forms: use Monitor.PixelsPerInch for default scaling
git-svn-id: trunk@53689 -
2016-12-15 08:20:18 +00:00
ondrej
f315aaac55 lcl: DoAutoAdjustLayout: scale Font.Size if specified.
git-svn-id: trunk@53688 -
2016-12-15 08:19:36 +00:00
ondrej
9ec0b84232 lcl: add TMonitor.PixelsPerInch
git-svn-id: trunk@53687 -
2016-12-15 08:18:10 +00:00
ondrej
c52584ecb0 WS, win32: add GetDpiForMonitor
git-svn-id: trunk@53686 -
2016-12-15 08:16:09 +00:00
juha
4245e9efae LCL-GTK2: Fix setting TComboBox ItemIndex. Issue #28683, patch from AlexeyT.
git-svn-id: trunk@53685 -
2016-12-14 16:44:21 +00:00
zeljko
363c3e9e88 Qt: simplified check for visibility.
git-svn-id: trunk@53681 -
2016-12-14 15:39:05 +00:00
mattias
224ed6f8cb lcl: comment
git-svn-id: trunk@53680 -
2016-12-14 14:28:58 +00:00
zeljko
83fe670e72 Qt: improved focus patch on TQtComboBox. related to issue #27852
git-svn-id: trunk@53679 -
2016-12-14 14:04:31 +00:00
zeljko
9a0210ff90 Qt: fixed noneditable TQtComboBox setFocus when first time called. issue #27852
git-svn-id: trunk@53678 -
2016-12-14 13:16:06 +00:00
ondrej
7da5365469 lcl: treeview: revert r53309 because r53308 #43db30003e was reverted as well.
[LCL: treeview: hide hint window when showing=false.]

git-svn-id: trunk@53677 -
2016-12-14 12:39:45 +00:00
juha
80328f4ead LCL: Set TComboBox ItemIndex with duplicate text elements correctly. Issue #28683, patch from AlexeyT.
git-svn-id: trunk@53676 -
2016-12-14 11:14:28 +00:00
ondrej
8cf3408825 lcl: wincotrol: revert r53308 #43db30003e:
[LCL: wincotrol: broadcast UpdateShowing regardless of showing value. (When parent was hidden, the child controls didn't receive UpdateShowing resulting in wrong FShowing value.)]

git-svn-id: trunk@53674 -
2016-12-14 09:56:56 +00:00
ondrej
7ec5669770 customdrawn, win32: disable alphablend for parented forms. Issue #26206, patch by Michl
git-svn-id: trunk@53673 -
2016-12-14 09:09:23 +00:00
juha
360a8b174e LCL-GTK2: remove the earlier debug code. Values differ for controls other than TEdit.
git-svn-id: trunk@53664 -
2016-12-13 09:42:33 +00:00
juha
1077fbddaf LCL: Display RadioGroup items correctly when font size changes. Issue #29112, noticed by AlexeyT.
git-svn-id: trunk@53663 -
2016-12-13 09:42:32 +00:00
juha
c4c9879bc5 LCL: Formatting.
git-svn-id: trunk@53662 -
2016-12-13 09:42:26 +00:00
mattias
9ff6541b70 lcl: added protected TCustomTreeView.CreateNodes, issue #31111
git-svn-id: trunk@53660 -
2016-12-12 21:10:54 +00:00
mattias
fbbabaf08d lcl: gtk2: do not bomb when assigning TFloatSpinEdit.Text
git-svn-id: trunk@53657 -
2016-12-12 20:27:05 +00:00
mattias
90b9fc6c74 LCL: debg DisableAutoSizing
git-svn-id: trunk@53655 -
2016-12-12 19:40:31 +00:00
juha
273d60e1e3 LCL-GTK2: Fix a cursor move error when selected text was replaced by typing. Issue #30596.
git-svn-id: trunk@53653 -
2016-12-12 14:43:31 +00:00
juha
7573422cc0 LCL-GTK2: add a temporary DebugLn and exception to figure out why selection bounds never differ.
git-svn-id: trunk@53652 -
2016-12-12 14:43:30 +00:00
juha
93f2292cbf LCL-GTK2: Remove a wrongly placed IFDEF for verbosity. It changed code behavior.
git-svn-id: trunk@53651 -
2016-12-12 14:43:22 +00:00
maxim
999d99163f LCL: regenerated translations and updated Russian translation
git-svn-id: trunk@53646 -
2016-12-11 22:49:08 +00:00
juha
a8646f33f5 LCL: Remove a useless test in function DefaultMessageBox.
git-svn-id: trunk@53635 -
2016-12-11 15:18:31 +00:00
juha
02052bcaa9 LCL: New BevelColor property for TCustomPanel. Issue #31009, patch from AlexeyT.
git-svn-id: trunk@53634 -
2016-12-11 15:18:24 +00:00
mattias
42389b53df translations: German: updates from Swen Heinig
git-svn-id: trunk@53632 -
2016-12-11 12:04:17 +00:00
ondrej
c2e239e881 lcl: forms: move the DesignTimeDPI and Scaled properties from TForm to TCustomDesignControl - TFrame needs it as well.
git-svn-id: trunk@53622 -
2016-12-09 22:58:54 +00:00
juha
8a1c1ebeb1 IdeIntf: Support TCustomTreeView descendants in property editors. Make Images public. Issue #31071, patch from Michal Gawrycki.
git-svn-id: trunk@53621 -
2016-12-09 11:20:56 +00:00
ondrej
68b4e90a44 lcl: listbox: highDPI: fix default item height
git-svn-id: trunk@53610 -
2016-12-09 08:45:26 +00:00
ondrej
a8d1a4e375 lcl: forms: set PixelsPerInch to DesignTimePPI in Loaded to correctly scale forms designed on highDPI displays.
git-svn-id: trunk@53609 -
2016-12-09 08:21:25 +00:00
ondrej
7ba71b1ba4 lcl: forms: introduce the LCLScaleForms define for enabling default Scaled=True
git-svn-id: trunk@53608 -
2016-12-09 07:51:42 +00:00
ondrej
ff5c88f3ce lcl: timepopup: highDPI: enable Scaled. Issue #28438
git-svn-id: trunk@53607 -
2016-12-09 07:29:53 +00:00
ondrej
e765572865 lclbase: add customdesigncontrol.inc to the package
git-svn-id: trunk@53599 -
2016-12-08 09:43:32 +00:00
ondrej
2d1d913087 lcl, ide: set correct DesignTimePPI when creating a new form. Issue #31082
git-svn-id: trunk@53598 -
2016-12-08 09:42:55 +00:00
ondrej
a2652fa7de lcl: TControl: highDPI: scale fonts also for ParentFont=True when no parent is present. Issue #31083
git-svn-id: trunk@53595 -
2016-12-07 22:28:47 +00:00
ondrej
e7b8a7cf27 lcl: highDPI: rename AScaleFonts parameter to AScale0Fonts and change its behavior. Issue #31083
git-svn-id: trunk@53594 -
2016-12-07 22:22:50 +00:00
juha
3ca728a0e7 LCL-Gtk2: Simplify TGtk2WSCustomListView.ItemSetState. Nil as Path param does not work for old GTK versions. Reported by Luca Olivetti.
git-svn-id: trunk@53590 -
2016-12-07 17:51:28 +00:00
ondrej
f1f10c72f9 lcl, ide: highDPI: make designer DPI-aware
git-svn-id: trunk@53584 -
2016-12-06 21:28:02 +00:00
ondrej
6b96ab0bc3 lcl: TStatusBar: highDPI: implement DoAutoAdjustLayout
git-svn-id: trunk@53583 -
2016-12-06 19:57:41 +00:00
ondrej
ec3be77f3d lcl: grids: highDPI: fix DefaultRowHeight scaling
git-svn-id: trunk@53582 -
2016-12-06 19:48:23 +00:00
ondrej
565f0125cf win32: less warnings.
git-svn-id: trunk@53581 -
2016-12-06 19:36:24 +00:00
ondrej
33199744d0 lcl: highDPI: use TCustomDesignControl as ancestor for TFrame and TForm to share PPI properties.
git-svn-id: trunk@53580 -
2016-12-06 19:28:48 +00:00
ondrej
0b202568c5 lcl: lcltype: check for same nNumerator and nDenominator value in MulDiv.
git-svn-id: trunk@53579 -
2016-12-06 18:51:24 +00:00
ondrej
110955f1da lcl: TControl: highDPI: scale margins and constraints.
git-svn-id: trunk@53576 -
2016-12-06 14:50:02 +00:00
ondrej
6b37ddd73e lcl: grids: fix after r53574 #0296fdc7ae
git-svn-id: trunk@53575 -
2016-12-06 14:48:22 +00:00
ondrej
0296fdc7ae lcl: implement DoAutoAdjustLayout for these controls: TCustomListView, TCustomGrid, TCustomListBox. Issue #14688, patch by regs
git-svn-id: trunk@53574 -
2016-12-06 14:28:37 +00:00
ondrej
11cc148c2f lcl: highDPI: rename DesignTimeDPI to DesignTimePPI to comply with property <P>ixels<P>er<I>nch
git-svn-id: trunk@53572 -
2016-12-06 13:45:47 +00:00
ondrej
4a214df8bf lcl: TControl: add ScaleCoord96 and -Back for 96 PPI
git-svn-id: trunk@53571 -
2016-12-06 13:35:18 +00:00
maxim
a64dc08e4f LCL: updated Russian translation
git-svn-id: trunk@53566 -
2016-12-05 22:36:49 +00:00
ondrej
612a26c207 lcl: TToolBar: highDPI: scale DropDownWidth (fixed), FThemeButtonDropWidth and FThemeDropDownWidth
git-svn-id: trunk@53563 -
2016-12-05 21:34:39 +00:00
ondrej
efdc1a1a7e lcl: TToolBar: highDPI: scale DropDownWidth
git-svn-id: trunk@53562 -
2016-12-05 20:58:53 +00:00
ondrej
fc9103bd07 lcl: highDPI: support both anchoring left+right and top+bottom in DoAutoAdjustLayout
git-svn-id: trunk@53556 -
2016-12-03 23:55:54 +00:00
ondrej
58c2446357 lcl: highDPI: handle right and bottom anchored controls in AutoAdjustLayout.
git-svn-id: trunk@53555 -
2016-12-03 23:07:10 +00:00
mattias
b74732ae09 lcl: gtk2: less hints
git-svn-id: trunk@53548 -
2016-12-03 09:54:19 +00:00
ondrej
616bcee2d1 lcl: controls: highDPI: add ScaleCoord and ScaleCoordBack
git-svn-id: trunk@53543 -
2016-12-03 08:19:52 +00:00
ondrej
986b17c058 lcl: toolbar: highDPI: adjust button size in DoAutoAdjustLayout.
git-svn-id: trunk@53542 -
2016-12-03 07:14:01 +00:00
ondrej
d67b3f014e lcl: highDPI: refactor AutoAdjustLayout, move adjust code into protected DoAutoAdjustLayout
git-svn-id: trunk@53541 -
2016-12-03 07:13:00 +00:00
ondrej
adf87c511a lcl: merge ShouldAutoAdjust* into one method. Fix Width and Height adjustment in relation to Align.
git-svn-id: trunk@53538 -
2016-12-03 06:52:15 +00:00
ondrej
f48f4618a6 lcl: forms: highDPI: set PixelsPerInch to DesignTimeDPI in CreateNew
git-svn-id: trunk@53537 -
2016-12-03 06:47:59 +00:00
ondrej
38e6533972 lcl: forms: highDPI: Implement TFrame.PixelsPerInch
git-svn-id: trunk@53536 -
2016-12-03 06:47:02 +00:00
ondrej
219391b44a lcl: forms: set TForm.DesignTimeDPI default value
git-svn-id: trunk@53534 -
2016-12-02 23:10:31 +00:00
ondrej
bef77cd46b lcl: forms: implement TFrame.DesignTimeDPI
git-svn-id: trunk@53533 -
2016-12-02 23:09:42 +00:00
ondrej
c94e49018d lcl: forms: use a variable in WMDPIChanged. Issue #31050, by AlexeyT
git-svn-id: trunk@53529 -
2016-12-02 17:03:38 +00:00
mattias
4cd266663f lcl: comment
git-svn-id: trunk@53520 -
2016-12-02 10:01:03 +00:00
zeljko
de8fcf79e0 LCL: TCustomListView: reverted revision r53506 #79edcb1a9f since it introduced crashes and setting selected triggers 2 events for same item.
git-svn-id: trunk@53519 -
2016-12-02 09:05:33 +00:00
ondrej
50b3234603 lcl: forms: highDPI: use the new AScaleFonts parameter in AutoAdjustLayout for automatic scaling.
git-svn-id: trunk@53517 -
2016-12-01 22:44:55 +00:00
ondrej
c186773b00 lcl: controls: highDPI: add AScaleFonts parameter to AutoAdjustLayout
git-svn-id: trunk@53516 -
2016-12-01 22:43:50 +00:00
ondrej
e5ef90de53 lcl: forms: highDPI: don't clear TCustomForm.PixelsPerInch in CreateWnd, related to r53512 #337925d861
git-svn-id: trunk@53515 -
2016-12-01 22:41:08 +00:00
maxim
370d76e876 LCL: updated Russian translation
git-svn-id: trunk@53514 -
2016-12-01 22:30:47 +00:00
ondrej
9304766a81 lcl: forms: highDPI: use AutoAdjustLayout instead of ScaleBy for DPI-scaling. Issue #31045, by AlexeyT
git-svn-id: trunk@53513 -
2016-12-01 22:03:27 +00:00
ondrej
337925d861 lcl: forms: highDPI: don't read TCustomForm.PixelsPerInch from Screen but use rather the value from design-time and update it on scale.
git-svn-id: trunk@53512 -
2016-12-01 21:38:39 +00:00
ondrej
2d8600e1fd lcl: forms: allow changing TCustomForm.DesignTimeDPI in runtime. Fix brackets.
git-svn-id: trunk@53511 -
2016-12-01 21:00:24 +00:00
ondrej
2612f8b61e lcl: forms: allow changing TCustomForm.DesignTimeDPI in runtime.
git-svn-id: trunk@53510 -
2016-12-01 20:55:10 +00:00
mattias
beafafc9a0 lcl: updated po files
git-svn-id: trunk@53509 -
2016-12-01 17:28:05 +00:00
juha
eaa909e9c7 LCL,LazControls: Override ShouldAutoAdjustWidthAndHeight for EditButton/DividerBevel. Issue #31039, patch from AlexeyT.
git-svn-id: trunk@53507 -
2016-12-01 15:37:07 +00:00
juha
79edcb1a9f LCL: Improve TCustomListView.SetSelection a little.
git-svn-id: trunk@53506 -
2016-12-01 15:36:55 +00:00
ondrej
5c4c3d1948 lcl: forma: change wParamhi to hi(wParam), issue #31043
git-svn-id: trunk@53502 -
2016-12-01 00:32:55 +00:00
ondrej
f4df715ad3 lcl: forms: highDPI: ScaleBy only when scale really changed.
git-svn-id: trunk@53501 -
2016-12-01 00:28:15 +00:00
ondrej
1c9c0abeb2 lcl: forms: highDPI: fix FPixelsPerInch assignment in WMDPIChanged (r53498)
git-svn-id: trunk@53500 -
2016-11-30 23:49:40 +00:00
ondrej
2b35575b4e lcl: forms: highDPI: Scale in AfterConstruction when Scaled=true
git-svn-id: trunk@53499 -
2016-11-30 23:47:31 +00:00
ondrej
9d221a90f6 lcl: forms: highDPI: call ScaleBy automatically on LM_DPICHANGED when Scaled=True.
git-svn-id: trunk@53498 -
2016-11-30 23:29:09 +00:00
ondrej
4bccf7cae5 LCL: forms: highDPI: set DesignTimeDPI automatically by the IDE, don't allow to change it manually.
git-svn-id: trunk@53497 -
2016-11-30 23:27:37 +00:00
ondrej
9b0d88e504 LCL: forms: add scaled property. Issue #27075
git-svn-id: trunk@53495 -
2016-11-30 23:24:09 +00:00
mattias
276bf3674b lcl: TTreeNodeExpandedState: added OnGetNodeText
git-svn-id: trunk@53492 -
2016-11-30 22:54:18 +00:00
zeljko
7fecd361fc Qt: do not send focus message if parent form is not visible in LCL. issue #31041
git-svn-id: trunk@53490 -
2016-11-30 21:56:53 +00:00
ondrej
7f6a826e0c win32: HighDPI: handle WM_DPICHANGED message
git-svn-id: trunk@53488 -
2016-11-30 21:26:13 +00:00
juha
0a9e580d30 Revert part of r53459 #7ac7d691f9. It does not work and is not related to node arrows. Issue #30866.
git-svn-id: trunk@53487 -
2016-11-30 15:24:55 +00:00
juha
ea8843fd24 LCL: Ignore AutoSize in ShouldAutoAdjustWidthAndHeight for TEdit and TCombobox. Helps with DPI issues. Issue #30995, patch from AlexeyT.
git-svn-id: trunk@53486 -
2016-11-30 15:07:13 +00:00
juha
85e7d6da06 LCL-GTK2: Use AIndex param for column width. Fix off by 1 (ANewIndex-1) error in TGtk2WSCustomListView.ColumnMove. Solves issue #31024.
git-svn-id: trunk@53485 -
2016-11-30 14:57:40 +00:00
juha
79f0438cbb LCL: AutoAdjust layout also for controls with custom anchors. Helps with High DPI. Issue #31022, patch from AlexeyT.
git-svn-id: trunk@53478 -
2016-11-29 20:43:49 +00:00
ondrej
a86cf7678d LCL: grids: fix WMHScroll handling.
git-svn-id: trunk@53476 -
2016-11-29 11:07:57 +00:00
juha
7ac7d691f9 LCL: Improve TTreeView expand/collapse node arrows in Hi-DPI mode. Issue #30866, patch from Anton Kavalenka.
git-svn-id: trunk@53459 -
2016-11-25 21:01:31 +00:00
ondrej
05df480e06 win32: revert r52438 #4361125363 for TListView and fix WParam parameter. Without it, TListView doesn't scroll (other components scroll happily with forwarded WM_HSCROLL and WM_VSCROLL).
git-svn-id: trunk@53444 -
2016-11-24 23:35:50 +00:00
ondrej
e620f28fae LCL: treeview: fix paint rect for BorderWidth<>0, Issue #31005, patch by Michl
git-svn-id: trunk@53443 -
2016-11-24 23:30:56 +00:00
ondrej
96834c85ee win32: fix showing an alphablend parented form on win 7 and older. issue #26206, patch from Michl
git-svn-id: trunk@53436 -
2016-11-24 15:47:57 +00:00
juha
e3d76eb840 LCL: Simplify LCLType a little. Issue #30996, patch from AlexeyT.
git-svn-id: trunk@53434 -
2016-11-24 10:03:26 +00:00
mattias
bfcced5fad lcl: added KeyCodeToKeyString, issue #30988, from AlexeyT
git-svn-id: trunk@53427 -
2016-11-23 16:00:23 +00:00
juha
cdf1328144 LCL: Fix the display string of shortcut "+". Issue #30973, patch from Michl.
git-svn-id: trunk@53422 -
2016-11-23 10:24:15 +00:00
zeljko
a351c06f40 Qt: fixed crash - regression from r53365 #7ad916287c. issue #30966
git-svn-id: trunk@53389 -
2016-11-20 11:47:26 +00:00
zeljko
4b1324dcbb Qt: do not use Owner but Parent for TMainMenu handle constructor. issue #30942
git-svn-id: trunk@53388 -
2016-11-20 11:15:26 +00:00
bart
1cec552aa5 LCL: Implement nboDoChangeOnSetIndex option for TCustomTabControl.
If set, it will cause OnChange to be fired when PageIndex is changed by code.
This will make it easier to repair user programs that are affected by r53089 #78830476ff.

git-svn-id: trunk@53387 -
2016-11-19 16:45:40 +00:00
juha
b0aef0595b LCL-GTK2: Don't add a a useless #0 when transforming clipboard data to compound text.
git-svn-id: trunk@53380 -
2016-11-18 16:00:57 +00:00
juha
9f319a0f93 LCL-GTK2: More refactoring in ClipboardSelectionRequestHandler. Separate 2 helper procedures.
git-svn-id: trunk@53378 -
2016-11-17 13:32:35 +00:00
juha
f522b7e44a LCL-GTK2: Remove useless "if Buffer=nil" test in ClipboardSelectionRequestHandler. Refactoring. Mostly indentation changed.
git-svn-id: trunk@53377 -
2016-11-17 13:32:33 +00:00
juha
69a39c63a3 LCL-GTK2: Remove trailing zero when copying to clipboard. Issues #21453, #30071, patch from BBaz.
git-svn-id: trunk@53376 -
2016-11-17 13:32:28 +00:00
juha
4261afaff7 LCL-QT: Prevent deleting an empty line from TQtMemoStrings after it is inserted. Fixes bug in ExtTool dialog. Issue #30929.
git-svn-id: trunk@53375 -
2016-11-16 16:40:29 +00:00
ondrej
7ad916287c LCL: customedit: rewrite TextHint emulation, use WinAPI if available.
git-svn-id: trunk@53365 -
2016-11-14 14:19:14 +00:00
juha
bcf6fdd8e7 LCL-Win32: Show PopupMenu for ComboBox, Memo and Panel correctly. Issue #30867, patch from Michl.
git-svn-id: trunk@53361 -
2016-11-12 16:01:25 +00:00
maxim
fc98381e53 Translations: Hungarian translation update by Péter Gábor, bug #30919
git-svn-id: trunk@53356 -
2016-11-12 12:40:05 +00:00
ondrej
2a7fc4046b LCL: win32: prevent sending LM_MOUSEWHEEL twice. Issue #30917
git-svn-id: trunk@53349 -
2016-11-11 21:22:46 +00:00
bart
a0c774c2a2 TCustomEdit: partly revert r53296 #1c88d48964. Inside RealSetText we need call HideTextHint. Issue #0030913.
git-svn-id: trunk@53343 -
2016-11-11 12:13:21 +00:00
mattias
0a383ad832 lcl: delay autosize when form is minimized, bug #30826
git-svn-id: trunk@53334 -
2016-11-10 10:21:47 +00:00
mattias
43fe142cde lcl: clean up
git-svn-id: trunk@53332 -
2016-11-10 08:45:31 +00:00
mattias
79db8762f5 lcl: TTreeView: consider font descend for default node height
git-svn-id: trunk@53331 -
2016-11-10 08:40:06 +00:00
mattias
65d273502f lcl: TTreeView: draw tree lines to center of expand sign, bug #30902, patch from AlexeyT
git-svn-id: trunk@53330 -
2016-11-10 08:35:28 +00:00
bart
40cc9bd161 QT: move class function TQtWSSaveDialog.QueryWSEventCapabilities implementation outside the {$ifndef QT_NATIVE_DIALOGS} define. Fixes compilation on Linux x86_64.
git-svn-id: trunk@53329 -
2016-11-09 17:07:02 +00:00
mattias
6779194d07 lcl: qt: fixed compiling either qt4 or qt45
git-svn-id: trunk@53328 -
2016-11-09 15:28:45 +00:00
ondrej
d725d7f542 lcl: win32: ignore keyup without keydown at program start. issue #30836
git-svn-id: trunk@53324 -
2016-11-09 08:17:42 +00:00
mattias
e2c21deb0f lcl: added DefaultTreeNodeExpandSignSize
git-svn-id: trunk@53323 -
2016-11-08 22:25:57 +00:00
mattias
570ce6207c lcl: TTreeView: published ExpandSignSize
git-svn-id: trunk@53322 -
2016-11-08 16:03:27 +00:00
mattias
5b945f55ec lcl: treeview: added DefaultTreeNodeHeight, patch #30884, from AlexeyT
git-svn-id: trunk@53321 -
2016-11-08 16:00:03 +00:00
mattias
f8c567425b lcl: gtk2: fixed compilation
git-svn-id: trunk@53319 -
2016-11-08 15:53:44 +00:00