Welcome
WinButtonEx Object
1.0.0.0
WinButtonEx is a advanced windows button that can display an icon and colored text and has many features.
Commerical Plugin
More Info
Dean Hall (AKA) RizlaUK
luadevils.com
rizlauk@luadevils.com
WinButtonEx object require AMSWaves 'Memory' plugin for its call backsystem.
Memory Plugin
Copyright © 2010 Lua Devils
Copy folder 'WinButtonEx' to your AMS install directory '\Plugins\Actions'
WinButtonEx.Create
WinButtonEx.EnterKey
WinButtonEx.GetEnabled
WinButtonEx.GetFocusRect
WinButtonEx.GetFont
WinButtonEx.GetIcon
WinButtonEx.GetIconPosition
WinButtonEx.GetIconSize
WinButtonEx.GetPos
WinButtonEx.GetSize
WinButtonEx.GetText
WinButtonEx.GetTextColor
WinButtonEx.GetUnpackPath
WinButtonEx.GetVisible
WinButtonEx.LoadFont
WinButtonEx.LoadIcon
WinButtonEx.SetEnabled
WinButtonEx.SetFocusRect
WinButtonEx.SetFont
WinButtonEx.SetIcon
WinButtonEx.SetIconPosition
WinButtonEx.SetIconSize
WinButtonEx.SetPos
WinButtonEx.SetSize
WinButtonEx.SetText
WinButtonEx.SetTextColor
WinButtonEx.SetUnpackPath
WinButtonEx.SetVisible
(number) WinButtonEx.Create ( | (number) X, (number) Y, (number) Width, (number) Height, (string) Text, (table) Propertys = nil ) |
Creates a WinButtonEx object.
(number) The X position of the object.
(number) The Y position of the object.
(number) The Width of the object.
(number) The Height of the object.
(string) The text to display in the button.
(table) A table of propertys indexed by the following values.
CONSTANT | VALUE | DESCRIPTION |
IconPosition | Number | Sets the position of the icon, use one of the following values, ICO_TOP, ICO_RIGHT, ICO_BOTTOM, ICO_LEFT |
Font | Number | Sets the buttons font, Use WinButtonEx.LoadFont to load a valid font ID. |
DefaultIcon | Number | The icon to show when the button is in its default state. |
HoverIcon | Number | The icon to show when the button is in its hover state. |
DownIcon | Number | The icon to show when the button is in its down state. |
DisabledIcon | Number | The icon to show when the button is in its disabled state. |
DefaultTextCol | Number | The text color for the buttons default state. |
HoverTextCol | Number | The text color for the buttons hover state. |
DownTextCol | Number | The text color for the buttons down state. |
DisabledTextCol | Number | The text color for the buttons disabled state. |
DefaultText | String | The text for the buttons default state. |
HoverText | String | The text color for the buttons hover state. |
DownText | String | The text color for the buttons down state. |
DisabledText | String | The text color for the buttons disabled state. |
IconWidth | Number | Sets the buttons icon width. |
IconHeight | Number | Sets the buttons icon height. |
DrawFocusRect | Boolean | True to show the focus rect, false to not show it. |
ObjectHost | Number | The host object that will house the button, if set (X,Y,W,H) are ignored and host size is used. |
(number) Returns a numeric ID for the object, this ID should be used in all other functions that access the object, if any error then nil is returned.
(string) WinButtonEx.EnterKey ( | (string) Key ) |
Unlock the nag window.
(string) Enter your key here.
(string)
(boolean) WinButtonEx.GetEnabled ( | (number) ObjectID ) |
Gets the enabled state of the button.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(boolean) True if the object is visible, false if it's invisible. If an error occurs, false will be returned.
(boolean) WinButtonEx.GetFocusRect ( | (number) ObjectID ) |
Gets the enabled state of the buttons focus rect.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(boolean) True if the focus rect is visible, false if it's invisible. If an error occurs, false will be returned.
(number) WinButtonEx.GetFont ( | (number) ObjectID ) |
Gets the font of the displayed text..
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The numeric font ID, else 0 if any error.
(number) WinButtonEx.GetIcon ( | (number) ObjectID, (number) State ) |
Gets the icon for a button state.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The button state to apply the change to.
CONSTANT | VALUE | DESCRIPTION |
STATE_NORMAL | 0 | The button is in its normal state. |
STATE_HOVER | 1 | The button is in its hover state. |
STATE_DOWN | 2 | The button is in its down state. |
STATE_DISABLE | 3 | The button is in its disabled state. |
STATE_ALL | 4 | This flag affects all button states. |
(number) The numeric icon ID, else 0 if any error.
(number) WinButtonEx.GetIconPosition ( | (number) ObjectID ) |
Gets the position of the displayed icon.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The icons position
0=Top
1=Right
2=Bottom
3=Left
(table) WinButtonEx.GetIconSize ( | (number) ObjectID ) |
Gets the size of the displayed icon.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(table) A table containing the icons pixel dimensions, indexed by values "Width" and "Height." If any error, nil will be returned.
(table) WinButtonEx.GetPos ( | (number) ObjectID ) |
Gets the position of the object.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(table) A table containing the object's current coordinates, indexed by values X and Y. If the object cannot be found, nil will be returned.
(table) WinButtonEx.GetSize ( | (number) ObjectID ) |
Gets the size of the object.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(table) A table containing the object's pixel dimensions, indexed by values "Width" and "Height." If the object cannot be found, nil will be returned.
(string) WinButtonEx.GetText ( | (number) ObjectID, (number) State ) |
Gets the text for a button state.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The button state to apply the change to.
CONSTANT | VALUE | DESCRIPTION |
STATE_NORMAL | 0 | The button is in its normal state. |
STATE_HOVER | 1 | The button is in its hover state. |
STATE_DOWN | 2 | The button is in its down state. |
STATE_DISABLE | 3 | The button is in its disabled state. |
STATE_ALL | 4 | This flag affects all button states. |
(string) The text caption of the object, if any error then a blank string ("") is returned.
(number) WinButtonEx.GetTextColor ( | (number) ObjectID, (number) State ) |
Gets the text color for a button state.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The button state to apply the change to.
CONSTANT | VALUE | DESCRIPTION |
STATE_NORMAL | 0 | The button is in its normal state. |
STATE_HOVER | 1 | The button is in its hover state. |
STATE_DOWN | 2 | The button is in its down state. |
STATE_DISABLE | 3 | The button is in its disabled state. |
STATE_ALL | 4 | This flag affects all button states. |
(number) The decimal text color, if any error -1 is returned.
(string) WinButtonEx.GetUnpackPath () |
Gets the path to the folder that the external dll is unpacked to..
(string)
(boolean) WinButtonEx.GetVisible ( | (number) ObjectID ) |
Gets the visible state of the button.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(boolean) True if the object is visible, false if not or if any error.
(number) WinButtonEx.LoadFont ( | (string) FontName, (number) Size, (table) Propertys = nil ) |
Loads a system font into memory for later use.
(string) The name of the font you want to load.
(number) The size of the font.
(table) A table of propertys indexed by the following values.
CONSTANT | VALUE | DESCRIPTION |
Bold | Boolean | The font will be bold. |
Italic | Boolean | The font will be italic. |
Underline | Boolean | The font will be underlined. |
StrikeOut | Boolean | The font will be strikeout. |
(number) A numeric ID for this font, else nil if any error.
(number) WinButtonEx.LoadIcon ( | (string) IconPath ) |
Loads a icon file into memory for later use.
(string) The path to your icon file.
Note: Only (.ico) format is supported.
(number) A numeric ID for this icon, else nil if any error.
WinButtonEx.SetEnabled ( | (number) ObjectID, (boolean) Enabled ) |
Sets the enabled state of the button.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(boolean) True to enable the button.
This action dose not return any value.
WinButtonEx.SetFocusRect ( | (number) ObjectID, (boolean) Enable ) |
Sets the enabled state of the buttons focus rect.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(boolean) True to enable the focus rect.
This action dose not return any value.
WinButtonEx.SetFont ( | (number) ObjectID, (number) FontID ) |
Sets the font of the displayed text..
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The ID of the font.
Note: The ID as returned by "WinButtonEx.LoadFont"
This action dose not return any value.
WinButtonEx.SetIcon ( | (number) ObjectID, (number) State, (number) Icon ) |
Sets the icon for a button state.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The button state to apply the change to.
CONSTANT | VALUE | DESCRIPTION |
STATE_NORMAL | 0 | The button is in its normal state. |
STATE_HOVER | 1 | The button is in its hover state. |
STATE_DOWN | 2 | The button is in its down state. |
STATE_DISABLE | 3 | The button is in its disabled state. |
STATE_ALL | 4 | This flag affects all button states. |
(number) The ID of the icon.
Note: This is the ID returned by "WinButtonEx.LoadIcon"
This action dose not return any value.
WinButtonEx.SetIconPosition ( | (number) ObjectID, (number) Position ) |
Sets the position of the displayed icon.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The position of the icon.
CONSTANT | VALUE | DESCRIPTION |
ICO_TOP | 0 | The icon is positioned above the text. |
ICO_RIGHT | 1 | The icon is positioned to the right the text. |
ICO_BOTTOM | 2 | The icon is positioned below the text. |
ICO_LEFT | 3 | The icon is positioned to the left of the text. |
This action dose not return any value.
WinButtonEx.SetIconSize ( | (number) ObjectID, (number) Width, (number) Height ) |
Sets the size of the displayed icon.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The width of the icon.
(number) The height of the icon.
This action dose not return any value.
WinButtonEx.SetPos ( | (number) ObjectID, (number) X, (number) Y ) |
Sets the position of the object.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The x position of the object.
(number) The Y position of the object.
This action dose not return any value.
WinButtonEx.SetSize ( | (number) ObjectID, (number) Width, (number) Height ) |
Sets the size of the object.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The width of the object.
(number) The height of the object.
This action dose not return any value.
WinButtonEx.SetText ( | (number) ObjectID, (number) State, (string) Text ) |
Sets the text for a button state.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The button state to apply the change to.
CONSTANT | VALUE | DESCRIPTION |
STATE_NORMAL | 0 | The button is in its normal state. |
STATE_HOVER | 1 | The button is in its hover state. |
STATE_DOWN | 2 | The button is in its down state. |
STATE_DISABLE | 3 | The button is in its disabled state. |
STATE_ALL | 4 | This flag affects all button states. |
(string) The text for this state.
This action dose not return any value.
WinButtonEx.SetTextColor ( | (number) ObjectID, (number) State, (number) Color ) |
Sets the text color for a button state.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(number) The button state to apply the change to.
CONSTANT | VALUE | DESCRIPTION |
STATE_NORMAL | 0 | The button is in its normal state. |
STATE_HOVER | 1 | The button is in its hover state. |
STATE_DOWN | 2 | The button is in its down state. |
STATE_DISABLE | 3 | The button is in its disabled state. |
STATE_ALL | 4 | This flag affects all button states. |
(number) The text color for this state.
This action dose not return any value.
(string) WinButtonEx.SetUnpackPath ( | (string) Path ) |
Gets the path to the folder that the external dll is unpacked to..
(string) The path to the folder
(string)
WinButtonEx.SetVisible ( | (number) ObjectID, (boolean) Visible ) |
Sets the visible state of the button.
(number) The ID of the button.
Note: This is the ID returned by "WinButtonEx.Create"
(boolean) True to show the button.
This action dose not return any value.
Copyright © 2010 Lua Devils
This File Was Generated With AMS ActionFile Editor