ccidnet????

出版日期:1998-10-26 总期号:771 本年期号:81

本期导读
综合消息
硬件
软件
电脑工作室
控件库 rx library 2.40

安富国

  名称:rx library 2.40

  大小:851kb

  类型:freeware,带有全部源码

  下载地址:http://202.102.15.149/~person/afg/delphi

  简介:rx library 2.40(以下简称rx)拥有50多个增强型元件,大量有用的对象以及丰富的过程和函数库。兼容delphi 1.0,2.0,3.0以及borland c++ builder 1.0。作者是三位很有实力的俄罗斯程序员。

  rx有许多很有用的元件。最常用到的当数trxtrayicon了,它能把程序的图标放到windows95右下角工具栏里,在设计期间就能见到,还能“秀”出动画效果;trxdbgrid能在tdbgrid元件里按行、列或单元改变字体、背景颜色,还能在.ini文件和注册表中记忆各列位置、宽度等属性;tqbequery允许使用qbe(query-by-example)语句;tsqlscript让你在一个query中使用多个sql语句;trxspeedbar可在运行时上下左右四边任意摆放;tdbstatuslabel能够显示数据集(dataset)的状态(或dbase、paradox表的记录号);此外,还有形象的跟头式开关,带有计算器的数字输入框、数字式小闹钟、gif动画、骰子、带有阴影的标签、按下后能弹出下拉式菜单的按钮……


  rx最宝贵的也许是它的丰富的过程(函数)库,如fileutil.pas、bdeutils.pas、apputils.pas、dateutil.pas、dbutils.pas、strutils.pas。光看名字就知道准有好东西。这些.pas文件里含有许多精致的、“懒人”专用的函数库。下面这几个是用bde api做的:

  procedure setindex(table:ttable; const indexfieldnames:string);

  procedure packtable(table:ttable); //特别有用

  procedure reindextable(table:ttable);

  这几个用了winapi:

  function findform(formclass:tformclass):tform;

  function findshowform(formclass: tformclass; const caption: string):tform;

  function showdialog(formclass:tformclass):boolean;

  procedure appbroadcast(msg, wparam:longint;lparam:longint);

  这些是各种各样的日期型函数:

  function currentyear:word;

  function isleapyear(ayear:integer):boolean;

  function dayspermonth(ayear,amonth:integer):integer;

  function firstdayofprevmonth:tdatetime;

  由于篇幅所限,无法一一列举。想深入学习delphi的话,不妨仔细地从这里多多汲取营养,保证每次都会有新的发现。

  rx唯一的缺点是只提供俄文的帮助!readme.txt虽为英文,但很笼统。rx目前已有for delphi 4.0的版本。