JonRobertson
Members-
Content Count
278 -
Joined
-
Last visited
-
Days Won
6
Everything posted by JonRobertson
-
Favorite feature(s) of other editors that Delphi does not offer
JonRobertson replied to dummzeuch's topic in Delphi IDE and APIs
I agree that Undo would be beneficial in the form designer. Saying that, "change history" is one of many benefits of good source control, such as git. I use "Git diff with previous version" quite often with both DFM and PAS files. And DPROJ, for that matter. I have Beyond Compare installed with Delphi IDE integration. Unfortunately I am not a fan of BC's Delphi integration. It has bit me more than once. -
I don't understand the question. On my Windows 11 laptop, TOSVersion.ToString returns Windows 11 (Version 22H2, OS Build 22621.2715, 64-bit Edition) You could look at TOSVersion.Create in System.SysUtils.pas. TOSVersion.Name should also return "Windows 11"
-
What is the benefit of sorting the Uses clause?
JonRobertson replied to RCrandall's topic in MMX Code Explorer
Is it published? I looked on https://blog.dummzeuch.de/ but could not find it there or in GExperts. -
Are wildcards supported in () groups? Is this list valid for MMX? Winapi;System.Win;System;Data;Vcl;(hyie*,ie*,imageen*);pp*;Rz*;ra*;vcl.ww* Ctrl-Alt-U is moving (hyie*,ie*,imageen*) below everything in the list. My expectation is that my () group is invalid and MMX is ignoring it. Before: uses Winapi.Windows, System.Classes, System.Generics.Collections, System.ImageList, System.SysUtils, Data.Win.ADODB, Vcl.ActnPopup, Vcl.BaseImageCollection, Vcl.Buttons, Vcl.Controls, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.Forms, Vcl.Graphics, Vcl.ImgList, Vcl.Menus, Vcl.PlatformDefaultStyleActnCtrls, Vcl.StdCtrls, Vcl.OleServer, Vcl.VirtualImageList, hyiedefs, hyieutils, iemio, iemview, ieview, iesettings, iexBitmaps, iexLayers, iexProcEffects, iexRulers, iexToolbars, iexUserInteractions, imageenio, imageenproc, imageenview, RzButton, RzCmboBx, RzLabel, RzPanel, RzSplit, RzShellDialogs, SVGIconImageCollection, SVGIconImageListBase, SVGIconVirtualImageList, OutlookXP, uAisDocument, uUserSettings, udmResources, udmDocResources; After: uses Winapi.Windows, System.Classes, System.Generics.Collections, System.ImageList, System.SysUtils, Data.Win.ADODB, Vcl.ActnPopup, Vcl.BaseImageCollection, Vcl.Buttons, Vcl.Controls, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.Forms, Vcl.Graphics, Vcl.ImgList, Vcl.Menus, Vcl.PlatformDefaultStyleActnCtrls, Vcl.StdCtrls, Vcl.OleServer, Vcl.VirtualImageList, RzButton, RzCmboBx, RzLabel, RzPanel, RzSplit, RzShellDialogs, hyiedefs, hyieutils, iemio, iemview, ieview, iesettings, iexBitmaps, iexLayers, iexProcEffects, iexRulers, iexToolbars, iexUserInteractions, imageenio, imageenproc, imageenview, SVGIconImageCollection, SVGIconImageListBase, SVGIconVirtualImageList, OutlookXP, uAisDocument, uUserSettings, udmResources, udmDocResources;
-
Can not install Delphi Community Edition 11.2
JonRobertson replied to Kurt G's topic in General Help
You can give a reaction to a post, such as Thanks. Hover your mouse over the heart icon in the lower right corner of a post to select a reaction. -
What is the benefit of sorting the Uses clause?
JonRobertson replied to RCrandall's topic in MMX Code Explorer
How do you configure groups like (ZipForge)? I could not find that in MMX Properties or MMX Project Options. I would like to do this for ImageEn and maybe others. ImageEn units do not have a consistent prefix suitable for grouping. Thanks! Thanks -
"Auto complete used units" does not recognize units without unit scope.
JonRobertson posted a topic in MMX Code Explorer
I sent an email to support@mmx-delphi.de. I decided to post here in case someone knows a solution aside from turning off "Auto complete used units" under Pascal->Editing. When adding an event, MMX does not recognize when the required unit is already in the uses clause without a unit scope. For example, adding an event for TDataSet.OnNewRecord adds "Data.DB" to the uses clause, even though "DB" is already in the uses clause. [MMX] FormUsers(12): Auto Completed uses clause. Added: Data.DB On compile/build, this results in: [dcc32 Error] E2004 Identifier redeclared: 'Data.DB' This is a legacy project. Adding unit scopes to each unit reference is on the to-do list. I do feel this is a flaw in MMX that could be corrected if MMX can distinguish the unit scope from the unit name. Jon -
"Auto complete used units" does not recognize units without unit scope.
JonRobertson replied to JonRobertson's topic in MMX Code Explorer
I wanted to say that yesterday I took the time to configure MMX to group and sort uses clauses they way I wanted and it is working great. I expect you hear this a lot, but thank you for your help and keeping MMX alive. I did not have the opportunity to use Code Explorer when it was a ModelMaker product. Yesterday I took the time to go through most of the options and will be changing my coding habits to take advantage of more MMX features. -
D11.3, Search, Whole words only - randomly checked
JonRobertson replied to mvanrijnen's topic in Delphi IDE and APIs
For me, it was always "Entire Scope" that would become enabled for some reason. Any idea if that is also fixed in Delphi 12? It has not happened to be so far. But it was always sporadic and I have not spent enough time in Delphi 12 to have an opinion on that issue. -
sk4d.dll Delphi 12 when app becomes 'SKIA' enabled question
JonRobertson replied to rudy999's topic in General Help
I have SVGIconImageList installed and don't see a related sk4d.dll. The only two sk4d dlls on my system are under (Program Files)\Embarcadero\Studio\23.0\ -
"Auto complete used units" does not recognize units without unit scope.
JonRobertson replied to JonRobertson's topic in MMX Code Explorer
The behavior in that project was due to the .DPR not having unit scope names in its uses clause. -
"Auto complete used units" does not recognize units without unit scope.
JonRobertson replied to JonRobertson's topic in MMX Code Explorer
I will attempt to recreate sometime today. Thanks Uwe. -
"Auto complete used units" does not recognize units without unit scope.
JonRobertson replied to JonRobertson's topic in MMX Code Explorer
Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;System;Xml;Data;Datasnap;Web;Soap;Winapi;Data.Win;System.Win I recently started this position and inherited this project. At the time, was partially migrated from Delphi 7 to Delphi 10. I have not modified the Unit Scope Names in the project as I have not needed to. -
"Auto complete used units" does not recognize units without unit scope.
JonRobertson replied to JonRobertson's topic in MMX Code Explorer
I must be doing something wrong. In MMX Properties, Pascal, Sorting, I enabled "Group and sort uses clauses". But Ctrl-Alt-U changes this uses ShlObj, SysUtils, Windows; to this uses Winapi.ShlObj, SysUtils, Windows; and I expected this uses System.SysUtils, Winapi.ShlObj, Winapi.Windows; This is using Delphi 11.3 and MMX 15.1.7 build 2567. Thanks -
Does anyone know if it is possible to prevent RAD Studio from showing the "Opening file" popup window? I am specifically interested in preventing it from appearing when GExpert's Set Component Properties occurs before/during compile. Thanks
-
My recommendation is to uninstall any Parnassus add-ons. Shortly after I started using Delphi 11, I installed the Bookmarks and Parallel Debugger add-ons. I was getting constant exceptions, especially when a debugging session ended or I closed the IDE. Once I uninstalled those two add-ons, I no longer had problems with Delphi 11 throwing exceptions. I have Delphi 11.3 and 12 installed on same laptop here and I am not having those issues.
-
"Auto complete used units" does not recognize units without unit scope.
JonRobertson replied to JonRobertson's topic in MMX Code Explorer
Thank you. I am still a new user to MMX and still exploring the options. Unfortunately I have not had time to read the user manual from cover to cover. I am also coming back to the Delphi community after being away (due to job availability) for a couple of years. So I have a little catching up to do. I have not come across UsesCleaner. That sounds like a huge time saver. -
class EOleSysError with message 'Class not registered'
JonRobertson replied to SneakyPeaky99's topic in Delphi IDE and APIs
On a machine where the application is working, run regedit and look for an entry at one of these locations: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{AB885FB5-0A94-11DC-9263-0002B34C1718} HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{AB885FB5-0A94-11DC-9263-0002B34C1718} If you find an entry at either location, look for a key named LocalServer or InProcServer32. The default value should be the full path of the file that contains the COM class. -
Although I wish Delphi had fewer defects, I wish my own software did as well. ;) Keep in mind that the stability could be caused by an add-on, if you have any installed. When I started using Delphi 11 on a daily basis, it was crashing at least 5 or 6 times a day. It crashed after every single "run with debugging" session ended. And it typically threw exceptions any time I closed the IDE (even if no other exceptions had occurred during that instance). Luckily I had a pattern to investigate. Immediately after I installed Delphi 11, I opened Get-It to see what was available. One of the add-ons I installed was Parallel Debugger from Parnassus. Once I uninstalled Parallel Debugger, the IDE immediately became mostly stable. Since uninstalling Parallel Debugger helped so much, I also uninstalled their Bookmarks add-on. For me now, Delphi 11.3 may throw an exception once a week.
-
I just installed Phython4Delphi. The first demo, Demo01, throws an EPyRuntimeError (s_type = 'RuntimeError', s_value = '') when I click Execute Script on the simple print(2+2) example. The fourth line of Run_CommandAsObjectWithDict calls CheckError, which calls PyErr_Occurred, which does not return nil. I am just getting started with Python (for fun), so I am in the dark about why this error would occur or what needs to be done to resolve the issue. I have python 3.12 installed, both 32-bit and 64-bit. I have tested Demo01 as 32-bit and 64-bit and both throw the same exception. I can launch python at a command prompt and execute the script with no error. Any idea why this is occurring? Thanks.
-
I cloned the repo from github and copied everything to Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source. Now the demos are working. Thanks.
-
I installed three packages from GetIt: Python4Delphi 1.0 Python Environments 1.0 Lightweight Python Wrappers 1.0 I am using Delphi 11.3.