示例#1
0
        static void box_RequestDrawItem(ItemBox _sender, Widget _item, IBDrawItemInfo _info)
        {
            EditBox cell = _item.UserData as EditBox;
            string  str  = _sender.GetItemDataAt(_info.index) as string;

            if (str != null)
            {
                cell.OnlyText = str;
            }
        }
示例#2
0
 static void box_RequestDrawItem(ItemBox _sender, Widget _item, IBDrawItemInfo _info)
 {
     EditBox cell = _item.UserData as EditBox;
     string str = _sender.GetItemDataAt(_info.index) as string;
     if (str != null) cell.OnlyText = str;
 }