I am needing to get a drop-down box to change different colors depending on the users selection. I have this working fine however the last choice changes the color to a solid fill with a diagonal line pattern. The color changes but the pattern never appears.
The color should be "yellow" with black diagonal lines going from left-upper to right-lower. Please look at what i coded and tell me where I missed it.
Is the last selection the only one that uses a pattern? In Design mode, ensure the dropdown has focus and then click on the XML Source tab. The object with focus should be highlighted. Are there patterntyoe and patterncolor modes under the border nodes?
If there was no pattern on the object to begin with then you cannot add a pattern to it. The nodes fill.pattern.color and fill.pattern.type do not exist in the template so you cannot change a value of something that does not exist. In Designer, can you add a pattern to that field (so that the nodes on the object exist). Then in the initialize event of the object you can set the fill.pattern.type = "" so that it looks right when you display the form to start.