指示灯,怎么搞!!

CoolSoftBird 2002-12-11 12:20:19
兄弟,我要实现,象红灯绿等一样的闪,怎么实现!!
...全文
47 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Tern 2002-12-25
  • 打赏
  • 举报
回复
搜一下LED控件,好多,实在不行www.playicq.com下abakus24,
GaoLun 2002-12-18
  • 打赏
  • 举报
回复
我这里有工业控件好像可以满足你的要求

要的话给我个消息

提前声明 我没有用过!~
我看过Demo 到时候你也可以去看看~
xdspower 2002-12-17
  • 打赏
  • 举报
回复
完成一个函数接口,再调用一个设备就可以了,你想怎么就怎么了!!
myy 2002-12-11
  • 打赏
  • 举报
回复
在那里闪啊?说清楚啊。
iec 2002-12-11
  • 打赏
  • 举报
回复

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
int count;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
if(count==0)
{
Shape1->Brush->Color=clRed;
Sleep(100);
count=1;
Shape1->Refresh();
}

else
{
Shape1->Brush->Color=clGreen;
Sleep(100);
Shape1->Refresh();
count=0;

}
}
//---------------------------------------------------------------------------
iec 2002-12-11
  • 打赏
  • 举报
回复
if(count==0)
{
Shape1->Brush->Color=clRed;
Sleep(100);
count=1;
Shape1->Refresh();
}

else
{
Shape1->Brush->Color=clGreen;
Sleep(100);
Shape1->Refresh();
count=0;

}

13,873

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