ColorPicker Object plugin Help File

ColorPicker Object plugin Help File

Plugin Name:

ColorPicker Object plugin

Current Version:

1.0.0.0

Description:

Color picker button for Autoplay media studio

Licence:

free

Author:

rafaxplayer

Requirements:

require Memory plugin

Install Notes:

Copy folder plugin in AMS Dir/Plugins/Objects
Copy Dependencies folder in proyect Dir/Autoplay/Plugins


Table of Contents

ColorPickerButton.StartEvents
ColorPickerButton.CreateObject
ColorPickerButton.GetColor
ColorPickerButton.SetFlatStyle
ColorPickerButton.GetFlatStyle
ColorPickerButton.SetAppearanceStyle
ColorPickerButton.GetAppearanceStyle
ColorPickerButton.GetText
ColorPickerButton.SetText
ColorPickerButton.SetDefaulColor
ColorPickerButton.GetDefaultColor
ColorPickerButton.GetEnabled
ColorPickerButton.SetEnabled
ColorPickerButton.GetBackColor
ColorPickerButton.SetBackColor
ColorPickerButton.GetUseVisualStyle
ColorPickerButton.SetUseVisualStyle
ColorPickerButton.ShowMoreColors
ColorPickerButton.GetShowMoreColors

ColorPickerButton.StartEvents


ColorPickerButton.StartEvents ( 

(string) Object Name )

Description

Start events to object ( Max 3 objects )

Note: This function is necessary to operate the object

Parameters

Object Name

(string) Name of the Object

Returns

This action dose not return any value.


Example

Example start 1 object:
ColorPickerButton.StartEvents("Plugin1")
Example 2 Objects
ColorPickerButton.StartEvents("Plugin1","Plugin2")
3 objects..
ColorPickerButton.StartEvents("Plugin1","Plugin2","Plugin3")



ColorPickerButton.CreateObject


ColorPickerButton.CreateObject ( 

(string) Object Name )

Description

Create the Object

Parameters

Object Name

(string) Name of the Object

Returns

This action dose not return any value.


Example

ColorPickerButton.CreateObject("Plugin1")



ColorPickerButton.GetColor


(number) ColorPickerButton.GetColor ( 

(string) Object Name )

Description

Gets the color that shows the button

Parameters

Object Name

(string) Name of the Object

Returns

(number) Decimal number


Example

nColor = ColorPickerButton.GetColor("Plugin1")
nColor2 = ColorPickerButton.GetColor("Plugin2")
Dialog.Message("","ColorPicker 1: "..nColor.."\r\nColorPicker 2: "..nColor2)



ColorPickerButton.SetFlatStyle


ColorPickerButton.SetFlatStyle ( 

(string) Object Name,

(boolean) Flat = true )

Description

set a Flat style to button

Parameters

Object Name

(string) Name of the Object

Flat

(boolean) Flat style or not

Value

Description

true

(Default) Flat Style

false

Default

Returns

This action dose not return any value.


Example

if ColorPickerButton.GetFlatStyle("Plugin1") == true then
    ColorPickerButton.SetFlatStyle("Plugin1",false)
    ColorPickerButton.SetFlatStyle("Plugin2",false)
else
    ColorPickerButton.SetFlatStyle("Plugin1",true)
    ColorPickerButton.SetFlatStyle("Plugin2",true)
end    



ColorPickerButton.GetFlatStyle


(boolean) ColorPickerButton.GetFlatStyle ( 

(string) Object Name )

Description

Get Flat style or not

Parameters

Object Name

(string) Name of the Object

Returns

(boolean) Is Flat style return true, else false


Example

if ColorPickerButton.GetFlatStyle("Plugin1") == true then
    ColorPickerButton.SetFlatStyle("Plugin1",false)
    ColorPickerButton.SetFlatStyle("Plugin2",false)
else
    ColorPickerButton.SetFlatStyle("Plugin1",true)
    ColorPickerButton.SetFlatStyle("Plugin2",true)
end    



ColorPickerButton.SetAppearanceStyle


ColorPickerButton.SetAppearanceStyle ( 

(string) Object Name,

(number) Style )

Description

Set a Appearance Styles

Parameters

Object Name

(string) Name of the Object

Style

(number) Appareance styles

CONSTANT

VALUE

DESCRIPTION

Standard

0

NA

Flat

1

NA

UltraFlat

2

NA

Office2000

3

NA

OfficeXP

4

NA

Office2003

5

NA

Office2007

6

NA

Returns

This action dose not return any value.


Example

StyleValue = ComboBox.GetItemData("ComboBox1", e_Selection)
ColorPickerButton.SetAppearanceStyle("Plugin1",StyleValue)
ColorPickerButton.SetAppearanceStyle("Plugin2",StyleValue)



