

PeterPanettone
Members-
Content Count
1360 -
Joined
-
Last visited
-
Days Won
5
Everything posted by PeterPanettone
-
Get the list of all file extensions associated by double-click with a specific application?
PeterPanettone replied to PeterPanettone's topic in Windows API
That's why I wrote "multiple, countless references and back-references." Has no one really ever written a function to enumerate the list of file extensions associated with a specific application? -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Another interesting possibility is to create DLLs using Python that Delphi applications can use. Python provides several ways to create DLLs, including using the ctypes module or the cffi module or compiling Python code to a shared library using tools like Cython or PyInstaller. -
In Delphi 12, when pressing F1 in Vcl.Buttons.TSpeedButton.SelectedImageIndex in ObjectInspector, after a while, this topic is displayed: Can anyone confirm this? Is the Embarcadero Quality Portal already online?
-
Delphi 12 Local CHM Documentation
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Ian Barker wrote in a comment on that page on March 7, 2024: "Ultimately it should be a superior solution. It’s taken longer than we expected to get it launched but we are almost ready with it now." -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
As a developer who deals a lot with design, I find Delphi's lack of layout options a thorn in my mind. The layout features in Delphi are one-dimensional (e.g., property Align). Delphi lacks a layout component like TdxLayoutControl from DevExpress for a professional design: In practice, the lack of professional layout capabilities results in many bumbling-looking applications, with controls that sometimes overlap when run on a device with display settings different from those of the original application developer. This shortcoming has given Delphi the unjustified reputation of being an unprofessional amateur developer tool. That's why my greatest wish for the Delphi community would be a native layout control from Embarcadero. Or even better, Embarcadero should buy the TdxLayoutControl component from DevExpress and integrate it into the Professional version. This would give Delphi the professionalism it deserves due to its other capabilities. -
How to get the DoNotShowAgain state of the TaskDialog in Delphi 12?
PeterPanettone posted a topic in Windows API
I am trying to encapsulate the TaskDialog properties, its execution, and its result in a single unit: unit MyTaskDialogDNSAExpandable; interface uses Vcl.Dialogs, Winapi.Windows, Vcl.Controls; type TDialogResultWithDNSA = record ModalResult: Integer; DoNotShowAgain: Boolean; end; function ShowTaskDialogWithDNSAAndInfoText(const ATitle, AContent, ADNSACaption, AInfoText: string): TDialogResultWithDNSA; implementation function ShowTaskDialogWithDNSAAndInfoText(const ATitle, AContent, ADNSACaption, AInfoText: string): TDialogResultWithDNSA; var TaskDialog: TTaskDialog; begin TaskDialog := TTaskDialog.Create(nil); try TaskDialog.Caption := ATitle; TaskDialog.Text := AContent; TaskDialog.CommonButtons := [tcbOk, tcbCancel]; TaskDialog.VerificationText := ADNSACaption; TaskDialog.ExpandedText := AInfoText; TaskDialog.Flags := [tfUseCommandLinks, tfAllowDialogCancellation, tfExpandFooterArea]; // Execute the task dialog if TaskDialog.Execute then begin Result.ModalResult := TaskDialog.ModalResult; Result.DoNotShowAgain := ??? // how can I get the DoNotShowAgain state of the TaskDialog end else begin Result.ModalResult := mrCancel; Result.DoNotShowAgain := False; end; finally TaskDialog.Free; end; end; end. But how can I get the DoNotShowAgain state of the TaskDialog in Delphi 12? -
By using MSAA (Microsoft Active Accessibility), I can get the MenuHandle of a menu when the menu is displayed. How can I get the boundaries of the displayed menu from the MenuHandle?
-
Thank you very much; I am now able to find the menu rectangle: function PAGetDisplayedMenuRectangle: TRect; var MenuWnd: HWND; begin // Initialize the result rectangle to zero FillChar(Result, SizeOf(Result), 0); // Find the window handle of the active menu MenuWnd := FindWindowEx(0, 0, MAKEINTATOM($8000), nil); if MenuWnd <> 0 then begin // If the menu window is found, get its rectangle if not GetWindowRect(MenuWnd, Result) then begin // If GetWindowRect fails, reset the result to zero FillChar(Result, SizeOf(Result), 0); end; end; end;
-
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
How do you set DPI Unaware mode? -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Have you really asked an AI for a bike rental? Are you serious? -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
The irony was implicit. -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
In a large project, I always have to wait for code insight. -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Low-quality AI answers often are the result of poor prompts. However, I agree with the last statement. -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Strongly agree. -
Expert and Package Manager for multiple RAD Studio IDEs by David Hoyle
PeterPanettone posted a topic in Delphi IDE and APIs
I have found the Expert and Package Manager for multiple RAD Studio IDEs by David Hoyle one of the most helpful tools for Delphi: https://github.com/DGH2112/Expert-Manager I think it's a pity that it hasn't been developed any further since 2019. -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
You don't believe in AI? -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
An IDE with AI capabilities could easily accomplish such things. -
What new features would you like to see in Delphi 13?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
The best refactoring feature for Delphi I have found so far is in MMX. But new refactoring tools could certainly implement even better and smarter refactoring features, e.g.: 1. Search the entire project for identical or similar code fragments and automatically replace them with a common procedure. 2. Automatically insert selected code into a (new) class. Etc. -
David Hoyle has made a 3rd Party IDE Help Delphi plugin: https://github.com/DGH2112/3rd-Party-IDE-Help The Readme says: "This is a RAD Studio wizard/expert/plug-in that allows you to easily configure 3rd-party HTML files for use with the IDE to get context-sensitive help for 3rd party code. It also provides quick access to these files." The ReadMe also says: "To configure the 3rd party help, open the IDE's Options dialogue and look under the 3rd Party node for an options page entitled "3rd Party Help"." I have compiled the project in Delphi 12, and it created TPIDEHelpRS120.dll. I copied TPIDEHelpRS120.dll to C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\ and restarted the Delphi 12 IDE. However, this 3rd Party node cannot be found in the Delphi 12 IDE Options: How do you install this plugin in Delphi 12?
-
David Hoyle's 3rd Party IDE Help in Delphi 12?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Yes, it could be done in RegEdit. However, I find it more comfortable to do it in one of the tools mentioned by Thomas: GExperts expert manager or Expert and Package Manager for multiple RAD Studio IDEs from David Hoyle. This is the entry in the Registry: -
David Hoyle's 3rd Party IDE Help in Delphi 12?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
I have added the ImageEn CHM help file. Unfortunately, the F1 context-sensitive help does not work with ImageEn. It always opens the help for Vcl.Controls.TCustomControl instead: Perhaps a specific index file for the ImageEn CHM help file is missing? -
David Hoyle's 3rd Party IDE Help in Delphi 12?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
It worked: -
David Hoyle's 3rd Party IDE Help in Delphi 12?
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Good idea! I will try it. -
Expert and Package Manager for multiple RAD Studio IDEs by David Hoyle
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
In fact, it does work "out of the box" for Delphi 12, although it's from 2019: Obviously, David has created a flexible architecture for this tool, so it works for all future Delphi versions. -
Delphi 12 Update 1 is not displayed in the IDE About dialog
PeterPanettone posted a topic in Delphi IDE and APIs
After having installed R120.patch1-20240131 in DElphi 12: Delphi 12 Update 1 is not displayed in the IDE About dialog: This log file was created: patch.log Can anyone confirm this?