Search:     Advanced search

function NewColorBox(Left, Top)

Article ID: 317
Last updated: 24 Sep, 2010
Views: 871
Posted: 30 Dec, 2008
by Thomas B.
Updated: 24 Sep, 2010
by Murray D.

Description:

Creates a new color picker.

Notes:

Parameters

Left (This is an integer value for the left position of the color box on the form.)

Top (This is an integer value for the top position of the color box on the form.)

This example would create a sample form with the name label, and a color picker box.  Copy and paste the code into a New PlanSwift Script.

Pascal Example:

Form := NewForm(230,150, 'Sample Form');
NewLabel(26,23,'Name:');
NewEdit(60,20,'NewArea');
ColorBox := NewColorPicker(28,48);
ColorBOX.width := 156;

if Form.ShowModal<> mrOk Then
  Exit;

Visual Basic Example:

Form = NewForm(230,150, "Sample Form")
NewLabel(26,23,"Name:")
NewEdit(60,20,"NewArea")
ColorBox = NewColorPicker(28,48)
ColorBOX.width = 156

if Form.ShowModal<> mrOk Then
  Exit Function
end if


Enterprise and Developer editions

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
function NewCheckBox(Left, Top, Caption, Checked = false)     function NewComboBox(Left, Top, Text = "")