Author Topic: Creating uibutton on runtime  (Read 2289 times)

dsanchez

  • Guest
Creating uibutton on runtime
« on: January 25, 2013, 09:04:57 AM »
Hello,

I'm trying to create a button on runtime by code but I don't know how. I'm trying to use the AddWidget<T> method but it doesn't work. In the other hand, if I could create it, how should I assign it a "click" method dynamically??

Best regards.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Creating uibutton on runtime
« Reply #1 on: January 25, 2013, 10:48:06 AM »
Look inside UICreateWidgetWizard.cs. Everything inside is created by code, including buttons.