关于颜色设置的问题, 请斑竹帮帮忙, 谢谢 ^_^

shinskin 2004-10-22 03:10:22
现在有几个问题:
如何设置系统的color theme?

如何设置field内输入的字母的颜色?

如何设置如button, pushbutton上面显示的字母的颜色?

我只是在Windows fucations 里面找到几个函数, 包括: WinSetTextColor 之类, 不知道是否对我的问题, 还有不知道如何使用. 谢谢.
...全文
108 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
wilderwang 2004-10-24
  • 打赏
  • 举报
回复
3.5以上都支持,PalmOS也是从3.5开始支持彩色的,所以是
shinskin 2004-10-24
  • 打赏
  • 举报
回复
谢谢 ^_^ 已经会改了.. 顺便问一句, 这个是不是所有带彩的palm都支持的啊??
sbnth 2004-10-24
  • 打赏
  • 举报
回复
对单个的object,只有用gadget写控件了。
wilderwang 2004-10-24
  • 打赏
  • 举报
回复
改之前WinPushDrawState
用完之后WinPopDrawState
shinskin 2004-10-24
  • 打赏
  • 举报
回复
我发现了.....这个讨厌了.. 有针对单个object的颜色改动的办法吗??
sbnth 2004-10-24
  • 打赏
  • 举报
回复
不过要注意哦,这个一改,可是整个系统的颜色的改了:)
wilderwang 2004-10-23
  • 打赏
  • 举报
回复
-> which One of the symbolic color constants. See UIColorTableEntries

typedef enum UIColorTableEntries {
UIObjectFrame = 0,
UIObjectFill,
UIObjectForeground,
UIObjectSelectedFill,
UIObjectSelectedForeground,

UIMenuFrame,
UIMenuFill,
UIMenuForeground,
UIMenuSelectedFill,
UIMenuSelectedForeground,

UIFieldBackground,
UIFieldText,
UIFieldTextLines,
UIFieldCaret,
UIFieldTextHighlightBackground,
UIFieldTextHighlightForeground,
UIFieldFepRawText,
UIFieldFepRawBackground,
UIFieldFepConvertedText,
UIFieldFepConvertedBackground,
UIFieldFepUnderline,

UIFormFrame,
UIFormFill,

UIDialogFrame,
UIDialogFill,

UIAlertFrame,
UIAlertFill,

UIOK,
UICaution,
UIWarning,

UILastColorTableEntry
} UIColorTableEntries;
shinskin 2004-10-22
  • 打赏
  • 举报
回复
大哥, 就这一个函数就可以都摆平了???
sbnth 2004-10-22
  • 打赏
  • 举报
回复
Declared In UIColor.h
Prototype Err UIColorSetTableEntry
(UIColorTableEntries which,
const RGBColorType *rgbP)
Parameters -> which One of the symbolic color constants. See
UIColorTableEntries.
-> rgbP The RGB value of the color that should be used
for the specified UI object. (See
RGBColorType.)
Result Returns 0 upon success.

3,120

社区成员

发帖
与我相关
我的任务
社区描述
塞班系统(Symbian系统)是塞班公司为手机而设计的操作系统,它的前身是英国宝意昂公司的 EP ( Electronic Piece of cheese)操作系统。
社区管理员
  • Symbian社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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