怎么在运行时改变combobox的style,从dropdownlist->dropdown?

ahao 2004-06-16 12:59:22
我用p_combobox->ModifyStyle( CBS_DROPDOWNLIST, CBS_DROPDOWN );
但无效
...全文
200 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
ahao 2004-06-16
  • 打赏
  • 举报
回复
好吧:)既然大家都认为不能改,那我也同意,不过这控件做得也太不好了。看来要实现这个效果,必须再创建另一个了
给分了
gabrielnystrom 2004-06-16
  • 打赏
  • 举报
回复
同意楼上的,改了以后就不是同一个类型了
lianglp 2004-06-16
  • 打赏
  • 举报
回复
强烈同意不能改!
它们实际上不是同一个类型,只不过它们基础差不多(不恰当的比喻)
我们设置CBS_DROPDOWNLIST等类型只不过是要系统帮你确认生成一个
什么样的控件而已。
就像当你创建一个CStatic型的控件时,你能动态改为CEdit型 吗?
lixiaosan 2004-06-16
  • 打赏
  • 举报
回复
查了一下,好像不能改
Kudeet 2004-06-16
  • 打赏
  • 举报
回复
呵呵!同意!好象是不能改的!
快乐鹦鹉 2004-06-16
  • 打赏
  • 举报
回复
应该不可以改的。比如dropdownlist时,只可以映射int型变量,dropdown时,只可以映射CString型变量。如果运行运行时修改的话,那这个映射的变量不就出毛病了嘛。
seilfer2000 2004-06-16
  • 打赏
  • 举报
回复
查了一下MSDN 好像也只说在创建的时候用这些属性,没看到修改的时候用
ahao 2004-06-16
  • 打赏
  • 举报
回复
应该可以的,比如
p_payment->ModifyStyle( WS_VISIBLE, 0 );就可以

为什么改CBS_DROPDOWNLIST不可以呢
SafeMode 2004-06-16
  • 打赏
  • 举报
