Jump to content

Uwe Raabe

Members
  • Content Count

    2839
  • Joined

  • Last visited

  • Days Won

    168

Everything posted by Uwe Raabe

  1. Try $(SanitizedProjectName)
  2. Uwe Raabe

    Format uses clause

    I have my doubts that this will ever be switched on - at least not for a longer time. The option will be all or nothing. It will affect all uses clauses in all units, even in all projects if it were not restricted to the Project options. Especially when the Auto Format option is enabled it will kick in whenever MMX manipulates any of the uses clause. A possible way out of this could be to offer another MMX menu command instead of an always effective option (similar to the Format Uses - Alternate command). As long as the units are already sorted alphabetically, any subsequent format will keep that order. Nevertheless, if the demand for such an option is high enough I can see what can be done.
  3. Uwe Raabe

    RAD Studio 11.1 Patch 1

    I wouldn't bet on that. It should work as before when you start the IDE in High DPI unware mode. As older versions are nor High DPI aware anyway, one can just use the new features of D11 this way.
  4. Uwe Raabe

    Format uses clause

    No, that is intended. Sorting is only done on the group level, but keeps the order inside that group intact. That still allows for some control over the unit order - at least inside a group.
  5. Uwe Raabe

    ImageLists. One or Multiple??

    When High DPI support comes into play, there is near to none alternative to a central TImageCollection and individual TVirtualImageLists on each form. Using some SVG ImageCollection reduces the amount of different image sizes needed as well as the DFM size storing them. For years I practiced the several TImageLists in one datamodule approach, but that changed very quickly with High DPI support in my applications.
  6. Uwe Raabe

    Deploy without overwriting the DB?

    When you add System.StartUpCopy to the project, all files deployed to the StartUp subfolder of the app are copied to the Home directory on startup - if they don't exist there.
  7. Uwe Raabe

    How to change the icon of the active tab in TTabControl?

    You can use a local class helper to access the protected method: type TTabControlHelper = class helper for TTabControl procedure UpdateTabImages; end; procedure TTabControlHelper.UpdateTabImages; begin inherited UpdateTabImages; end;
  8. Uwe Raabe

    Survey of Delphi Versions in use??

    When you create a new topic you see the Content tab, but there is a second tab named Poll. That should give you all the tools you need.
  9. Well, the problem is not that it cannot find unit Vcl.ExtCtrls.dcu, but that it states it cannot compile that unit (which is expected and as stated above ist is something we definitely don't want). My guess is that your project or some 3rd party library contains a unit that is used by Vcl.ExtCtrls, but it doesn't match the one that comes with Delphi. You might want to scan the dcu output folder of your project and find dcu files that are also present in C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\win32\debug or C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\win32\release. When you found one or more, you have to search where they came from.
  10. Uwe Raabe

    MacOS universal binary - does delphi do this?

    No problem: New macOS ARM 64-bit Target Platform
  11. If you look a bit closer you can see that this entry contains a "Directory of " at the beginning.
  12. Well I said Win32\Debug because that is the output folder you specified in your project. It is relative to your project directory. Your answer implies that you deleted all dcu files from the Delphi library folder. So yes, that was extraordinary foolish. I also have no better plan than to re-install Delphi then. BTW, your library path contains a weird entry at the end: I have no idea how that made it into that list. Please note one rule: You should never be forced to compile the Delphi standard units. You may deliberately do so for one or another, but you should definitely know why.
  13. Have you deleted all dcu files in Win32\debug after removing those paths?
  14. Several parts of the included Delphi units make use of ZLib, but that is not the root of your problem. The real question is: why does the compiler want to compile Delphi units in the first place. This can happen when the Delphi source folders are part of the search path. So I suggest you inspect the Delphi library paths for any references to $(BDS)\Source and remove those.
  15. Uwe Raabe

    Parnassus Bookmarks for Delphi 11 Alexandria?

    The plugins are integrated in the IDE and thus inherited the DPI support of the IDE. Although there are ways to make mixed DPI happen, that still needs developer capacity to implement.
  16. Uwe Raabe

    Parnassus Bookmarks for Delphi 11 Alexandria?

    It seems that these plugins don't have a high enough priority to get the necessary resources attached. It is expected that there will be High DPI issues. As there are still plenty of similar issues in the IDE, I can understand which ones they target first.
  17. Of course, that could be done. IMHO it is just a bit less elegant.
  18. Come on! It is not that bad when we use a class helper: type TCookieManagerHelper = class helper for TCookieManager private function GetCookiesAsString: string; procedure SetCookiesAsString(const Value: string); public property CookiesAsString: string read GetCookiesAsString write SetCookiesAsString; end; function TCookieManagerHelper.GetCookiesAsString: string; var lst: TStringList; begin lst := TStringList.Create(); try for var cookie in Cookies do lst.Add(cookie.GetServerCookie); Result := lst.CommaText; finally lst.Free; end; end; procedure TCookieManagerHelper.SetCookiesAsString(const Value: string); var lst: TStringList; begin lst := TStringList.Create(); try lst.CommaText := Value; for var S in lst do begin var uri := Default(TURI); var cookie := TCookie.Create(S, uri); uri.ComposeURI('', '', '', cookie.Domain.Substring(1), 0, cookie.Path, nil, ''); AddServerCookie(cookie, uri); end; finally lst.Free; end; end;
  19. Uwe Raabe

    How to set "WelcomePageFile" property in *.dproj?

    If we are talking about the same thing AFAIK it is called project page and it is accessible in the project menu.
  20. Uwe Raabe

    FB-3 Update Sql

    Then you should limit the WHERE clause to that condition. Currently the WHERE clause updates all records in DELIVERY_DETAIL where there exists a record in ORDERDETAIL with the same LINENO - probably that are all records.
  21. Well, I cannot see what db is in the exe path and what tables it contains. The $(RUN) variable is simply expanded to the path of the exe file. So the cause of your problem is most likely the db found in that folder. Note that the $(RUN) expansion will only give correct results at runtime and not while in the designer.
  22. That is because you give a ConnectionDefName: The given value is the name of an entry in the definition file with the required values for that connection. My first question was targeting exactly that, simply because you gave most of the entries in your code as well - so why the def name. If you remove this assignment in your code as well as in the object inspector of the connection, this message should disappear.
  23. You showed a screenshot of the Object Inspector for the TFDConnection. There can be seen the Params.Database value with c:\temp\drivers.db. Change that to $(RUN)\Drivers.db and your program will look for Drivers.db in the folder where the exe is. (I don't know how to explain it better.)
  24. Set Params.Database to $(RUN)\Drivers.db
  25. What are the settings in the connection definition with name Drivers?
×