LiveCode 8.1 – A major minor release

Peter Brett September 12, 2016 49

Back in May 2016 we released LiveCode 8, a massive step forward for the LiveCode ecosystem with new externals, new extensibility with LiveCode Builder widgets, and a new and improved IDE. Today we’re pleased to announce the release of LiveCode 8.1, which builds on the LiveCode 8 foundation to bring dozens of new features, better

Adding graph marker mouse events

Elanor Buchanan August 19, 2016 50

Adding Marker Mouse Messages In order to develop interactive charts we need some mouse events on line markers. Users may want to display detailed data when the mouse is over a marker or show an editor when the user clicks on it. The final modification we will make is to add add mouse events to

Additional Color Properties

Elanor Buchanan August 19, 2016 51

Filling the area below the lines The next modification we will make is to add a boolean property that allows the user to choose whether to fill the area below the lines. The area under a line is filled with a semi-transparent version of the line color. The fillLines property definition The first step is

Duplicating the Line Graph Widget

Elanor Buchanan August 19, 2016 52

Duplicating the Line Graph Widget The Line Graph widget is part of the LiveCode distribution so we can’t make changes to it directly. To create a modified version of the Line Graph widget we will make a copy of the LCB file in a new folder and update the name, extension id and author so

Introduction

Elanor Buchanan August 19, 2016 53

Modifying an Existing Widget Another way you can work with widgets is to modify existing widgets. Perhaps there is a widget that is almost what you need but missing a vital property, message or other feature. Rather that writing a new widget from scratch you can take the LCB source of the widget, modify it

LiveCode Documentation Format

Elanor Buchanan July 7, 2016 54

LiveCode Documentation Format Reference Introduction LiveCode uses a custom documentation format for the dictionary and for extension APIs. The format has very few special characters and is intended to maximise readability and modifiability. Format Documentation for a LiveCode API or documentation entry consists of a series of elements and their values, in the following form:

LiveCode Builder Style Guide

Elanor Buchanan July 7, 2016 55

LiveCode Builder Style Guide Introduction This document describes best practices to be followed when working with LiveCode Builder source code. Please follow it especially when writing code to be included with the main LiveCode product package. Copyright headers Please include a license header at the top of the .lcb file. For the main LiveCode repository,

LiveCode Builder Language Reference

Elanor Buchanan July 7, 2016 56

LiveCode Builder Language Reference Introduction LiveCode Builder is a variant of the current LiveCode scripting language (LiveCode Script) which has been designed for ‘systems’ building. It is statically compiled with optional static typing and direct foreign code interconnect (allowing easy access to APIs written in other languages). Unlike most languages, LiveCode Builder has been designed