Welcome
ColorPicker Object plugin
1.0.0.0
Color picker button for Autoplay media studio
free
rafaxplayer
require Memory plugin
Copy folder plugin in AMS Dir/Plugins/Objects
Copy Dependencies folder in proyect Dir/Autoplay/Plugins
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 ( | (string) Object Name ) |
Start events to object ( Max 3 objects )
Note: This function is necessary to operate the object
(string) Name of the Object
This action dose not return any value.
Example start 1 object:
ColorPickerButton.StartEvents("Plugin1")
Example 2 Objects
ColorPickerButton.StartEvents("Plugin1","Plugin2")
3 objects..
ColorPickerButton.StartEvents("Plugin1","Plugin2","Plugin3")
ColorPickerButton.CreateObject ( | (string) Object Name ) |
Create the Object
(string) Name of the Object
This action dose not return any value.
ColorPickerButton.CreateObject("Plugin1")
(number) ColorPickerButton.GetColor ( | (string) Object Name ) |
Gets the color that shows the button
(string) Name of the Object
(number) Decimal number
nColor = ColorPickerButton.GetColor("Plugin1")
nColor2 = ColorPickerButton.GetColor("Plugin2")
Dialog.Message("","ColorPicker 1: "..nColor.."\r\nColorPicker 2: "..nColor2)
ColorPickerButton.SetFlatStyle ( | (string) Object Name, (boolean) Flat = true ) |
set a Flat style to button
(string) Name of the Object
(boolean) Flat style or not
Value | Description |
true | (Default) Flat Style |
false | Default |
This action dose not return any value.
if ColorPickerButton.GetFlatStyle("Plugin1") == true then
ColorPickerButton.SetFlatStyle("Plugin1",false)
ColorPickerButton.SetFlatStyle("Plugin2",false)
else
ColorPickerButton.SetFlatStyle("Plugin1",true)
ColorPickerButton.SetFlatStyle("Plugin2",true)
end
(boolean) ColorPickerButton.GetFlatStyle ( | (string) Object Name ) |
Get Flat style or not
(string) Name of the Object
(boolean) Is Flat style return true, else false
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 ( | (string) Object Name, (number) Style ) |
Set a Appearance Styles
(string) Name of the Object
(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 |
This action dose not return any value.
StyleValue = ComboBox.GetItemData("ComboBox1", e_Selection)
ColorPickerButton.SetAppearanceStyle("Plugin1",StyleValue)
ColorPickerButton.SetAppearanceStyle("Plugin2",StyleValue)
(number) ColorPickerButton.GetAppearanceStyle ( | (string) Object Name ) |
Get Appreance style
(string) Name of the Object
(number) Standard = 0;
Flat = 1;
UltraFlat = 2;
Office2000 = 3;
OfficeXP = 4;
Office2003 = 5;
Office2007 = 6;
AppValue = ColorPickerButton.GetAppearanceStyle("Plugin1")
Dialog.Message("",AppValue)
(boolean) ColorPickerButton.GetText ( | (string) Object Name ) |
Get text to Button
(string) Name of the Object
(boolean) if not text ,return ""
local strText = ColorPickerButton.GetText("Plugin1")
if strText ~= "" then
Dialog.Message("",strText)
else
Dialog.Message("","No text")
end
ColorPickerButton.SetText ( | (string) Object Name, (string) Text ) |
Set text of the Color Button
(string) Name of the object
(string) Set Text
This action dose not return any value.
strCaption = Dialog.Input("Enter Text", "", "Select Color", MB_ICONQUESTION);
if strCaption ~= "CANCEL" then
ColorPickerButton.SetText("Plugin1",strCaption)
ColorPickerButton.SetText("Plugin2",strCaption)
end
ColorPickerButton.SetDefaulColor ( | (string) Object Name, (number) Color = 0 ) |
Sets the color to show the button
Note: Default color 0
(string) Nmae of the Object
(number) Decimal number
This action dose not return any value.
ColorPickerButton.SetDefaulColor("Plugin1",165789)
(number) ColorPickerButton.GetDefaultColor ( | (string) Object Name ) |
Get deafult color
(string) Name of the Object
(number)
(boolean) ColorPickerButton.GetEnabled ( | (string) Object Name ) |
Get state of the object
(string) Name of the Object
(boolean)
ColorPickerButton.SetEnabled ( | (string) Object Name, (boolean) Enabled = false ) |
Set enabled or disabel Object
(string) Name of the Object
(boolean) Enabled or disabled
Value | Description |
true | Enabled |
false | (Default) Disabled |
This action dose not return any value.
(number) ColorPickerButton.GetBackColor ( | (string) Object Name ) |
Get the background Color
(string) Name of the Object
(number) Decimal number of Color
ColorPickerButton.SetBackColor ( | (string) Object Name , (number) Color = 0 ) |
Set Background Color
(string) Name of the Object
(number) Color number to Background
This action dose not return any value.
(boolean) ColorPickerButton.GetUseVisualStyle ( | (string) Object Name ) |
Get use or not visual style
Note: Default true
(string) Name of the Object
(boolean) true use , false not use
ColorPickerButton.SetUseVisualStyle ( | (string) Object Name, (boolean) Use Visual style = true ) |
Set use or not Visual style
(string) Name of the Object
(boolean) Use or not Visual Style
Value | Description |
true | (Default) Use visual Style |
false | Not use |
This action dose not return any value.
ColorPickerButton.ShowMoreColors ( | (string) Object Name, (boolean) Show = false ) |
Show or hide More colors button
Note: Default true
(string) Name of the Object
(boolean) Show or hidde button more colors
Value | Description |
true | Show |
false | (Default) Hidde |
This action dose not return any value.
(boolean) ColorPickerButton.GetShowMoreColors ( | (string) Object Name ) |
Get state buton More color ,Show or Hidde
(string) Name of the Object
(boolean) true Show, false Hidde
This File Was Generated With AMS ActionFile Editor