属性表格组件 wxPropertyGrid

码农软件 · 软件分类 · GUI开发框架 · 2019-08-10 14:11:29

软件介绍

wxPropertyGrid 是一个属性编辑器的UI组件,支持字符串、数字、标志、字体、颜色等属性类型设置。

示例代码

// Add int property
pg->Append( new wxIntProperty(wxT("IntProperty"), wxPG_LABEL, 12345678) );

// Add float property (value type is actually double)
pg->Append( new wxFloatProperty(wxT("FloatProperty"), wxPG_LABEL, 12345.678) );

// Add a bool property
pg->Append( new wxBoolProperty(wxT("BoolProperty"), wxPG_LABEL, false) );

// A string property that can be edited in a separate editor dialog.
pg->Append( new wxLongStringProperty(wxT("LongStringProperty"),
wxPG_LABEL,
wxT("This is much longer string than the ")
wxT("first one. Edit it by clicking the button.")));

// String editor with dir selector button.
pg->Append( new wxDirProperty(wxT("DirProperty"), wxPG_LABEL, ::wxGetUserHome()) );

// wxArrayStringProperty embeds a wxArrayString.
pg->Append( new wxArrayStringProperty(wxT("Label of ArrayStringProperty"),
wxT("NameOfArrayStringProp")));

// A file selector property.
pg->Append( new wxFileProperty(wxT("FileProperty"), wxPG_LABEL, wxEmptyString) );

// Extra: set wildcard for file property (format same as in wxFileDialog).
pg->SetPropertyAttribute( wxT("FileProperty"),
wxPG_FILE_WILDCARD,
wxT("All files (*.*)|*.*") );

本文地址:https://codercto.com/soft/d/12061.html

精通CSS

精通CSS

Andy Budd / 陈剑瓯 / 人民邮电出版社 / 2006 / 39.00

本书将最有用的CSS技术汇总在一起,在介绍基本的CSS概念和最佳实践之后,讨论了核心的CSS技术,例如图像、链接、列表操纵、表单设计、数据表格设计以及纯CSS布局。每一章内容由浅入深,直到建立比较复杂的示例。之后本书用两章讨论招数、过滤器、bug和bug修复,最后由Simon Collison和Cameron Moll两位杰出的CSS设计人员,将书中讨论的许多技术组合起来,给出了两个实例研究。本书......一起来看看 《精通CSS》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具