|
|
|
|
|
 |
delphi Delphi如何处理UNIX文件存储 |
| |
日期:2007-07-19 12:15:09
点击:16 评论:0 |
|
How to detect if an ASCII textfile uses UNIX or Windows linebreaks?
This function will detect if a textfile is a Windows or UNIX textfile, and while we're at it, let's show two versions of the same function, one beautful and one less beautful. |
|
 |
delphi 如何快速读取文本文件 |
| |
日期:2007-07-19 11:56:54
点击:57 评论:0 |
|
Does anyone know the fastest way to read large text files (10Mb) into a string. Readln is just too slow. |
|
 |
delphi 如何判断输入值是否中文 |
| |
日期:2007-07-17 12:26:35
点击:42 评论:0 |
|
function StrByteType(Str: PChar; Index: Cardinal): TMbcsByteType;
function ByteType(const S: string; Index: Integer): TMbcsByteType; |
|
 |
delphi 如何从剪切板上得到图片文件 |
| |
日期:2007-07-03 10:57:54
点击:22 评论:0 |
|
How to copy a bitmap, picture or metafile from the clipboard? |
|
 |
delphi 如何注册剪切板的格式 |
| |
日期:2007-07-03 10:56:12
点击:9 评论:0 |
|
I want to write raw bytes to the clipboard, but the only functions the TClipboard component offers are SetText, SetAsHandle and SetComponent. Well, I need to set these bytes as a certain format (566 to be exact), so that rules out SetText. SetAsHandl |
|
 |
delphi 切换界面的方法 |
| |
日期:2007-07-03 10:54:27
点击:29 评论:0 |
|
Bored? Like playing tricks on your coworkers? I tested it out on my bosses secretary and it was fun, so I'll share it with you. BUT its just not fun, it also contains usefull classes. |
|
 |
delphi 关闭数字键盘 |
| |
日期:2007-07-03 10:50:58
点击:23 评论:0 |
|
Using Delphi 5, I'm trying to setup a routine that would automatically turn off the NUMLOCK key when loaded. Assume that I am writing a standalone utility that could be loaded in the startup folder to do this function. |
|
 |
delphi 如何区分键盘两个Enter键 |
| |
日期:2007-07-03 10:49:39
点击:30 评论:0 |
|
How to find difference between the two ENTER keys? |
|
 |
delphi 得到键盘输入的语言 |
| |
日期:2007-07-03 10:48:16
点击:19 评论:0 |
|
When my application starts, I need to switch the keyboard language to Greek. Currently I use the statement ActivateKeyboardlayout(0, 0). When I need to switch to English (when the application terminates) I execute the same statement one more time. Th |
|
 |
delphi 在应用层截获键盘消息 |
| |
日期:2007-07-03 10:46:58
点击:42 评论:0 |
|
We can migrate old DOS applications to the Windows environment, but frequently we can't migrate the users :)
|
|
 |
delphi 固定窗体位置 |
| |
日期:2007-07-03 10:44:45
点击:19 评论:0 |
|
How to make a form non-moveable |
|
 |
delphi 如何截获窗口最大化消息 |
| |
日期:2007-07-03 10:42:57
点击:23 评论:0 |
|
How to intercept the maximize command |
|
 |
delphi 截获非可视化组件的消息 |
| |
日期:2007-07-03 10:41:27
点击:11 评论:0 |
|
Sometimes we need a non-windowed component (i.e. one that isn't derived from TWinControl) to receive Windows messages - but non-windowed component don't have window handles. For example suppose we are developing a non-visual component that register |
|
 |
delphi 通过消息发送字符到其它应用程序 |
| |
日期:2007-07-03 10:39:16
点击:20 评论:0 |
|
How can I e.g. "type" programmatically in another application? |
|
|
|
|
|
|
|