This had me puzzled for a minute: [delphi] program CodeLibrarian; {$R *.res} uses GX_VerDepConst in '..\..\Framework\GX_VerDepConst.pas'; procedure ShowCodeLib; external GExpertsDll; begin ShowCodeLib; end. [/delphi] This is all the code there is to the stand alone Code Librarian tool that comes with GExperts. Then it dawned me. It's much easier to understand if you add a … Continue reading Why blank lines matter
Author: dummzeuch
Enhancement for the Sort editor expert
One of the editor experts in GExperts that come in handy once in a while is the Sort Expert. All it does is take the selected lines and sort them alphabetically. Now, it can sort ascending, as before, descending (not sure when you might want to do that, but since I was at it, why … Continue reading Enhancement for the Sort editor expert
FixInsight vs. GExperts
Roman Yankovsky has been so kind to donate a FixInsight license to my open source projects, in particular to GExperts. And since he just blogged about running FixInsight against the latest FMX I did the same with GExperts. The result is not too bad actually. All included there are 235 warnings, optimization and convention messages. … Continue reading FixInsight vs. GExperts
Enabling a form while another form is being shown modally
There was one shortcoming in my Delphi IDE explorer that has irked me since the beginning: It was disabled while a modal dialog was shown in the IDE, so there was no way to inspect the controls on the current dialog. The option to follow the focus ameliorated this a bit because it was now … Continue reading Enabling a form while another form is being shown modally
Do not enumerate on TTreeNode.Item
Note to self: Do not enumerate on TTreeNode.Item, it's highly inefficient. Consider this code: [delphi] procedure SelectFocusedControl(_ActCtrl: TWinControl; _Parent: TTreeNode); var j: Integer; CtrlItem: TTreeNode; begin for j := 0 to _Parent.Count - 1 do begin CtrlItem := _Parent.Item[j]; if CtrlItem.Data = _ActCtrl then begin CtrlItem.Selected := true; break; end else SelectFocusedControl(_ActCtrl, CtrlItem); end; end; … Continue reading Do not enumerate on TTreeNode.Item
More enhancements for the search path dialog
After I found and fixed the problem with the Grep results dialog I returned to enhancing the search path dialog. Last time I added an option to replace the ListBox on that dialog with a Memo. Many people liked that change but of course, people being people, they started to complain about missing features. In … Continue reading More enhancements for the search path dialog
Safe event hooking for Delphi IDE plugins revisited
A while ago I blogged about Safe event hooking for Delphi IDE plugins. I have used this method in GExperts as well as my Delphi IDE Explorer and it worked fine for both plugins. Today I looked at the code again and didn't like it very much. Yes, it works fine and there aren't any … Continue reading Safe event hooking for Delphi IDE plugins revisited
If your OnePlus One won’t turn on but only vibrates
Note to self: If your OnePlus One smartphone won't turn on but only vibrates for a short time when you press the power button, that probably means the battery is dead. If it has already been on the charger for some time, make sure that you didn't plug the charging cable upside down into the … Continue reading If your OnePlus One won’t turn on but only vibrates
Calculating Offsets into the Delphi editor buffer
I have already mentioned the AutoTodo wizard for Delphi when I was trying to contact the Author Peter Laman. He hasn't responded and nobody could give me any contact information. (Peter, if you ever read this, please contact me using my Google+ profile.) The animated GIF in that post shows how the new AutoTodo expert … Continue reading Calculating Offsets into the Delphi editor buffer
Problem accessing a Windows XP share from a Windows 7 PC
Today a problem drove me crazy: I tried to map a share on a PC running Windows XP from another computer running Windows 7. I kept getting the error that the username or password are invalid. On the other hand, accessing a share on the Windows 7 PC from the Windows XP PC worked fine. … Continue reading Problem accessing a Windows XP share from a Windows 7 PC