-
Content Count
2839 -
Joined
-
Last visited
-
Days Won
168
Everything posted by Uwe Raabe
-
Re-Index a PageControl.PageIndex
Uwe Raabe replied to Henry Olive's topic in RTL and Delphi Object Pascal
Sorry, but that code doesn't make sense. Pages is an array property. Why exactly do you need to change the PageIndex? After all each TabSheet also has a TabIndex property, which gives the index in the visible tabs or -1 if the tab is invisible. -
Thanks, now I see what you are after. The Vcl entry collects also the Vcl.ww* ones and the latter somewhat acts as a subgroup. Seems like the algorithm has to be fine tuned a bit. I will add that test case to the suite and see how I can make it green.
-
I'm not sure if I understand that right. You might add a sample uses clause showing what you expect and what you get. (That would also make it easier to create a new test case) As I read the value shown, there is no "Vcl.ww*", but "Vcl.ww" which is handled as "Vcl.ww.*". Entries without a trailing star specify a unit scope.
-
Indeed, the PngObject contains the files needed for versions below Delphi 2009, while since then these units are part of the Delphi standard libraries and can must be omitted.
-
You should download all files from the repository.
-
Anybody changing FileVersion directly in dproj file?
Uwe Raabe replied to Mike Torrettinni's topic in General Help
So do I -
Anybody changing FileVersion directly in dproj file?
Uwe Raabe replied to Mike Torrettinni's topic in General Help
I learned that creating a separate build project is mandatory even for small and/or short lived projects. Alone that it just gives the customer a professional experience when you are able to fix a bug and provide a new setup for download in a few minutes just by committing and pushing the changes. -
Not sure if that qualifies, but Windows App Store comes to mind.
-
StrToDate cannot handle dd-MMM-yy format
Uwe Raabe replied to Dave Novo's topic in RTL and Delphi Object Pascal
Nothing I am aware of, but it can be achieved easily with a wrapper like this: S := '05-Apr-17'; for I := 1 to 12 do S := S.Replace(fs.ShortMonthNames[I], I.ToString); newDate := StrToDate(S, fs); Of course there is some room for improvements, but you get the idea. -
StrToDate cannot handle dd-MMM-yy format
Uwe Raabe replied to Dave Novo's topic in RTL and Delphi Object Pascal
This is documented behavior: System.SysUtils.StrToDate -
Install PngComponents - it registers the old format per default.
-
Filing a feature request may be helpful.
-
Recent Delphi versions also allow this construct: function GenerateAppGUID: TGuid; begin Result := TGUID.Create('{481E85E5-3874-4FCB-BEA1-B65D640AE6D3}'); end;
-
We use DUnitX and it discovers all our silly mistakes before release
Uwe Raabe replied to Lars Fosdal's topic in DUnitX
Well, Code Coverage can also tell you which parts of a tested method was left out and thus needs more tests. OK, not that much helpful when you don't do tests. It is not meant to be executed in the customers production use, there you are right. That is more what collecting the areas actually used are for. -
Open MMX Code Explorer properties and navigate to the History page. Under Drop Bookmarks set Before modifying source drop bookmark on cursor position to none.
-
Same project different platform base executable
Uwe Raabe replied to Clément's topic in Delphi IDE and APIs
In Project Options - Building - Build Events select All configurations - Windows 32-bit platform. Then in Post-build events set Commands to ren $(OUTPUTPATH) $(OUTPUTNAME)32$(OUTPUTEXT) Note, that you won't be able to debug that. -
is it possible to create an Enumeration Type at runtime ?
Uwe Raabe replied to bravesofts's topic in Algorithms, Data Structures and Class Design
What are you trying to achieve? -
New unit for managing IDE/Tools menu entries available
Uwe Raabe replied to TurboMagic's topic in Delphi Third-Party
In SOFTWARE\Embarcadero\BDS the BDS part can be changed with the -r command line switch. On the other hand, nit all sub keys of SOFTWARE\Embarcadero belong to valid Delphi installations, so it needs some more heuristic to find them. -
New unit for managing IDE/Tools menu entries available
Uwe Raabe replied to TurboMagic's topic in Delphi Third-Party
I suggest to make the BDS part of IDERootKey as an additional parameter to cover the case where the IDE is started with the -r option. A welcomed extension would also be to find all these sub keys for given or all Delphi versions. -
Konopka VCL Controls not included in GetIt in delphi community latest edition
Uwe Raabe replied to ahmed.atayib's topic in VCL
The false part of this car analogy is that the car is not FREE, you are only allowed to drive it for one year without paying for it. At the end even that analogy is false right from the beginning as it is rather difficult to find someone letting you drive its car for free - at least not for one year. It would also be a bit tricky to get some extras installed to that car - all for free. All this confirms my conviction that any car analogy used for software issues can only be fundamentally flawed. -
Generic event handler for a generic class
Uwe Raabe replied to CoMPi74's topic in Algorithms, Data Structures and Class Design
I beg to disagree here. If it is seen as an invalid construct the compiler should complain. As long as the compiler is fine with such a construct, there are only implementation details in Object Inspector responsible for the crash. There is nothing except missing developer time that should prevent to fix those. We can argue about the priority, though. -
Generic event handler for a generic class
Uwe Raabe replied to CoMPi74's topic in Algorithms, Data Structures and Class Design
Strictly speaking it is TOnChange(ASender: TCustomEdit<Integer>; AValue: Integer), but I suspect a general lack of OI support for that. You should file a QP report for that. -
Generic event handler for a generic class
Uwe Raabe replied to CoMPi74's topic in Algorithms, Data Structures and Class Design
Just a guess, but I suspect the Object Inspector cannot cope with the generic event. -
AFAIK that is not possible. It is hard-coded in delphicoreide<xxx>.bpl
-
thread-safe ways to call REST APIs in parallel
Uwe Raabe replied to David Schwartz's topic in Network, Cloud and Web
Of course I do, but that cannot be fully described in a few sentences of an answer to your question. F.i. it took more than two hours to explain only the basics to a co-worker and we had to make a cut as it was too much information to grasp all at once. After all I developed that in several weeks (if not months) to get all things running fast and stable. I also don't know if what is working for us will work for your use case. My plans are to do a more detailed blog post on this, but as that is going to target a broader audience the examples given will probably fall in the incrementing integers category, too.