Site Logo 
SkyLight JavaScript Operating System
 
Follow exboslimited on Twitter Find exboslimited on facebook
Sample Code
Home > Technology > Sample Code

1.1 Creating A Button

The code below creates a button control in the main browser window absolute position in the top left of the screen. Whilst it doesn't do anything in particular it does show the ease of creating controls.

 

// Create a button

var buttonTest = System.CreateObject("System.Controls.Button");

buttonTest.Initialize();

buttonTest.SetText("My Button");

 

 

1.2 Creating A Window

The code below creates a fully featured window that can be resized and dragged around the screen. Whilst again this doesn't do anything useful it shows how a full line of code can deliver a lot of functionality

 

// Create a window

var windowTest = System.CreateObject("System.Controls.Window");

windowTest.Initialize();

windowTest.SetText("My Window Title");

 

 
Shopping Basket
Your shopping basket is currently empty.
 
 
RSS Feed   Powered By Commerce Cloud
This site is powered by the Commerce Cloud Engine. Copyright (c) 2009 Exbos Limited. All Rights Reserved. SiteMap   Cookie Policy
Web site design and layout by Exbos Ltd. Copyright (c) 2008 Exbos Ltd. All Rights Reserved.
Exbos Ltd - Publishers of Print Cloud - the complete Printers online toolkit in one package