论坛


2008年10月2日 星期四

Sqlite 的Delphi控件[转]

minyoad| minyoad的技术坛子-delphi |21:46:46

1、ASqlite——最好用的Sqlite控件(支持2.8和3.0)   http://www.aducom.com/sqlite/index.html(失效)http://www.aducom.com/cms/download.php  2、zeoslib——最稳定的sqlite控件(支持2.8)   http://www.zeoslib.net/ [转...

判断数据库到了 第一条记录 或 最后一条记录

幸福苹果| 幸福苹果-delphi |18:25:00

.Bof第一条记录,.Eof最后一条记录,适用于DataSet,Table,Query控件等。例如:if AdoQuery1.Bof thenbtn_Up.Enable:=False;if AdoQuery1.Eof thenbtn_Down.Enable:=False;  类别:delphi编程 查看评论

Delphi:Bookmark用法

幸福苹果| 幸福苹果-delphi |17:39:00

uses:DB单元varbk:TBookMark;begin         //编辑记录bk:=Fmain.IBQuery1.GetBookmark(); //取得Bookmark书签IBQuery1.Close;IBQuery1.SQL.Clear;IBQuery1.SQL.Text:='select * from Table1 order by id desc'; &nbs...

Delphi:发送文字到当前程序中

幸福苹果| 幸福苹果-delphi |17:37:00

Hnd:=getfocus;//获得焦点句柄SendMessage(Hnd,WM_SETTEXT,0,integer(Pointer('我爱昵'))); //将'我爱你'字串放在焦点类别:delphi编程 查看评论

DBGrid 奇偶行颜色

幸福苹果| 幸福苹果-delphi |17:35:00

procedure TFmain.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;DataCol: Integer; Column: TColumn; State: TGridDrawState);begin          if   gdSelected   in  ...

Delphi:向剪切板中复制字符,发送文字

幸福苹果| 幸福苹果-delphi |17:28:00

向剪切板中复制字符uses clipboard;ClipBoard.AsText := '我爱你';类别:delphi编程 查看评论

DBGrid:选择行颜色

幸福苹果| 幸福苹果-delphi |17:28:00

procedure TFmain.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;DataCol: Integer; Column: TColumn; State: TGridDrawState);begin{DBGrid非选择行颜色字体}DBGrid1.Canvas.Brush.Color := clBlue;DBGrid1.Canvas.Font.Color := clWhite;DBGrid1.Defa...

DBGrid:文字颜色,字体颜色

幸福苹果| 幸福苹果-delphi |17:27:00

示例1(字段值等于某个值):procedure TFmain.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;DataCol: Integer; Column: TColumn; State: TGridDrawState);begin      if   (DataSource1.DataSet.FieldByName('ID')...

DBGrid鼠标单击选择一整行

幸福苹果| 幸福苹果-delphi |17:11:00

设置如下属性:DBGrid1.Options.dgEditing=True类别:delphi编程 查看评论

获取DBGrid选择列值

幸福苹果| 幸福苹果-delphi |15:59:00

遍历DBGrid,取如下值:DBGrid.SelectedField.FieldName就是当前字段的字段名.DBGrid.SelectedField.DisplayLabel就是当前字段的标题.DBGrid.SelectedField.DisplayText就是当前选择的单元格的内容.类别:delphi编程 查看评论

MECSUtils ver1.07

CodeGear| CodeGear-CodeCentral Delphi |05:49:02

MECSUtils unit constains several functions and classes to support international characters with AnsiString/UnicodeString/WideString.# Please check source code for detail.Classes:--------------------- - PUnicodeChar(*1) - PUTF8Char - TEastAsianWidt...

Sending Messages to Non-Windowed applications from Delphi

About.com| About.com Delphi Programming |03:00:44

Advanced Delphi :: Learn how to send messages (signals) to non-windowed applications by using AllocateHWND and DefWindowProc. In this article we also briefly describe what Delphi does in the background...

DDevExtensions 1.9.1 for Delphi/C++Builder 2009

CodeGear| CodeGear-CodeCentral Delphi |01:31:12

Some Features:* Adds a dialog to set the VersionInfo for multiple projects in a projectgroup* Adds a backup system that creates backups of unsaved files when you compile or execute a project.* Adds an improved View Units, View Forms and Use Units ...