首页 > TAG信息列表 > RadioGroup1

在 case 语句中使用字符串

在 case 语句中使用字符串 非常遗憾 Delphi 的 case 语句不支持字符串, 但我觉得这也可能是基于效率的考量; 如果非要在 case 中使用字符串, 也不是不可以变通, 这里提供了五种方法. 本例效果图: 代码文件:unit Unit1; interface uses Windows, Messages, SysUtils, Var

RadioGroup 的使用

RadioGroup 的使用 //获取 RadioGroup 项目名称 procedure TForm1.RadioGroup1Click(Sender: TObject); begin Text := RadioGroup1.Items[RadioGroup1.ItemIndex]; end; //当点击 RadioGroup 中的第几个选项时... procedure TForm1.RadioGroup1Click(Sender: TObject);

Delphi 与 DirectX 之 DelphiX(81): TDIB.ColoredLine();

Delphi 与 DirectX 之 DelphiX(81): TDIB.ColoredLine(); 本例效果图: 代码文件:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DIB, StdCtrls, ExtCtrls; type TForm1 = class(TForm) D