this.selecttext(1,len(this.text))在SLE控件中不起作用?
相关推荐
动态创建菜单、树
pb动态创建树和菜单 forward global type w_tv from window end type type cb_2 from commandbutton within w_tv end type type cb_1 from commandbutton within w_tv end type type sle_1 from singlelineedit within w_tv end type type st_1 from statictext within w_tv end type end forward global type w_tv from window integer width = 1381 integer height = 620 boolean titlebar = true string title = "Untitled" boolean controlmenu = true windowtype windowtype = response! long backcolor = 67108864 string icon = "AppIcon!" boolean center = true cb_2 cb_2 cb_1 cb_1 sle_1 sle_1 st_1 st_1 end type global w_tv w_tv on w_tv.create this.cb_2=create cb_2 this.cb_1=create cb_1 this.sle_1=create sle_1 this.st_1=create st_1 this.Control[]={this.cb_2,& this.cb_1,& this.sle_1,& this.st_1} end on on w_tv.destroy destroy(this.cb_2) destroy(this.cb_1) destroy(this.sle_1) destroy(this.st_1) end on event open;String ls_Parm, ls_temp, ls_Name, ls_title ls_Parm = Trim( Message.StringParm ) ls_temp = Right( ls_Parm, 1 ) ls_Name = Left( ls_Parm, Lenw( ls_Parm ) - 2 ) IF ls_temp = 'T' THEN ls_title = '添加 ' + ls_Name + ' 的同类' END IF IF ls_temp = 'Z' THEN ls_title = '添加 ' + ls_Name + ' 的子类' END IF IF ls_temp = 'M' THEN ls_title = '修改 ' Sle_1.text = ls_Name Sle_1.SelectText( 1, Len( ls_Name ) ) END IF title = ls_title end event type cb_2 from commandbutton within w_tv integer x = 727 integer y = 360 integer width = 457 integer height = 128 integer taborder = 20 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Arial" string text = "退出(&E)" boolean cancel = true end type event clicked;CloseWithReturn( Parent, '' ) end event type cb_1 from commandbutton within w_tv integer x = 165 integer y = 360 integer width = 457 integer height = 128 integer taborder = 30 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Arial" string text = "确定(&O)" boolean default = true end type event clicked;String ls_Name ls_Name = Trim( sle_1.text ) CloseWithReturn( Parent, ls_Name ) end event type sle_1 from singlelineedit within w_tv integer x = 64 integer y = 156 integer width = 1234 integer height = 128 integer taborder = 10 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Arial" long textcolor = 33554432 borderstyle borderstyle = stylelowered! end type type st_1 from statictext within w_tv integer x = 64 integer y = 40 integer width = 457 integer height = 72 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Arial" long textcolor = 33554432 long backcolor = 67108864 string text = "类别名称" boolean focusrectangle = false end type
A股分钟数据涵盖个股、ETF、可转债及指数,提供日内高频行情 字段包含代码、名称、交易时间、开盘价、最高价、最低价、收盘价、成交量与成交额 数据按分钟粒度记录,可反映盘中价格变动与成交活跃度 ETF分
A股分钟数据涵盖个股、ETF、可转债及指数,提供日内高频行情。字段包含代码、名称、交易时间、开盘价、最高价、最低价、收盘价、成交量与成交额。数据按分钟粒度记录,可反映盘中价格变动与成交活跃度。ETF分钟数据覆盖主流交易型基金,可转债分钟数据包含转股溢价等特性指标,指数分钟数据涵盖宽基与行业指数点位及涨跌幅。所有数据均为复权前原始行情。 数据源:CMES金融数据库
技术转移平台怎么选?2026年权威测评:6家主流服务商横向对比.docx
技术转移平台怎么选?2026年权威测评:6家主流服务商横向对比
科技成果转化平台选型指南:2026年6大服务商技术经纪人团队能力对比.docx
科技成果转化平台选型指南:2026年6大服务商技术经纪人团队能力对比
双机并联逆变器自适应虚拟阻抗下垂控制(Droop)策略Simulink仿真模型
内容概要:本文围绕双机并联逆变器的自适应虚拟阻抗下垂控制(Droop)策略,构建了完整的Simulink仿真模型,旨在解决微电网中因线路阻抗差异导致的并联逆变器功率分配不均问题。通过引入自适应虚拟阻抗环节,动态调节逆变器输出阻抗,使其趋近于理想纯感性状态,从而有效提升有功与无功功率的分配精度。文章系统阐述了下垂控制的基本原理、虚拟阻抗的数学建模及其自适应调节机制,并提供了详细的系统控制框图与仿真参数设置。通过在不同负载条件和线路参数下的仿真实验,充分验证了该策略在提高功率均分精度、增强系统稳定性与鲁棒性方面的有效性。; 适合人群:具备电力电子、电力系统基础知识,从事微电网、分布式发电、逆变器控制等相关领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:① 学习和掌握并联逆变器下垂控制的基本原理与实现方法;② 理解虚拟阻抗技术在功率精确分配中的作用;③ 掌握自适应控制策略的设计与Simulink仿真建模技巧,用于科研项目开发或工程方案验证。; 阅读建议:此资源以Simulink仿真为核心,建议读者在阅读时结合仿真模型文件,逐步理解各模块的功能与信号流向。应重点关注自适应虚拟阻抗环节的实现逻辑,并尝试修改线路参数或负载条件,观察仿真结果的变化,以加深对控制策略动态性能的理解。


