关于CB5中的事件__published问题

vchoushen6 vchoushen6 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
有两个类的结构如下:
class T1 : public TPersistent
{
......
__published:
__property int x = { read=Fx, write=Fx};
__property TNotifyEvent OnChanged = { read=FOnChanged,write=FOnChanged }

};
class T2 : public TComponent
{
private:
T1 * t1;
__published:
//如何在这里不用R/W函数,直接发布T1类的事件
};
T2放在Form中后,可以看到T1发布的属性,但事件属性却不行,由于我在T2中嵌入了多个类,要是用R/W函数的话,很麻烦,如何能不用R/W函数来完成这个功能呢?




...全文

相关推荐

CB-PCI-Express-Base-5.0r1.0-2019-05-22

CB-PCI_Express_Base_5.0r1.0-2019-05-22

Kernel_RDMA

DA16200 FreeRTOS SDK实战:从Wi-Fi连接到低功耗物联网应用开发

在物联网(IoT)开发中,超低功耗和高性能Wi-Fi连接是核心需求。FreeRTOS作为一款广泛应用的实时操作系统,为嵌入式设备提供了可靠的任务调度和资源管理基础。其轻量级内核和丰富的组件生态,使得开发者能够高效构建复杂的应用逻辑。结合Wi-Fi SoC(如DA16200)的硬件优势,可以实现从设备端到云端的稳定数据传输,这对于智能家居、工业传感等需要长续航和实时响应的场景至关重要。通过集成MQTT等物联网协议栈,设备能够以极低的功耗与云端服务器进行双向通信,实现数据上报和远程控制。本文以DA16200与F

18790970257

数据库之Redis运维手册(私人整理)

1、redis配置文件 #cat 8000.conf daemonize no #[yes/no]默认值no,该参数用于定制redis服务是否以守护模式运行。 pidfile /var/run/redis.pid #默认值/var/run/redis.pid,指定redis服务的进程号文件路径,以守护模式运行时需要配置本参数; port 8000 #默认值6379,指定redis服务...

羌俊恩

AlphaControls v11.20 Stable (D5 - D10.1 & CB6 - CB10.1)

A package of standard and unique components for professional GUI design development using AlphaSkins. AlphaControls is an easy-to-use universal and powerful tool for developing original skinned and non-skinned business/media applications. A lot of additional properties and components makes this package (and the applications that use it) unique. Supported: Delphi 5/6/7/2005-2010/XE-XE8, Builder 6/2006-2010/XE-XE8, RX Seattle, RX Berlin Compatible with Windows XP and newer 23.11.2016 AlphaControls v11.20 Stable released * Fixed error in the TsSlider component when the Enabled property is False * Improved showing of menu items in some new skins * Added new acgpUtils.pas unit with some Gdi+ functions: acgpDrawEllipse, acgpDrawLine, acgpFillEllipse and acgpDrawArc * Added a scaling support and set of new properties in the TsMeter component * Added 200% scaling mode * Added automatic repainting of the TsSkinProvider.TitleIcon.Glyph after changing * Added the BitBltRotated procedure in the sGraphUtils unit * Published new "Material Dark" skin

Tebox

CB9-PCI-Express-Base-5.0r1.0-2019-05-22.pdf

CB9-PCI-Express-Base-5.0r1.0-2019-05-22.pdf

Kernel_RDMA
评论 7
收藏 已收藏
分享
返回顶部