PtSetResource() PtLine error

I have drow a PtLine and PtRect in the same position. When i use PtSetResource() func to change color of PtLine, then PtRect become invisiable. How to PtRect not be invisiable.


Could you please post your PtSetResource code and the coordinates / position of your PtLine / PtRect widgets?

post your code,and we can help you