Commit Graph

89 Commits

Author SHA1 Message Date
wp_xyz
209c68264b LCL/HintWindow: Removed the out-dated assertion in THintWindow.ActivateHint. Issue #41535. 2025-03-17 19:19:02 +01:00
Maxim Ganetsky
301fcda550 LCL: Don't modify hint position when it is shown via calling HintWindow.ActivateWithBounds method (useful for SynEdit).
Also cleanup useless FActivating assignment (it is a simple field
without any side effects).
2024-11-14 02:47:41 +03:00
rich2014
aeca9749b1 LCL: fix hint window bounds issue introduced in a2057a6., issue #41194 2024-11-12 20:01:06 +08:00
Juha
c3891ad820 Reduce compiler warnings. 2023-07-03 06:23:49 +03:00
ondrej
de2663825e lcl: forms: rename OffsetHintRect parameter NewPos->AOffset to make it clearer
git-svn-id: trunk@55166 -
2017-06-02 20:08:33 +00:00
ondrej
cd76f09f06 LCL: hintwindow: add parameter to shrink window size on OffsetRect.
git-svn-id: trunk@55141 -
2017-06-01 11:40:50 +00:00
ondrej
134d8be1e9 LCL: hint window: fix default (theme) font after r54293 #2bac2f4e5a
git-svn-id: trunk@54304 -
2017-02-28 09:10:14 +00:00
ondrej
87641c3ff9 LCL: hint window: fix multi-DPI-monitor handling
git-svn-id: trunk@54303 -
2017-02-28 08:07:52 +00:00
ondrej
2bac2f4e5a LCL: hint window: use Font instead of Canvas.Font. Issue #31443
git-svn-id: trunk@54293 -
2017-02-27 14:27:52 +00:00
ondrej
69fd011685 lcl: hint window: render user-defined font.
git-svn-id: trunk@52383 -
2016-05-24 18:36:28 +00:00
ondrej
92c16d5513 lcl: revert r52377 #a7f5af9c78, it collided with Gtk2 WS code.
git-svn-id: trunk@52380 -
2016-05-24 03:50:42 +00:00
ondrej
a7f5af9c78 lcl: add new form style fsIgnoreMouseEvents. use it instead of windows-specific WM_NCHITTEST=HTTRANSPARENT.
git-svn-id: trunk@52377 -
2016-05-23 21:47:00 +00:00
ondrej
dc2843ca68 lcl: hintwindow: reduce flicker when changing hint
git-svn-id: trunk@52371 -
2016-05-23 17:54:46 +00:00
juha
09da89b659 LCL: Remove earlier stupid code made by myself.
git-svn-id: trunk@47929 -
2015-02-21 00:19:48 +00:00
mattias
a6d416e72e LCL: implemented THintInfo.ReshowTimeout, issue #27496
git-svn-id: trunk@47918 -
2015-02-20 15:47:36 +00:00
juha
d3f974713b LCL: Implement THintWindow.IsMsgHint. Issue #23076.
git-svn-id: trunk@46695 -
2014-10-28 16:58:57 +00:00
juha
78afb4c373 LCL: Fix THintWindow.CalcHintRect. Issue #26674. Inspired by patch from Denis Golovan.
git-svn-id: trunk@46165 -
2014-09-09 10:17:54 +00:00
juha
b189500498 LCL: Revert some of THintWindow changes because of Delphi compatibility. Issue #26516
git-svn-id: trunk@45973 -
2014-07-25 16:56:19 +00:00
juha
2e25d04b3c LCL: remove unlogical side-effect from THintWindow.CalcHintRect.
git-svn-id: trunk@45939 -
2014-07-20 18:27:48 +00:00
juha
ba96b04000 IdeIntf: use 2 hint windows in THintWindowManager, one for text and one for rendered HTML.
git-svn-id: trunk@45938 -
2014-07-20 18:27:21 +00:00
juha
24ce977ee8 LCL, SynEdit: improve THintWindow methods. Fixes code completion offset problem, issue #26509
git-svn-id: trunk@45937 -
2014-07-20 18:26:37 +00:00
mattias
447a8e5a56 LCL: fixed uninitialized result
git-svn-id: trunk@45862 -
2014-07-14 17:10:21 +00:00
juha
39ed58f021 IdeIntf: new THintWindowManager to encapsulate hint stuff. Fix THintWindow when it has a sub-control. Make code browser use the new feature.
git-svn-id: trunk@45827 -
2014-07-11 16:31:06 +00:00
bart
c77e5896f2 THintWindow: adjust for BidiMode in CalcHintRect.
Slight improvement on r43367 #9e3191112e.

