TabControl控件中。Tabs里添加了几行后。用什么事件来分别控制选中不同的Tab时的响应事件!后续问题陆续提出!
解决方案 »
- 调用dll报错的问题
- 字符串2007/2/26和2007/02/26如何都变成20070226
- 动态创建菜单,并处理其事件的问题
- 初学求助:Delphi7编写的DLL可以在C++Builder5/6下调用吗???
- 新手提问,delphi中有用来等待什么也不作的函数么???盼望答复(20分)
- 请问能否在我的数据库打包程序中自动生成数据库?
- 城聘Delphi软件开发人员
- dbExpress用来连SQL Server数据库的问题,没法解决,请帮忙
- 关于程序包装的问题!星期一用,急!!!
- 负载平衡问题,大师级人物请进来,入门者回避,送分!
- 报表在win98与win2000打印问题
- 数据库建模与系统建模的关系,希望有开发经验都来谈谈!!!
begin
if form1.TabControl1.TabIndex=2 then
showmessage('你选中的是第三页');
end;
//不知是不是楼主要的
begin
showmessage(tpagecontrol(sender).ActivePage.Caption);
showmessage(tpagecontrol(sender).Pages[ tpagecontrol(sender).ActivePageIndex].Caption);
end;
>>>>>>>>>>>Fires after a tab has been selected.type
TNotifyEvent = procedure(Sender: TObject) of object;
property OnChange: TNotifyEvent;Description
Write an OnChange event handler to perform specific actions each time after a tab has been selected. This event also fires after all tabs have been deselected. The currently selected tab index can be obtained via the TabIndex property. The Sender parameter specifies the tab control, whose selected tab has been changed.This event allows you to update a tab control each time the selected tab changes. This is required by the TcxTabControl control since its page must be updated manually when a user selects a tab.
上面也说得很清楚喔,
那就应该可以逐渐显示的!2.想让程序出现一个倒计时,如30秒内没有鼠标和键盘的操作,就会自动退出.如果有操作,就退出倒计时!同时,把倒计时的时间显示到LABEL上!
窗口关闭时,从右至左拉幕式关闭.
ANimateWindow(handle,500,AW_HOR_NEGATIVE+AW_Hide+AW_SLIDE);关于倒计时:用一个timer控件就可以,很简单的,试试.
不在图形界面下选择数据源
而是通过代码指定:
ADOTable1.ConnectionString:='Provider=MSDASQL.1;Password=1234;Persist Security Info=True;User ID=test;Data Source=DM4;Initial Catalog=TEST';
怎么连不上去啊?
老是报错。