Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/02/25 in all areas

  1. Anders Melander

    Change a forms OnShow Event?

    It's really hard to understand what you are doing from your description. Please show us the code of a minimal example instead (and please use the code tag). // Like this
  2. https://www.finalbuilder.com/resources/blogs/code-signing-with-inno-setup-and-signotaur
  3. pyscripter

    EdgeBrowser flicker

    In case anyone has a use for it, here is how you can set the browser color scheme: procedure TForm2.SetColorScheme(Dark: Boolean); var Profile: ICoreWebView2Profile; Scheme: COREWEBVIEW2_PREFERRED_COLOR_SCHEME; begin if Dark then Scheme := COREWEBVIEW2_PREFERRED_COLOR_SCHEME_DARK else Scheme := COREWEBVIEW2_PREFERRED_COLOR_SCHEME_LIGHT; (EdgeBrowser.DefaultInterface as ICoreWebView2_13).Get_Profile(Profile); Profile.Set_PreferredColorScheme(Scheme); end; function IsStyleDark: Boolean; var LStyle: TCustomStyleServices; LColor: TColor; begin Result := False; LStyle := TStyleManager.ActiveStyle; if Assigned(LStyle) then begin LColor := LStyle.GetSystemColor(clWindow); // Check if the background color is dark Result := (LColor and $FFFFFF) < $808080; end; end; Form2.SetColorScheme(IsStyleDark); Form2.EdgeBrowser.NavigateToString(Html);
  4. dummzeuch

    Change a forms OnShow Event?

    Most likely @Attila Kovacs is right: Rather than setting the OnShow event your code is calling it. Show us some actual code.
  5. It works brilliantly, even better than I thought! 😉 When I finish my project, I'll include your name in the credits.
  6. Anders Melander

    UI code optimization logic

    Very nice!
  7. No. Probably you even cannot if these packages are compiled as runtime-only. In fact you will rarely have a need to compile your application with any designtime package unless the author missed to separate the designtime part from the runtime part. Note, that you have to deploy all directly and indirectly used runtime packages with your application if you compile it with runtime packages. To better answer your question: The DCP file for a BPL package is what you reference in the requires section of a package project file. It allows the using package to see all the units inside the package and f.i. link to the contained routines. The DCP itself also contains the name of the BPL file - usually with the LIBSUFFIX. The difference of a unit contained in a DCP file and a DCU file is that the DCU is linked into the compiled package or application, while the DCP provides the entry points to the BPL.
×