回复
有些属性是初始化时创建好的,
不能改的吧
大家用惯了BSskin和VCLskin,但是这个跟专业! 支持的开发语言 Borland Delphi 4/5/6 Borland Delphi 7 Borland Delphi 8 Borland Delphi 2005 Borland Delphi 2006 CodeGear Delphi 2007 支持的操作系统 Windows Vista Wndows 2000/XP/2003 Windows NT4.0 Windows Me Windows 98/98SE Windows 95 版本信息 当前版本:3.0 文件大小:24.9MB 更新日期:2006-12-6 下载次数:22670 软件概述 Skin++ For Delphi目前全面支持Delphi4、Delphi5、Delphi6、Delphi7、Delphi8、Delphi2005、Delphi2006。 迄今为止,Delphi支持4种类型的应用程序: 1、VCL Forms Application – Delphi for Win32 (该类型在Delphi4/5/6/7/2005/2006所有版本包含); 2、VCL Forms Application – Delphi for .Net (该类型在Delphi8/2005/2006中包含); 3、Windows Forms Application – C# Builder (该类型在Delphi2005/2006中包含); 4、Windows Forms Application – Delphi for .Net (该类型在Delphi8/2005/2006中包含)。 Skin++对以上4种Delphi程序类型做了全面的支持。 试用版本描述与运行截图 1.在本安装盘中,包含了Delphi的各个版本(D6,D7,D8,D2005,D2006)Skin++测试例子; 2.关于如何使用Skin++,请参考文档《Skin++ For Delphi [All Edition]使用帮助》; 3.要查询Skin++所有的接口,请参考文档《Skin++接口描述》; 4.本安装盘提供一套试用皮肤PixOS.ssk,正式版用户将获得网站上更多更精美的皮肤。并可获得定期更新; 5.Skin++正式版中提供强大的皮肤设计工具Skin++Builder。 该工具完成皮肤所有的设计工作,并可以全自动导入Windows主题、第三方主题; Skin++Builder使用详情请参考《Skin++Builder Help》; 6.案例说明: 我们以Delphi2006 VCL Win32的测试例子为例,描述其组成。 打开\Delphi 2006\VCL Forms Application - Delphi For Win32\目录中的MDIAPP.exe 该例子是一个MDI类型的程序。主窗口部分演示Skin++在MDI方面处理的各个细节。 如:主菜单条、主弹出菜单、系统菜单、工具条、状态条、MDI客户区、MDI子窗口、MDI子窗口最大化后等各个部分的换肤细节。 Skin++ 3.0 可以对皮肤进行动态的色调设置 这个功能可以使您的程序可以瞬间拥有N套色调的皮肤。 更改色调样例1: 我们分以下几个页面对Delphi的全部控件进行了演示: Buttons、Static、Controls with ScrollBar(带滚动条的控件)、Splitter、TabControls、TrackBar & Progress、Misc Controls、Dialog、DataControls 6.1 Buttons 该部分我们演示了Skin++对Delphi的各种类型的按钮进行的换肤支持, 包括BitBtn按钮、SpeedButton、Tbutton、CheckBox、RadioBox 在该部分,还演示了对按钮进行多风格的换肤效果,“Style 2”按钮和其他按钮不同,呈现了其特有样式。 这种效果一般用在网络电话、多媒体软件、网络聊天等需要同时支持多种按钮风格的地方。 每个按钮具有其固定的5中状态:正常、按下、高量、禁用、默认。在该窗体中演示了每种按钮的5中状态。 并且在Skin++ 3.0 中,支持Focus的效果。通过Tab或方向键可以看到焦点在每个按钮上移动。 6.2 Static 该部分演示了Skin++ 对Label、GroupBox、右键菜单、Panel、FlowPanel、GridPanel等控件的支持。 值得一提的是,Skin++对Label的支持是彻底,并且不像其他的换肤软件需要在窗体上放置一个
一共2个部分,分别下载。 用过BSskin或者VCLskin的哥们 支持的开发语言 Borland Delphi 4/5/6 Borland Delphi 7 Borland Delphi 8 Borland Delphi 2005 Borland Delphi 2006 CodeGear Delphi 2007 支持的操作系统 Windows Vista Wndows 2000/XP/2003 Windows NT4.0 Windows Me Windows 98/98SE Windows 95 版本信息 当前版本:3.0 文件大小:24.9MB 更新日期:2006-12-6 下载次数:22670 软件概述 Skin++ For Delphi目前全面支持Delphi4、Delphi5、Delphi6、Delphi7、Delphi8、Delphi2005、Delphi2006。 迄今为止,Delphi支持4种类型的应用程序: 1、VCL Forms Application – Delphi for Win32 (该类型在Delphi4/5/6/7/2005/2006所有版本包含); 2、VCL Forms Application – Delphi for .Net (该类型在Delphi8/2005/2006中包含); 3、Windows Forms Application – C# Builder (该类型在Delphi2005/2006中包含); 4、Windows Forms Application – Delphi for .Net (该类型在Delphi8/2005/2006中包含)。 Skin++对以上4种Delphi程序类型做了全面的支持。 试用版本描述与运行截图 1.在本安装盘中,包含了Delphi的各个版本(D6,D7,D8,D2005,D2006)Skin++测试例子; 2.关于如何使用Skin++,请参考文档《Skin++ For Delphi [All Edition]使用帮助》; 3.要查询Skin++所有的接口,请参考文档《Skin++接口描述》; 4.本安装盘提供一套试用皮肤PixOS.ssk,正式版用户将获得网站上更多更精美的皮肤。并可获得定期更新; 5.Skin++正式版中提供强大的皮肤设计工具Skin++Builder。 该工具完成皮肤所有的设计工作,并可以全自动导入Windows主题、第三方主题; Skin++Builder使用详情请参考《Skin++Builder Help》; 6.案例说明: 我们以Delphi2006 VCL Win32的测试例子为例,描述其组成。 打开\Delphi 2006\VCL Forms Application - Delphi For Win32\目录中的MDIAPP.exe 该例子是一个MDI类型的程序。主窗口部分演示Skin++在MDI方面处理的各个细节。 如:主菜单条、主弹出菜单、系统菜单、工具条、状态条、MDI客户区、MDI子窗口、MDI子窗口最大化后等各个部分的换肤细节。 Skin++ 3.0 可以对皮肤进行动态的色调设置 这个功能可以使您的程序可以瞬间拥有N套色调的皮肤。 更改色调样例1: 我们分以下几个页面对Delphi的全部控件进行了演示: Buttons、Static、Controls with ScrollBar(带滚动条的控件)、Splitter、TabControls、TrackBar & Progress、Misc Controls、Dialog、DataControls 6.1 Buttons 该部分我们演示了Skin++对Delphi的各种类型的按钮进行的换肤支持, 包括BitBtn按钮、SpeedButton、Tbutton、CheckBox、RadioBox 在该部分,还演示了对按钮进行多风格的换肤效果,“Style 2”按钮和其他按钮不同,呈现了其特有样式。 这种效果一般用在网络电话、多媒体软件、网络聊天等需要同时支持多种按钮风格的地方。 每个按钮具有其固定的5中状态:正常、按下、高量、禁用、默认。在该窗体中演示了每种按钮的5中状态。 并且在Skin++ 3.0 中,支持Focus的效果。通过Tab或方向键可以看到焦点在每个按钮上移动。 6.2 Static 该部分演示了Skin++ 对Label、GroupBox、右键菜单、Panel、FlowPanel、GridPanel等控件的支持。 值得一提的是,Skin++对Label的支持是彻底,并且不像其他的换肤软件需要在窗体
jQuery Widgets for PC, Mobile and Touch Devices jQuery Widgets for PC and Mobile What is jQWidgets? jQWidgets represents a framework based on jQuery for building web-based applications that run on PC, Touch and Mobile devices. jQWidgets includes more than 40 UI widgets. jQWidgets is not a modified version of the jQuery UI toolkit. All widgets are designed from ground-up and based on a powerful common core. The framework core provides fundamental capabilities like support for widget extensions and inheritance, widget settings, internal event handling and routing, property change notifications, device and browser compatibility detection and adjustments. Works across devices and browsers jQWidgets takes the JavaScript & HTML UI development to a new level. It is platform independent, cross-browser compatible and works on PC and mobile devices. Don抰 spend time testing on different devices and browsers. Use a reliable, CSS compliant JavaScript library based jQuery, HTML5 and CSS3.The product supports all major desktop and mobile web browsers - Internet Explorer 7.0+, Firefox 2.0+, Safari 3.0+, Opera 9.0+, Google Chrome, IE Mobile, Android, Opera Mini, Mobile Safari(IPhone, IPad). jQuery dependency and compatibility jQWidgets has a dependency on the jQuery library. jQWidgets is tested and compatible with all jQuery versions from jQuery 1.7.0 to jQuery 2.1.1. We are committed to supporting all new versions of jQuery and ensuring the highest level quality. At present, we highly recommend that you use jQuery 1.11.1. This version is stable, high quality, and works well with a large number of popular devices and browsers. It is ideal for enterprise web applications and Internet web sites where the visitors use a mix of mobile devices, PCs, new and older browsers. Important: jQuery team has decided that starting from jQuery version 1.9.0 the project will evolve in two parallel tracks. Versions 1.9.* will support older browsers while versions starting from 2.* will not. This means that if you are looking for the highest possible compatibility across the broadest set of devices and browsers, you should stick with versions earlier than 2.0.0 for some time. On the other hand, if you are using jQWidgets in a mobile application or building a solution where certain older browsers will not be required, feel free to use jQWidgets along with jQuery 2.0.0. It is important to emphasize that the pros and cons of maintaining compatibility with certain older browsers is always changing. If you want to make a good, well informed decision, we recommend you to check the recent browser usage statistics and analyze the browsers and devices used by your website抯 visitors. Optimized for Performance Small footprint, highly responsive, carefully optimized to deliver outstanding experience on a wide range of devices, operating systems and browsers. Theme Builder The Theme Builder is a powerful online tool that helps you to quickly create themes for the user interface of your application based on jQWidgets. Online Theme Builder Download and Installation Download jQWidgets Information about the distribution package The SDK files are located in the jqwidgets directory In general you need to use files from this directory only. Files list & description: Files required in all projects using the SDK jqxcore.js: Core jQWidgets framework Stylesheet files. Include at least one stylesheet Theme file and the images folder: styles/jqx.base.css: Stylesheet for the base Theme. The jqx.base.css file should be always included in your project. styles/jqx.arctic.css: Stylesheet for the Arctic Theme styles/jqx.web.css: Stylesheet for the Web Theme styles/jqx.bootstrap.css: Stylesheet for the Bootstrap Theme styles/jqx.classic.css: Stylesheet for the Classic Theme styles/jqx.darkblue.css: Stylesheet for the DarkBlue Theme styles/jqx.energyblue.css: Stylesheet for the EnergyBlue Theme styles/jqx.shinyblack.css: Stylesheet for the ShinyBlack Theme styles/jqx.office.css: Stylesheet for the Office Theme styles/jqx.metro.css: Stylesheet for the Metro Theme styles/jqx.metrodark.css: Stylesheet for the Metro Dark Theme styles/jqx.orange.css: Stylesheet for the Orange Theme styles/jqx.summer.css: Stylesheet for the Summer Theme styles/jqx.black.css: Stylesheet for the Black Theme styles/jqx.fresh.css: Stylesheet for the Fresh Theme styles/jqx.highcontrast.css: Stylesheet for the HighContrast Theme styles/jqx.blackberry.css: Stylesheet for the Blackberry Theme styles/jqx.android.css: Stylesheet for the Android Theme styles/jqx.mobile.css: Stylesheet for the Mobile Theme styles/jqx.windowsphone.css: Stylesheet for the Windows Phone Theme styles/jqx.ui-darkness.css: Stylesheet for the UI Darkness Theme styles/jqx.ui-lightness.css: Stylesheet for the UI Lightness Theme styles/jqx.ui-le-frog.css: Stylesheet for the UI Le Frog Theme styles/jqx.ui-overcast.css: Stylesheet for the UI Overcast Theme styles/jqx.ui-redmond.css: Stylesheet for the UI Redmond Theme styles/jqx.ui-smoothness.css: Stylesheet for the UI Smoothness Theme styles/jqx.ui-start.css: Stylesheet for the UI Start Theme styles/jqx.ui-sunny.css: Stylesheet for the UI Sunny Theme styles/images: contains images referenced in the stylesheet files Files for individual widgets. Include depending on project needs: jqx-all.js: All plug-ins and widgets jqxdata.js: Data Source plug-in jqxchart.js: Chart widget jqxgrid.js: Grid widget jqxgrid.sort.js: Grid Sort plug-in jqxgrid.filter.js: Grid Filter plug-in jqxgrid.grouping.js: Grid Grouping plug-in jqxgrid.selection.js: Grid Selection plug-in jqxgrid.columnsresize.js: Grid Columns Resize plug-in jqxgrid.columnsreorder.js: Grid Columns Reorder plug-in jqxgrid.pager.js: Grid Pager plug-in jqxgrid.edit.js: Grid Editing plug-in jqxgrid.storage.js: Grid Save/Load state plug-in jqxgrid.aggregates.js: Grid Aggregates plug-in jqxgauge.js: Radial and Linear Gauge widget jqxdatatable.js: DataTable widget jqxtreegrid.js: TreeGrid widget jqxrangeselector.js: RangeSelector widget jqxbuttons.js: Button, RepeatButton, SubmitButton & ToggleButton widgets jqxbulletchart.js: BulletChart widget jqxbuttongroup.js: Button group widget jqxswitchbutton.js: Switch Button widget jqxcalendar.js: Calendar widget jqxdatetimeinput.js: DateTimeInput widget jqxdockpanel.js: DockPanel widget jqxdropdownlist.js: DropDownList widget jqxcombobox.js: ComboBox widget jqxtabs.js: Tabs widget jqxtree.js: Tree widget jqxtreemap.js: TreeMap widget jqxcheckbox.js: CheckBox widget jqxradiobutton.js: RadioButton widget jqxexpander.js: Expander widget jqxlistbox.js: ListBox widget jqxmaskedinput.js: Masked TextBox widget jqxmenu.js: Menu widget jqxnavigationbar.js: NavigationBar widget jqxnotification.js: Notification widget jqxnumberinput.js: NumberInput TextBox widget jqxinput.js: TextBox widget jqxpanel.js: Panel widget jqxpopup.js: impements PopUp widget jqxprogressbar.js: ProgressBar widget jqxpasswordinput.js: Password input widget jqxscrollbar.js: ScrollBar widget jqxtooltip.js: ToolTip widget jqxrating.js: Rating widget jqxsplitter.js: Splitter widget jqxslider.js: Slider widget jqxwindow.js: Window widget jqxdocking.js: Docking widget jqxcolorpicker.js: Color Picker widget jqxdropdownbutton.js: DropDown Button widget jqxvalidator.js: Validation plug-in jqxdragdrop.js: DragDrop plug-in jqxknockout.js: Knockout integration plug-in jqxresponse.js: Response plug-in jqxangular.js: AngularJS integration plug-in

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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