What is TMonitor in Delphi System unit good for?

TMonitor combines the notion of a critical section (or a simple mutex) along with a condition variable. You can read about what a “monitor” is here: http://en.wikipedia.org/wiki/Monitor_%28synchronization%29 Any place you would use a critical section, you can use a monitor. Instead of declaring a TCriticalSection, you can simple create a TObject instance and then use … Read more

How to make a combo box with fulltext search autocomplete support?

The following example uses the interposed class of the TComboBox component. The main difference from the original class is that the items are stored in the separate StoredItems property instead ofthe Items as usually (used because of simplicity). The StoredItems are being watched by the OnChange event and whenever you change them (for instance by … Read more

Rotate bitmap by real angle

tl;dr; Use GDI+ SetWorldTransform With WinAPI’s SetWorldTransform you can transform the space of device context: rotate, shear, offset, and scale. This is done by setting the members of a transform matrix of type XFORM. Fill its members according the documentation. procedure RotateBitmap(Bmp: TBitmap; Rads: Single; AdjustSize: Boolean; BkColor: TColor = clNone); var C: Single; S: … Read more

ORM for DELPHI win32 [closed]

Marco Cantu is a big believer in InstantObjects: Home Others include DObject: http://www.macrobject.com/en/dobject/ and tiOPF http://tiopf.sourceforge.net/Doc/overview/index.shtml You also might be interested in the G Framework: http://code.google.com/p/g-framework/

Object Pascal vs Delphi?

Object Pascal was an object oriented extension of Pascal developed by Apple. The first version of Delphi was evolved from Turbo Pascal. The object oriented features in Turbo Pascal were, rightly, considered not fit for purpose. So Borland developed Delphi 1 and incorporated much of the Apple Object Pascal language. So the language for the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)