CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  C++ Builder >  基础类

入门问题:在cb中如何使用富文本框?

楼主kissoflife(明月高楼休独倚,酒入愁肠,化作相思泪!)2005-08-03 16:39:02 在 C++ Builder / 基础类 提问

小弟在cb中找了半天,竟然没找到这咚咚在哪个选项卡上,请达人指点。  
  小弟想在富文本框中显示不同颜色的文本,不知大虾们能否提供一个示例,让小弟观摩观摩,不胜感激! 问题点数:10、回复次数:1Top

1 楼wangyunxin(高战)回复于 2005-08-04 08:16:26 得分 10

在Win32那个选项卡上,选取颜色:  
   
  RichEdit1->SelAttributes->Color   =   clRed;  
   
  其他颜色选择如下:(其实都在BCB的帮助里)  
   
  Value Meaning Value Meaning  
  clNone White   on   Windows   9x,   Black   on   NT. clScrollBar Current   color   for   the   of   scroll   bar   track.  
  clAqua Aqua clBackground Current   background   color   of   the   Windows   desktop  
  clBlack Black clActiveCaption Current   color   of   the   title   bar   of   the   active   window  
  clBlue Blue clInactiveCaption Current   color   of   the   title   bar   of   inactive   windows  
  clCream Cream clMenu Current   background   color   of   menus  
  clDkGray Dark   Gray clWindow Current   background   color   of   windows  
  clFuchsia Fuchsia clWindowFrame Current   color   of   window   frames  
  clGray Gray clMenuText Current   color   of   text   on   menus  
  clGreen Green clWindowText Current   color   of   text   in   windows  
  clLime Lime   green clCaptionText Current   color   of   the   text   on   the   title   bar   of   the   active   window  
  clLtGray Light   Gray clActiveBorder Current   border   color   of   the   active   window  
  clMaroon Maroon clInactiveBorder Current   border   color   of   inactive   windows  
  clMedGray Medium   Gray clAppWorkSpace Current   color   of   the   application   workspace  
  clMoneyGreen Mint   green clHighlight Current   background   color   of   selected   text  
  clNavy Navy   blue clHightlightText Current   color   of   selected   text  
  clOlive Olive   green clBtnFace Current   color   of   a   button   face  
  clPurple Purple clBtnShadow Current   color   of   a   shadow   cast   by   a   button  
  clRed Red clGrayText Current   color   of   text   that   is   dimmed  
  clSilver Silver clBtnText Current   color   of   text   on   a   button  
  clSkyBlue Sky   blue clInactiveCaptionText Current   color   of   the   text   on   the   title   bar   of   an   inactive   window  
  clTeal Teal clBtnHighlight Current   color   of   the   highlighting   on   a   button  
  clWhite White cl3DDkShadow   Windows   95   or   NT   4.0   only:   Dark   shadow   for   three-dimensional   display   elements  
  clYellow Yellow cl3DLight   Windows   95   or   NT   4.0   only:   Light   color   for   three-dimensional   display   elements   (for   edges   facing   the   light   source)  
  clInfoText   Windows   95   or   NT   4.0   only:   Text   color   for   tool   tip   controls  
  clInfoBk   Windows   95   or   NT   4.0   only:   Background   color   for   tool   tip   controls  
  clGradientActiveCaption Windows   98   or   Windows   2000:   Right   side   color   in   the   color   gradient   of   an   active   window's   title   bar.   clActiveCaption   specifies   the   left   side   color.    
  clGradientInactiveCaption Windows   98   or   Windows   2000:   Right   side   color   in   the   color   gradient   of   an   inactive   window's   title   bar.   clInactiveCaption   specifies   the   left   side   color.    
      clDefault The   default   color   for   the   control   to   which   the   color   is   assigned.  
   
  Top

相关问题

  • 如何写关于文本框focus方法的javascript子程序(入门问题)?
  • 请问在文本框中如何使用右键菜单
  • 请问如何使用程序禁用文本框?
  • 如何使用文本框调用系统函数?
  • 在javascript中如何动态的使用文本框的值
  • 新手问题:C#中文本框的使用
  • 关于使用VBScript限制文本框输入字符
  • 使用JavaScript怎样动态生成文本框等等呢?
  • 如何使用request.querystring传递文本框中输入的值?
  • 文本框

关键词

  • 选项
  • active
  • 富文本框
  • 小弟
  • color
  • cb
  • 观摩
  • 颜色
  • background
  • title bar

得分解答快速导航

  • 帖主:kissoflife
  • wangyunxin

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo