Category: Delphi General

  • How can I use TChromiumOSR in Delphi

    TChromiumOSR (Off-Screen Rendering) is a component that allows you to use the Chromium web browser engine in a Delphi application without displaying a user interface. You can use it to render web pages off-screen, manipulate the DOM, and execute JavaScript. To use TChromiumOSR in Delphi, you will need to install the CEF4Delphi package, which is…

  • How can I send email in Delphi

    To send an email in Delphi, you can use the IdSMTP component from the Internet Direct (Indy) library. Indy is a third-party library for Delphi that provides support for client and server communications over various Internet protocols, including SMTP (Simple Mail Transfer Protocol), which is used to send email. Here is an example of how…

  • How can I change monitor resolution in Delphi

    To change the monitor resolution in Delphi, you can use the ChangeDisplaySettings function from the Windows API. This function allows you to change the display settings for the current desktop, including the screen resolution, color depth, and refresh rate. Here is an example of how to use the ChangeDisplaySettings function to change the monitor resolution…

  • How can I make scrollable popup menu in Delphi

    To create a scrollable popup menu in Delphi, you can use the TPopupMenu component and set the AutoPopup property to True. This will cause the menu to appear as a floating window when the user clicks on a control that is associated with the TPopupMenu component. You can then add menu items to the TPopupMenu…

  • How can I make web application in Delphi (Part1)

    Delphi is a programming language and software development kit (SDK) for building Windows, macOS, Android, and iOS applications. You can use Delphi to create a web application by using one of the following approaches Create a web server application using the Internet Direct (Indy) library Indy is a third-party library for Delphi that provides support…

  • How can I make implode and explode array in Delphi

    In Delphi, you can use the StringReplace function from the System unit to implement the implode function, which concatenates the elements of an array into a string. Here is an example of how you can implement the implode function in Delphi: function Implode(const Delimiter string; const Values array of string) string; var I Integer; begin…

  • How can I use System.Actions in Delphi

    The System.Actions unit in Delphi provides classes for creating and managing action lists and action objects. Action objects are components that represent a specific action that can be performed, such as opening a file or printing a document. Action lists are containers for action objects, and they provide a way to group related actions and…

  • How can I use System.IniFiles in Delphi

    The System.IniFiles unit in Delphi provides classes for reading and writing INI files. INI files are plain text files that store configuration information in a simple key-value format. Here is an example of how you can use the TMemIniFile class from the System.IniFiles unit to read and write values to an INI file uses System.IniFiles;…

  • How can I use System.DateUtils in Delphi

    The System.DateUtils unit in Delphi provides various functions for working with dates and times. Here is an example of how you can use some of the functions from the System.DateUtils unit: uses System.DateUtils; var Today, Tomorrow: TDateTime; begin Today := Date; WriteLn(‘Today is ‘, DateToStr(Today)); Tomorrow = IncDay(Today, 1); WriteLn(‘Tomorrow is ‘, DateToStr(Tomorrow)); if IsToday(Tomorrow)…

  • How can I use System.Devices in Delphi

    The System.Devices unit in Delphi provides classes and functions for working with device-related information, such as device names, device paths, and device capabilities. Here is an example of how you can use the TDeviceInfo class from the System.Devices unit to get information about a device uses System.Devices; var DeviceInfo: TDeviceInfo; begin DeviceInfo := TDeviceInfo.Create; try…