![]() |
Question on Text properties and color
I am storing colors in properties files so they get stored like
Code:
Property=\#cc9933 say I have Code:
ForegroundColor=GetProperty(property,"#cc9933") What am I missing? |
I believe it is the "\" adder the setproperty call is adding to it because looking in the default themes they don't have a "\" after the color...So anyone know how to remove the "\" from getting set in the property? it appears text widgets parse it correctly but the theme setting doesn't
|
Try
Code:
property=0xcc9933 John |
Quote:
|
They way I've seen it done and done myself in the past is to check to see if the value has changed and if so reload the menu.
John |
Quote:
|
Quote:
Setting it dynamically using a variable name, instead of using the API call, ought to work, as far as I recall. And, yes, it uses a format of 0xRRGGBB, as is used in the default STV's theme.properties files. Andy |
Quote:
|
All times are GMT -6. The time now is 11:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.