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
Month: April 2016
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