Welcome
ExplorerCombo
1.0.0.1
Creates a ComboBox that lets you display a path and all its parent folders so the user can choose one of them.
Freeware
RizlaUK
www.luadevils.com
rizlauk@luadevils.com
ExplorerCombo.Create
ExplorerCombo.SetCallback
ExplorerCombo.GetSelectedPath
ExplorerCombo.SetSelectedPath
(boolean) ExplorerCombo.Create ( | (string) Object, (string) Path = "", (table) Flags = nil ) |
Creates a ExplorerCombo object.
(string) The name of the AMS host object.
(string) The initial displayed directory/file.
Note: This must be the full path to the folder, not a local path!
(table) Flags can be a combination of the following values:
CONSTANT | VALUE | DESCRIPTION |
DrivesOnly | Boolean | The combo will only display drives To choose from. |
Editable | Boolean | The combo will be editable With an autocomplete feature. With this flag set, it acts exactly like the one in Windows Explorer. |
NoMyDocuments | Boolean | The 'My Documents' Folder will Not be displayed As a separate item. |
(boolean) True if the object was created, false if not.
--[[
The callback function exposes the following events:
OnSetFocus : sArgument = ""
OnKillFocus : sArgument = ""
OnSelect : sArgument = Selected path or ""
OnOpen : sArgument = ""
OnClose : sArgument = ""
]]
Debug.ShowWindow();
function MyCallback(sObject, sEvent, sArgument)
Debug.Print("Object="..sObject.." - Event="..sEvent.." - sArgument="..sArgument.."\r\n")
end
local bCreate = ExplorerCombo.Create("ComboBox1", "", nil);
if bCreate then
ExplorerCombo.SetCallback ("ComboBox1", "MyCallback");
end
ExplorerCombo.SetCallback ( | (string) Object, (string) Function ) |
Sets the objects callback function.
(string) The name of the host object.
(string) The name of the callback function.
This action dose not return any value.
(string) ExplorerCombo.GetSelectedPath ( | (string) Object ) |
Gets the path to the currently selected folder.
(string) The name of the host object.
(string) The full path to the current active folder, or a blank string ("") is no selection.
ExplorerCombo.SetSelectedPath ( | (string) Object, (string) Path ) |
Sets the path to the currently selected folder.
Note: This must be the full path to the folder, not a local path!
(string) The name of the host object.
(string) The path to the file/folder to select.
This action dose not return any value.
This File Was Generated With AMS ActionFile Editor