Draw a color outline around TForm

January 23, 2020 0

Create a message handler for the Windows Message WM_NCPAINT message. The following example paints a 1 pixel red border around the frame of the form. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, […]

Copy the clipboard to a stream and restore it again

January 17, 2020 0

Copy the clipboard to a stream and restore it again from delphi uses clipbrd; procedure CopyStreamToClipboard(fmt: Cardinal; S: TStream); var hMem: THandle; pMem: Pointer; begin Assert(Assigned(S)); S.Position := 0; hMem := GlobalAlloc(GHND or GMEM_DDESHARE, S.Size); […]

Android – TextureView

January 23, 2020 0

If you want to display a live video stream or any content stream such as video or an OpenGL scene, you can use TextureView provided by android in order to do that. In order to […]

Android – Support Library

January 23, 2020 0

When you develop an app on a latest version of android like 5.x and you also want it to run on those devices which are running older versions of android like 3.2 e.t.c. you can’t […]

Android – Spelling Checker

January 23, 2020 0

The Android platform offers a spelling checker framework that lets you implement and access spell checking in your application. In order to use spelling checker , you need to implement SpellCheckerSessionListener interface and override its methods. Its […]

Highlight Text with TMemo

January 17, 2020 0

Highlight with TMemo Impossible? try this… by Gon Perez-Jimenez May’04 This is a sample how to work with highlighting within TMemo component by using interjected class technique. Of course, this code is still uncompleted but […]

Arduino – Communication

April 25, 2017 0

Hundreds of communication protocols have been defined to achieve this data exchange. Each protocol can be categorized into one of the two categories: parallel or serial. Parallel Communication Parallel connection between the Arduino and peripherals […]

Understanding the Basics of Delphi Programming

June 22, 2019 0

Beginner developers eager to master the Delphi programming language should already be familiar with the basics of Microsoft Windows. Learning Delphi is easiest if you approach it from a guided, tutorial-based frame of reference. Foundational Concepts Get started […]

Reduce a form by right-clicking on the titlebar

January 23, 2020 0

Reduce a form by right-clicking on the titlebar type TForm1 = class(TForm) private { Private-Deklarationen } FOldHeight: Integer; procedure WMNCRButtonDown(var Msg: TWMNCRButtonDown); message WM_NCRBUTTONDOWN; public { Public-Deklarationen } end; var Form1: TForm1; implementation {$R *.DFM} […]

Pascal – Loops

July 5, 2019 0

There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first, followed by […]

How to Place a CheckBox into a DBGrid

April 18, 2017 0

This is the first article, in the series of articles named "Adding components to a DBGrid". The idea is to show how to place just about any Delphi control (visual component) into a cell of a DGBrid. CHECKBOX […]

Pascal – Sets

July 5, 2019 0

A set is a collection of elements of same type. Pascal allows defining the set data type. The elements in a set are called its members. In mathematics, sets are represented by enclosing the members […]

Follow on Facebook