How to set properties for CIwTextField in code?

Home / Forums / Marmalade Archive / IwUI and IwNUI / How to set properties for CIwTextField in code?
by: Premal
Status: Offline
Joined: 2012-01-10
Points: 5870

Hi Experts,

I want to know how to set properties of CIwTextField in code. Specifically we set some properties using .ui file like given below:
cursor
{
drawableType "image"
texture "textField_cursor"
}
cursorSize { 3 17 }

focus
{
drawableType "border"
texture "focus"
border { 10 10 }
uv0 { 1 2 }
uv1 { 31 30 }
}

But now I want to set same property in code rather than specifying in .ui file. So please help me to set above properties in code. Once I will get help on this I will try to set other properties as well. I have seen examples but it only sets "Caption" property but no example to set complex properties shown above.

I hope I will get reply asap.

Thanks in advance.

Regards,
Premal

Latest Posts

Latest Comments

Top Contributors

  • Chris D : 27,010
  • MonRoyals : 26,970
  • Salman : 26,720
  • Jez Hammond : 20,130
  • pjan : 11,150
  • gjw : 10,350
  • Paolo Oliverio : 9,640
  • Beaker_2 : 8,390
  • Kite : 8,210
  • bluescrn : 7,810