Commit Graph

65735 Commits

Author SHA1 Message Date
Bart
188b9b863d TaskDialog: add some comments about the meaning of parameters in the callback function for the Win32 WS code. 2023-08-01 12:58:41 +02:00
Bart
70a178c88e TaskDialog: add OnTimer event. 2023-08-01 11:44:25 +02:00
Bart
213b32e0c7 TaskDialog: add OnExpand event (native Windows dialog only). 2023-08-01 11:06:26 +02:00
Juha
13d54fc4cb LCL: Refactor Colorbox code. Issue #40376, patch by n7800. 2023-08-01 11:55:14 +03:00
Bart
5ed01b1884 TaskDialog: TLCLTaskDialog: fix calculation of height of labels. Issue #40421. 2023-07-31 23:22:59 +02:00
Bart
72376eacf2 TaskDialog: add comment in Win32 WS code about (not yet supported) field of TTaskDialogConfig. 2023-07-31 23:20:43 +02:00
mattias
9874d86630 IDE: check for star directories when searching unit path 2023-07-31 20:20:05 +02:00
mattias
daafbbbe7f IDE: clean up 2023-07-31 19:24:00 +02:00
mattias
ff3d7af6ce ide: fixed star directory (not) matching . and .. 2023-07-31 19:24:00 +02:00
Bart
4be2e3a717 TaskDialog: don't convert '\n' to LineFeed in captions:
Reason: a user might set a button or radiobutton caption to 'Save in "c:\new_folder\new.work"'
See also issue #38676
2023-07-31 18:53:33 +02:00
dsiders
abd09e7ad9 Docs: LCL/forms. Adds TApplication.GetControlAtPos topic for changes in 53cd3db19c. 2023-07-31 17:18:43 +01:00
dsiders
87ebca2b25 Docs: LCL/controls. Updates topics for changes in 53cd3db19c. 2023-07-31 17:18:42 +01:00
Bart
05c9e4aa76 TaskDialog: implement some Delphi compatible events:
- OnDialogConstructed
- OnDialogCreated
- OnDialogDestroyed
- OnVerificationClicked
Part of Issue #31399.
2023-07-31 17:52:11 +02:00
Bart
0bed0f65a3 TLCLTaskDialog: fix setting default button for emulated taskdialog. 2023-07-31 16:44:01 +02:00
Bart
925ffd19ad TLCLTaskDialog: remove unused variable and related comment. 2023-07-31 15:40:44 +02:00
Bart
d33896d6c2 TaskDialog: fix default button for native Vista+ dialog. 2023-07-31 15:39:22 +02:00
Bart
c2e2a8e352 TLCLTaskDialog: refactor. No functional changes. 2023-07-31 15:17:17 +02:00
Bart
1aea03f44f TaskDialog: implement CommandLinkHint for emulated TaskDialog as well. Resolves issue #31395. 2023-07-31 14:57:19 +02:00
Bart
fff6152dde TaskDialog: start implementing CommandLinkHint property for TTaskDialog.Buttons.
For now only functional on Windows Vista+ (native dialog).
2023-07-31 14:42:13 +02:00
mattias
d4693029bc lcl: fixed compile 2023-07-31 13:52:38 +02:00
mattias
076ab60876 lcl: less hints 2023-07-31 13:52:24 +02:00
mattias
e4e743849f ideconfig: added RelateDirectoryMasks and tests 2023-07-31 13:30:36 +02:00
mattias
3e4403e691 codetools: skip star direcory when listing star directory 2023-07-31 13:30:36 +02:00
mattias
aa8213a2b4 lcl: gtk3: fixed getting style constraints 2023-07-31 13:30:36 +02:00
mattias
7eb893ea23 lcl: gtk3: fixed gtk warnings with docked forms 2023-07-31 13:30:36 +02:00
mattias
7d429b8940 anchordocking: clean up 2023-07-31 13:30:36 +02:00
Bart
c3823da117 LCL: first try at implementing TApplication.ActiveFormHandle property.
Needs black-box testing against Delphi, especially when either no active form exists yet, or
when the active form's Active property is False (e.g. minimized, hidden of a non-LCL form is shwoing modally).
Also needs to be debated wether the return value should be TLCLHandle.
2023-07-31 13:10:57 +02:00
Maxim Ganetsky
50e7d46c66 LCL: cleaned up some unused variables, issue #40414 2023-07-31 02:44:43 +03:00
rich2014
770e392d8e Cocoa: Fix GetKeyState (eg. Command/Option/Shift) that the principle is similar to 53cd3db
completely eliminate keystroke issue caused by improper reading of modifier keys.
it's because in TCocoaWidgetSet.GetKeyState(), the modifier key should not be obtained in real time, but should be obtained from the current event.
for example, when pressing Command+R in the IDE, it was originally a shortcut key for Run, but sometimes the character R is entered inadvertently.
2023-07-30 23:14:39 +08:00
rich2014
53cd3db19c LCL: Fix #40416: Mouse Message issue (Enter/Level/Move) 2023-07-30 21:55:11 +08:00
rich2014
5b6b7955cb Cocoa: simplify TCursorHelper by b184a37 2023-07-30 17:12:58 +08:00
Bart
15989485bf TTaskDialog: Win32WS: handle '\n' in caption of (radio)buttons (for backwards compatibility). 2023-07-29 23:59:33 +02:00
Bart
1729b47bbe TTaskDialog: remove obsolete comment in TWin32WSTaskDialog.Execute. 2023-07-29 23:35:55 +02:00
Bart
bff41e1f5d TTaskDialog: In Execute, use the Handle of the current active form for the ParentWnd parameter.
Based upon the documentation of Delphi: https://docwiki.embarcadero.com/Libraries/Alexandria/en/Vcl.Dialogs.TCustomTaskDialog.Execute
It makes Execute honour the tfRelativeToWindow flag.
2023-07-29 23:29:53 +02:00
Bart
732cfd1460 TTaskDialog: make TWin32WSTaskDialog.Execute published (as it's ancestor). 2023-07-29 23:14:23 +02:00
Bart
26361d1105 TTaskDialog: TWin32WSTaskDialog.Execute:
- If tfSizeToContent is set, set cxWidth to zero.
  Because https://learn.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-taskdialogconfig says so.
  For simple cases, I did not notice any difference though.
- Remove commeted out code and excessive whitespace.
2023-07-29 23:12:05 +02:00
wp_xyz
b4f8ae34b5 Tools/Lazdatadesktop: Fix LCLScaling in Windows. 2023-07-29 18:56:31 +02:00
Maxim Ganetsky
5652e05efd IDEDebugger: fixed crashes when manipulating breakpoints in BreakPoints dialog, patch by Martin 2023-07-29 16:19:30 +03:00
Juha
63bee05d67 IDE: Join boolean variables of TUnitInfo into FFlags set. 2023-07-29 15:18:11 +03:00
wp_xyz
fe828040ce Tools/Lazdatadesktop: Final (?) tuning of the application icons. By Roland Hahn. 2023-07-29 13:11:06 +02:00
wp_xyz
11b92b26c8 LCL/SpeedButton: Fix position of caption when no glyph is present. 2023-07-29 00:36:46 +02:00
dsiders
df99227b6b Docs: LCL/buttons. Updates content in the TCustomSpeedButton.MeasureDraw topic. 2023-07-28 23:07:32 +01:00
wp_xyz
07da832b28 LCL/SpeedButton: Fix positioning of Glyph and Caption. Issue #40410. Based on patch by Luca Olivetti. 2023-07-28 19:40:50 +02:00
Maxim Ganetsky
7de77442b7 IDE: regenerated translations and updated Russian translation 2023-07-28 20:06:42 +03:00
mattias
9bb7b14f14 lazbuild: fixed crash 2023-07-28 17:25:03 +01:00
mattias
ad640c5e38 ide: added Laz_FullVersion to compiler option cfg script 2023-07-28 16:55:03 +01:00
Bart
f48fe7983e TTaskDialog: add a comment why Execute always returns True. 2023-07-28 17:20:27 +02:00
Bart
033512d064 Revert "TTaskDialog: fix Result value of Execute method:"
Apparently the Delhi docs arw wrong (as in: Delphi does not do what the dosc say: it awill always return True, as long as the dialog was shown.
2023-07-28 17:13:41 +02:00
rich2014
e277fcd78b Cocoa: Cursor compatible with TGraphicControl 2023-07-28 22:51:18 +08:00
Bart
cbd7579c15 TTaskDialog: fix Result value of Execute method:
- previously it returned True if the dialog succeeded to show, even if the dialog was cancelled.
- now it is False if the dialog is canceled.
- See https://docwiki.embarcadero.com/Libraries/Alexandria/en/Vcl.Dialogs.TCustomTaskDialog.Execute
2023-07-28 16:31:35 +02:00