Ever thought that your LiveCode project could be improved by a custom control? Perhaps you want to add a rounded rectangle push button to your stack, where the border color is different to the text color? Maybe you’re thinking of building an app with 10 cards, and each card needs a header bar, and each header bar needs a label, a button, a background graphic, a line graphic… Getting tired just thinking about it? Enter widgets.
Widgets are controls that can be dragged from the tools palette and dropped onto your stack. In LiveCode 8, users now have the ability to write their own custom controls, or widgets, in the new LiveCode Builder language. The purpose of this article is to guide you through the widget writing process in LiveCode Builder, from the very start to using your end product in a LiveCode stack.
One of the new features introduced in the upcoming LiveCode version 8 release is the ability to create self-contained custom controls called widgets. These widgets are written in a variant of LiveCode called LiveCode Builder (LCB) and have full control over their appearance and behaviour.
In a similar way to Hanson’s previous blog post on fractals, I’ll be showing you how to draw a fractal shape. However this time, I’ll show you how to do it with a custom widget control that can draw the fractal for us.
Success is sweet. Neal Taylor and Dr. Jeroen Lichtenauer certainly think so. They just completed their first LiveCode App! It’s Hands On Turkish, an EU-funded Business Turkish course that is now available for smartphones on the Play and iOS App Stores. We asked them to share a little bit about their LiveCode experience. Here’s what they said:
For those of you who are convinced you’ve got a great idea for an app but may be intimidated by the prospect of learning to code, I’d like to share with you my experience with LiveCode. It’s enabled me to overcome my fear of learning to code. LiveCode has also helped give me the confidence to strike out on my own as an entrepreneur.
We recently launched the first developer preview (DP) release of LiveCode 8, which provides a first look at LiveCode’s new “LiveCode Builder” language. This is a powerful new compiled language which can be used to quickly and efficiently develop new controls and code libraries for use in LiveCode apps.
I’d like to tell you about some of the techniques we’ve been using to make sure that LiveCode Builder is robust and reliable.
1. Listen carefully. This is probably the number one, which is why I’ve put it as number one! Really listen. Read that email three times and be sure you’ve understood it. If you don’t understand it, ask the customer to explain it again. Feed back to them on the phone “So what you are saying is, that pink elephant sprouted wings, but it was completely unable to jump over that tall building?” Use the same words and phrases the customer used, to ensure clear communication. Make sure you answer every point raised, even if the answer is “I don’t know” or “I can’t answer that”.
Yesterday, I had the great pleasure of attending The UN 2015 World Awareness Autism Day Event “Employment: The Autism Advantage.” Todd Fabacher and I attended in response to the UN’s Call to Action for companies to offer vocational training and employment for individuals on the autism spectrum.
While I sat in the General Assembly listening to speeches by Ban Ki-Moon, Secretary-General of the United Nations, Keynote Jack Markell, Governor of Delaware, and other representatives from the U.S. Counsel for International Business, Autism Europe, Hewlett-Packard, and young adults with autism, I was moved.
Throughout the day, I heard so many speak about the need for persons with special needs to be treated equally and that diversity should be viewed as a competitive advantage in our innovative economy.
On April 2, LiveCode and its partners launched its initiative to teach and mentor 3,000 individuals with autism to code apps and become professional software developers. As I listened and read through all the enthusiastic tweets, retweets and news coverage of LiveCode’s campaign, I knew we had made a difference.
Our friend, Todd Fabacher, has a son on the autism spectrum. As his son grows closer to adulthood, Todd asked himself what he wants most for his son. The answer? Opportunity.
Todd approached the National Autism Society, Autism Initiatives, and Specialisterne along with LiveCode to create a partnership in which 3,000 young adults on the autism spectrum can learn to code. LiveCode will provide the learning materials. the National Autism Society and other partners will provide the training support.
It’s an honor and a privilege to collaborate with Todd and the leading organizations that work with those on the autism spectrum. You can find out more about the partnership in the video below and share the movement here.
Sometimes nothing is better than having someone right beside you showing you how to do something. It’s nice to have someone with whom you can discuss a tricky point or who can observe you making the mistake you weren’t aware you were making.
In other words, sometimes there is nothing better than being around people!