Please create new threads for new subjects.

On Mon, Sep 24, 2012 at 6:04 AM, Victor Bombi <son...@telefonica.net> wrote:
>
> ///////////
> I am trying to use dc:DrawLines but I cant understand how wxList or
> wxPointList work:
>
> local plist=wx.wxPointList
>   --plist:Append(wx.wxPoint(0,0))
>   plist[0]=0
>   plist[30]=30
>   --plist:Append(wx.wxPoint(30,30))
>   dc:DrawLines(plist)
>
> Append is not recognized as a method, plist is said to be not a wxPointList.
> I cant imagine how should be done.

It can't be used currently. I have wondered if it's really worth it.
The idea is that you can optimize the drawing with a list, but in a
scripting language the creation of the list itself may negate any
benefits.

Just call the DrawLine() functions individually for now.

Regards,
     John

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to