Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Cability of WxWidgets

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Cability of WxWidgets
#4779
Posted by: 2004-07-10 09:28:15
I was wondering is there a way that you can make a program where the user enters RGB values and text changes to that colour.

thanx

HJ
Message2. Re: Cability of WxWidgets
#4785
Posted by: upCASE 2004-07-10 23:12:24
Hi!
Yes, there is a way.
Uses wxTextCtrl to enter the RGB values, create a wxColour object with these values and then use wxWindow::SetForegroundColour() on the text.
If the text you mean is itself inside a wxTextCtrl, use wxTextAttr.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: Cability of WxWidgets
#4786
Posted by: 2004-07-11 00:48:31
Thanks again Upcase
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥880.00 ·
 
 
¥1,390.00 ·
 
 
¥1,380.00 ·
 
 
¥287.00 ·
 
 
¥918.00 ·
 
 
¥860.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0