ColorPickerButton.GetAppearanceStyle


(number) ColorPickerButton.GetAppearanceStyle ( 

(string) Object Name )

Description

Get Appreance style

Parameters

Object Name

(string) Name of the Object

Returns

(number) Standard = 0;
Flat = 1;
UltraFlat = 2;
Office2000 = 3;
OfficeXP = 4;
Office2003 = 5;
Office2007 = 6;


Example

AppValue = ColorPickerButton.GetAppearanceStyle("Plugin1")
Dialog.Message("",AppValue)



ColorPickerButton.GetText


(boolean) ColorPickerButton.GetText ( 

(string) Object Name )

Description

Get text to Button

Parameters

Object Name

(string) Name of the Object

Returns

(boolean) if not text ,return ""


Example

local strText = ColorPickerButton.GetText("Plugin1")
if strText ~= "" then
Dialog.Message("",strText)
else
    Dialog.Message("","No text")
end        



ColorPickerButton.SetText


ColorPickerButton.SetText ( 

(string) Object Name,

(string) Text )

Description

Set text of the Color Button

Parameters

Object Name

(string) Name of the object

Text

(string) Set Text

Returns

This action dose not return any value.


Example

strCaption = Dialog.Input("Enter Text", "", "Select Color", MB_ICONQUESTION);
if strCaption ~= "CANCEL" then
ColorPickerButton.SetText("Plugin1",strCaption)
ColorPickerButton.SetText("Plugin2",strCaption)
end



ColorPickerButton.SetDefaulColor


ColorPickerButton.SetDefaulColor ( 

(string) Object Name,

(number) Color = 0 )

Description

Sets the color to show the button

Note: Default color 0

Parameters

Object Name

(string) Nmae of the Object

Color

(number) Decimal number

Returns

This action dose not return any value.


Example

ColorPickerButton.SetDefaulColor("Plugin1",165789)



ColorPickerButton.GetDefaultColor


(number) ColorPickerButton.GetDefaultColor ( 

(string) Object Name )

Description

Get deafult color

Parameters

Object Name

(string) Name of the Object

Returns

(number)


ColorPickerButton.GetEnabled


(boolean) ColorPickerButton.GetEnabled ( 

(string) Object Name )

Description

Get state of the object

Parameters

Object Name

(string) Name of the Object

Returns

(boolean)


ColorPickerButton.SetEnabled


ColorPickerButton.SetEnabled ( 

(string) Object Name,

(boolean) Enabled = false )

Description

Set enabled or disabel Object

Parameters

Object Name

(string) Name of the Object

Enabled

(boolean) Enabled or disabled

Value

Description

true

Enabled

false

(Default) Disabled

Returns

This action dose not return any value.


ColorPickerButton.GetBackColor


(number) ColorPickerButton.GetBackColor ( 

(string) Object Name )

Description

Get the background Color

Parameters

Object Name

(string) Name of the Object

Returns

(number) Decimal number of Color


ColorPickerButton.SetBackColor


ColorPickerButton.SetBackColor ( 

(string) Object Name ,

(number) Color = 0 )

Description

Set Background Color

Parameters

Object Name

(string) Name of the Object

Color

(number) Color number to Background

Returns

This action dose not return any value.


ColorPickerButton.GetUseVisualStyle


(boolean) ColorPickerButton.GetUseVisualStyle ( 

(string) Object Name )

Description

Get use or not visual style

Note: Default true

Parameters

Object Name

(string) Name of the Object

Returns

(boolean) true use , false not use


ColorPickerButton.SetUseVisualStyle


ColorPickerButton.SetUseVisualStyle ( 

(string) Object Name,

(boolean) Use Visual style = true )

Description

Set use or not Visual style

Parameters

Object Name

(string) Name of the Object

Use Visual style

(boolean) Use or not Visual Style

Value

Description

true

(Default) Use visual Style

false

Not use

Returns

This action dose not return any value.


ColorPickerButton.ShowMoreColors


ColorPickerButton.ShowMoreColors ( 

(string) Object Name,

(boolean) Show = false )

Description

Show or hide More colors button

Note: Default true

Parameters

Object Name

(string) Name of the Object

Show

(boolean) Show or hidde button more colors

Value

Description

true

Show

false

(Default) Hidde

Returns

This action dose not return any value.


ColorPickerButton.GetShowMoreColors


(boolean) ColorPickerButton.GetShowMoreColors ( 

(string) Object Name )

Description

Get state buton More color ,Show or Hidde

Parameters

Object Name

(string) Name of the Object

Returns

(boolean) true Show, false Hidde




This File Was Generated With AMS ActionFile Editor