git-svn-id: trunk@43373 -
2013-11-04 17:33:48 +00:00
bart
9e3191112e THintWindow: adjust for BidiMode in CalcHintRect.
Issue #0025275.

git-svn-id: trunk@43367 -
2013-11-03 22:39:34 +00:00
paul
951d803183 lcl, win32: use GetTextExtent as suggested in MSDN to get the correct text bounds before use of DrawThemeText() (issue #0021964)
git-svn-id: trunk@41646 -
2013-06-10 05:58:07 +00:00
paul
f597e810ce lcl: move HandleAllocated check to UpdateRegion of THintWindow
git-svn-id: trunk@41572 -
2013-06-07 01:25:38 +00:00
zeljko
805c867bae THintWindow: do not call UpdateRegion from SetColor if handle isn't allocated yet.
git-svn-id: trunk@41510 -
2013-06-03 12:24:55 +00:00
paul
aab787525a lcl: reset hint window region when color is changed to non-default
git-svn-id: trunk@41502 -
2013-06-03 02:22:33 +00:00
juha
ecd140c985 Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
mattias
b74cf37371 THintWindow.CalcHintRect: return empty rect if hint is empty
git-svn-id: trunk@38031 -
2012-07-24 08:44:33 +00:00
paul
b56160fe13 lcl: cleanup hintwindow
git-svn-id: trunk@35171 -
2012-02-06 07:58:27 +00:00
paul
0ac2f35d4e lcl: move WN_NCHITTEST handling of THintWindow into LCL to allow overriding (issue #0019594)
git-svn-id: trunk@31468 -
2011-06-30 06:30:12 +00:00
paul
ffe4871a0b lcl: don't set hint window region if window handle is not allocated
git-svn-id: trunk@29645 -
2011-02-22 07:21:00 +00:00
paul
5647965f20 lcl: set hint window region on bounds change
git-svn-id: trunk@29643 -
2011-02-22 06:47:55 +00:00
paul
76bf4fb595 win32: draw hint text using theme services (part of issue #0018799)
git-svn-id: trunk@29641 -
2011-02-22 02:04:16 +00:00
mattias
247a494741 LCL: THintWindow: clean up
git-svn-id: trunk@29338 -
2011-02-02 22:05:23 +00:00
paul
bfe85e683f ide, synedit, lcl: don't construct resourceless forms using Create constructor - use CreateNew instead
git-svn-id: trunk@29261 -
2011-01-31 03:38:11 +00:00
martin
0be96fe127 HintWindow: fixed width calculated to negative value, if hint coordinates are completely outside the monitor, part of issue #0017906
git-svn-id: trunk@28348 -
2010-11-19 17:27:03 +00:00
zeljko
d9483c8847 LCL: make THintWindow ActivateHint() delphi compatibile (reorderd call, now ActivateHint() is called from ActivateHintData(), fixes #16829
git-svn-id: trunk@26465 -
2010-07-05 06:10:37 +00:00
paul
1b38c456a8 lcl: draw hintwindow with themes if color = clDefault
git-svn-id: trunk@25426 -
2010-05-15 15:07:30 +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
paul
a439c61216 lcl: formatting
git-svn-id: trunk@24056 -
2010-03-17 03:07:12 +00:00
mattias
34cfafc138 THintWindow.ReleaseHandle: check if handle allocated
git-svn-id: trunk@22877 -
2009-11-30 19:01:37 +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
mattias
44e1c40eb8 THintWindow.Paint removed DTCENTER for delphi compatibility
git-svn-id: trunk@21996 -
2009-10-03 15:45:06 +00:00
paul
7d97f14c33 lcl: THintWindow drawing:
- remove TThemeServices.DrawTooltip, move content to DrawElement for teTooltip
  - call standard ThemeServices.DrawElement in THintWindow.Paint (now tooltips looks native on windows xp, vista, gtk, gtk2)

git-svn-id: trunk@19619 -
2009-04-25 14:40:54 +00:00
paul
793393a8d6 lcl: start native drawing of tooltip windows
- add TThemeServices.DrawTooltip
  - reimplement tooltip drawing through ThemeServices in case of color = clInfoBk
  - implement native tooltip drawing in ThemeServices for Windows with enabled themes

git-svn-id: trunk@19616 -
2009-04-25 12:56:04 +00:00
paul
4d49f2b6aa lcl: limit hintwindow by monitor instead of screen (issue #0010330, part of issue #0013446)
git-svn-id: trunk@19377 -
2009-04-12 08:55:50 +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