Menu

Using Component properties

Component properties can be managed in two basic ways

require "vcl"
form = VCL.Form()

-- single property
form.width=200

-- modify multiple properties with lua table
form._ = {name="TestForm", caption="Simple Form for Testing", left=100, top=100}

The table of properties allows to use subtables too

form._ = {  name="TestForm", 
            caption="Simple Form for Testing", 
            left=100, 
            top=100,
            font = {
                color = 0,
                size = 12,
                style = "[fsBold, fsItalic]",
            }
         }
Posted by Janos Bali 2014-04-07 Labels: form property font

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.