Select folder dialogYesterday I posted how to display standard dialog for files (open/save). Today I want to show how you may use stamndard dialog when user must select a folder/directory.Use the next function:uses SysUtils, ShlObj;function
這裡先說說兩個概念:Theme(主題)和 Visual Style 。Theme 最早出現在 Microsoft Plus! for Windows 95 中,是 Windows 中 Wallpaper、Cursors、Fonts、Sounds 、Icons 等的設定值集合。Visual Style 在 Windows XP 中才被引入,Visual Style 規定了 Contorls 的外觀,另外還包括使用這些外觀的一套 API 。使用 Visual Style 必須要
How to store an Object into an integer?Sometimes you want to use your beloved, worldclass component, but it has no room for saving data anywhere. But to build a connection to that data you need is maybe to complex. Here is an easy way to deal with
How to make a child form listen to broadcasted messagesIn the sender add a procedure such as: procedure TForm1.Button2Click(Sender: TObject);var Receiver: THandle; buffer: array[0..1023] of char; Data: TCopyDataStruct;begin Receiver :=
How can I read native text of current locale? Sometimes in application we want to show a text with description of current used locale.For example, "english", "russian", "ukrainian", "chinese" etcFor this task you can use VerLanguageName function
Use GetSystemDefaultLangID function. It returns identifier of system language. And after that, use VerlanguageName procedure. It translates this identifier to PChar-string. procedure TForm1.Button1Click(Sender: TObject);var Ident: Integer; MyLang: