-
Content Count
2542 -
Joined
-
Last visited
-
Days Won
147
Posts posted by Uwe Raabe
-
-
-
20 minutes ago, mytbo said:Is there a reason not to write this way?
Yes, it obfuscates what it is doing.
-
TImageCollection holds several Images, where each can have multiple sizes, which renders THE size of an image meaningless. You need to inspect the SourceImages of the Image returned by the collection to get the available sizes. Only if the image has just one SourceImage there also is only one size.
-
15 minutes ago, dummzeuch said:And that's probably because $FFFC is not an Int16.
You might get away with some hard casting then:
TempInt := Int16((UInt16(TempInt) and $FFFC) or (_Invalids and $03));
I wonder if simply disabling range checks for the whole routine would be the best solution here.
-
I also cannot see a problem with multiplying -2048*11 in a signed 16-bit integer either.
-
Does anyone have gender statistics for this forum at hand? What is the percentage of female users here?
-
I customized my Welcome Page to get rid of everything accessing the Internet. That works quite well now.
-
25 minutes ago, alogrep said:that "the vast majority had no problems with this update" is of no sonsolation to me.
Yes, I know that. My comment was more about a global experience, while the individual case may deviate. Because the failure cases are rare, providing a ready to use solution just lacks the necessary data. I already mentioned the GetIt thing, that helped others. Unfortunately each case seem to be somewhat different.
IMHO you have two options now:
- Either try to investigate the underlying cause of your problems and try to fix them or
- remove everything and install it from scratch. The depth of the "remove everything" may influence the outcome. If even that doesn't help, there may be something special with your system. If you have the chance to make an installation on a fresh system (f.i. VM) you should try that first.
If you opt for the first option, I suggest to start the IDE with a new registry key. That allows to skip all user specific components and settings, but keeps the all user ones.
-
1 hour ago, programmerdelphi2k said:my prefere is always a "new fresh install", but others using the "updating" as expected
An "Update" from 11.2 to 11.3 is internally an uninstall followed by an install. Unless explicitly told this procedure keeps the registry settings intact as well as the license information. A "new fresh install" may only be possible with a clean machine which has seen no Delphi ever.
To me, identifying the actual problem and taking actions to fix that seem a more productive approach to me on the long run. Otherwise we will see people struggling with this forever.
BTW, the vast majority had no problems with this update. It is just that we don't hear from them.
-
16 minutes ago, Brandon Staggs said:My original theory was that they have someone with a fat subscription contract that is demanding the feature.
It is more that there are several of those.
-
15 minutes ago, Dalija Prasnikar said:I have no idea what you are trying to say.
I guess, whatever the real intention is, one can always make up a fake reason to do so.
- 2
-
4 minutes ago, Bbommel said:How do I get this precompiled dcu the best way?
When compiling the packages set dedicated DCU output folders for RELEASE and DEBUG. Then compile the packages first with DEBUG configuration and after that with RELEASE configuration (the other way round would make you work with DEBUG packages in the IDE). Then copy all DFM and RES files from the sources to the RELEASE DCU folder.
In your Project Options replace the Search path to the SVG sources with the RELEASE DCU folder from above in the BASE configuration and add the DEBUG DCU folder in the DEBUG configuration. That way the debug dcus are found before the release dcus, while the resource files are still taken from the release folder.
To make the debugger find the source files, select Debugger in Project Options, switch to the DEBUG configuration and add the source folder you just replaced to Source Path.
- 2
-
I found that hint also annoying, especially as some people tend to have no hints and warnings when building their projects. IMHO it would be sufficient to emit it only f.i. in DEBUG mode or even better controlled by a specific DEFINE.
As a workaround you can pre-compile the component units and use only the DCUs for your projects. As you stated, you prefer not to change the code, you can as well go this way - it will even speed up compile time a bit. That doesn't hinder you to debug the sources as long as everything is set up properly.
- 1
-
Some people found it helpful to manually uninstall all GetIt packages before the update and re-install them afterwards. The installer seems not to handle that very well by itself.
- 2
-
33 minutes ago, A.M. Hoornweg said:Longint is platform dependent.
For reference see Platform-dependent integer types
-
I didn't try, but you might succeed with just using Winapi.GDIPOBJ.pas. It calls GdiPlusStartup when not inside a DLL.
- 1
-
1 hour ago, programmerdelphi2k said:just uncheck "enable runtime themes" in your project and change the colors...
Unfortunately that removes a couple of other features from your app.
-
33 minutes ago, Allan Olesen said:if I omit the second doStuff - the one inside the for loop - the for loop will exit cleanly with only 5 passes.
Then the error is most likely located inside that code.
- 1
-
Does it work when you omit doStuff?
- 1
-
1 hour ago, David Heffernan said:That's the scenario I have, with multi select enabled. And yes I walk the entire list checking selected state for each item.
I wonder if OnSelectItem alone works when selection is done by Ctrl-Click or Ctrl-<cursor keys>. In one of my applications I had to wire OnDataStateChange, too. Without that I missed some notifications to react on selection changes.
-
30 minutes ago, Sherlock said:Just how exactly does that work?
With a high enough reputation you have some privileges like elected moderators have.
-
6 minutes ago, David Heffernan said:In my virtual list view I'm getting OnSelectItem fired whenever the selection changes.
Things are a bit more difficult when MultiSelect is allowed. That makes it even more necessary to check the Selected list for synching the ListView state with the external one.
-
A Unit Alias consists of a name-value pair like WinTypes=Winapi.Windows. It is used to map old unit names to the newer ones. A single folder name doesn't match that requirement.
-
3 hours ago, Manlio Laschena said:[dcc32 Fatal Error] F1030 Invalid compiler directive: '-AC:\Users\manli\Documents\Lavori\Projects\2023\Test\InputQuery\;Generics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults;WinTypes=Winapi.Windows;WinProcs=Winapi.Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE'
This looks like a bad Unit Alias entry in the Debug configuration. Open the Project options and select Delphi Compiler. Check the Unit Alias entries for the different build configurations. You may spot the path name somewhere, which may be entered there instead of into the Search Path entry.
Cannot change Font Color when using Custom Style
in General Help
Posted
Remove seFont from the StyleElements property.