Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.03 KB | None | 0 0
  1. ------------------------------CE 6.1------------------------------
  2.  
  3. --undefined property functions
  4. --getPropertyList(class) : Returns a stringlist object containing all the published properties of the specified class (free the list when done) (Note, not all classed with properties have 'published' properties. E.g: stringlist)
  5. --setProperty(class, propertyname, propertyvalue) : Sets the value of a published property of a class
  6. --getProperty(class, propertyname) : Gets the value of a published property of a class
  7.  
  8. --class helper functions
  9. inheritsFromObject(class): Returns true if given any class
  10. inheritsFromComponent(class): Returns true if the given object inherits from the Component class
  11. inheritsFromControl(class): Returns true if the given object inherits from the Control class
  12. inheritsFromWinControl(class): Returns true if the given object inherits from the WinControl class
  13.  
  14.  
  15. ----Class definitions----
  16. --Object class: (Inheritance: )
  17. --object_getClassName(object): Returns the classname of the given object
  18. --object_destroy(object) : Destroys the object (basically everything inherits from this class)
  19.  
  20.  
  21. --Component Class: (Inheritance: Object)
  22. component_getComponentCount(Component)
  23. component_getComponent(Component, index)
  24. component_getName(Component)
  25. component_setName(Component, newname)
  26. component_getTag(Component)
  27. component_setTag(Component, tagvalue)
  28. component_getOwner(Component)
  29.  
  30.  
  31.  
  32. --Control Class: (Inheritance: Component->Object)
  33. --control_setCaption(control, caption) : sets the text on a control. All the gui objects fall in this category
  34. --control_getCaption(control)
  35. --control_setPosition(control, x,y): sets the x and y position of the object base don the top left position (relative to the client array of the owner object)
  36. --control_getPosition(contron): returns the x and y position of the object (relative to the client array of the owner object)
  37. --control_setSize(control, width,height) :
  38. --control_getSize(control)
  39. --control_align(control, alignmentoption):
  40. control_onClick(control, function) :
  41. control_getVisible(control)
  42. control_setVisible(control, boolean)
  43. control_getColor(control)
  44. control_setColor(control, rgb)
  45.  
  46.  
  47. --WinControl Class: (Inheritance: Control->Component->Object)
  48. wincontrol_getControlCount(control)
  49. wincontrol_getControl(control,index)
  50. wincontrol_OnEnter(control, function)
  51. wincontrol_onExit(control, function)
  52. wincontrol_canFocus(control): returns true if the object can be focused
  53. wincontrol_Focused(control): returns boolean true when focused
  54. wincontrol_setFocus(control): tries to set keyboard focus the object
  55.  
  56.  
  57. --Strings Class: (Inheritance : Object) (Mostly an abstract class)
  58. strings_add(list, string)
  59. strings_clear(list)
  60. strings_delete(list, index)
  61. strings_append(strings, string)
  62. strings_getText(strings)
  63. strings_indexOf(list, string)
  64. strings_insert(list, index, string)
  65.  
  66. strings_getCount(list)
  67. strings_remove(list, string);
  68. strings_getString(list,index);
  69. strings_getFullText(list); //CE 6.1: Get the stringlist as one big string
  70. strings_loadFromFile(list, filename)
  71. strings_saveToFile(list, filename)
  72.  
  73. strings_getString(list, index)
  74. strings_setString(list, index)
  75.  
  76.  
  77.  
  78. --Stringlist Class: (Inheritance : Strings->Object)
  79. stringlist_getDuplicates(list)
  80. stringlist_setDuplicates(list, Duplicates)
  81. stringlist_getSorted(list)
  82. stringlist_setSorted(list, boolean)
  83. stringlist_getCaseSensitive(list)
  84. stringlist_setCaseSensitive(list, boolean)
  85.  
  86.  
  87. --Form Class: (Inheritance: ScrollingWinControl->CustomControl->WinControl->Control->Component->Object)
  88. --form_centerScreen(form);
  89. --form_onClose(form, function)
  90. --form_hide(form)
  91. --form_show(form)
  92. form_showmodal(form)
  93.  
  94.  
  95. --GraphicControl Class: (Inheritance: Control->Component->Object)
  96.  
  97.  
  98.  
  99. --Label Class: (Inheritance: GraphicControl->Control->Component->Object)
  100.  
  101.  
  102. --Panel Class: (Inheritance: CustomControl->WinControl->Control->Component->Object)
  103. panel_getAlignment(panel)
  104. panel_setAlignment(panel, alignment)
  105. panel_getBevelInner(panel)
  106. panel_setBevelInner(panel, PanelBevel)
  107. panel_getBevelOuter(panel)
  108. panel_setBevelOuter(panel, PanelBevel)
  109. panel_getBevelWidth(panel)
  110. panel_setBevelWidth(panel, BevelWidth)
  111. panel_getFullRepaint(panel)
  112. panel_setFullRepaint(panel, boolean)
  113.  
  114.  
  115.  
  116. --Image Class: (Inheritance: GraphicControl->Control->Component->Object)
  117. --image_loadImageFromFile(filename)
  118. --image_stretch(boolean)
  119. --image_transparent(boolean)
  120.  
  121. --Edit Class: (Inheritance: WinControl->Control->Component->Object)
  122. edit_clear(edit)
  123. edit_selectAll(edit)
  124. edit_clearSelection(edit)
  125. edit_copyToClipboard(edit)
  126. edit_cutToClipboard(edit)
  127. edit_pasteFromClipboard(edit)
  128. edit_onChange(edit, function)
  129.  
  130.  
  131. --Memo Class: (Inheritance: Edit->WinControl->Control->Component->Object)
  132. memo_append(memo,string)
  133. memo_getLines(memo) : returns a Strings class
  134. memo_getWordWrap(memo)
  135. memo_setWordWrap(memo, boolean)
  136. memo_getWantTabs(memo)
  137. memo_setWantTabs(memo, boolean)
  138. memo_getWantReturns(memo)
  139. memo_setWantReturns(memo, boolean)
  140. memo_getScrollbars(memo)
  141. memo_setScrollbars(memo, boolean)
  142.  
  143.  
  144.  
  145.  
  146. --ButtonControl Class: (Inheritance: WinControl->Control->Component->Object)
  147.  
  148.  
  149. --Button Class: (Inheritance: ButtonControl->WinControl->Control->Component->Object)
  150. button_getModalResult(button)
  151. button_setModalResult(button, mr)
  152.  
  153. --CheckBox Class: (Inheritance: ButtonControl->WinControl->Control->Component->Object)
  154. checkbox_getAllowGrayed(CheckBox)
  155. checkbox_setAllowGrayed(CheckBox, boolean)
  156. checkbox_getState(checkbox)
  157. checkbox_setState(checkbox, boolean)
  158. checkbox_onChange(checkbox, function)
  159.  
  160. --ToggleBox Class: (Inheritance: CheckBox->ButtonControl->WinControl->Control->Component->Object)
  161.  
  162. --GroupBox Class: (Inheritance: WinControl->Control->Component->Object)
  163.  
  164. --RadioGroup class: (Inheritance: GroupBox->WinControl->Control->Component->Object)
  165. radiogroup_getRows(radiogroup): Returns the number of rows
  166. radiogroup_getItems(radiogroup): Returns a Strings object
  167. radiogroup_getColumns(radiogroup): Returns the nuber of columns
  168. radiogroup_setColumns(radiogroup, count)
  169. radiogroup_onClick(radiogroup, function)
  170.  
  171.  
  172. --ListBox Class: (Inheritance: WinControl->Control->Component->Object)
  173. listbox_clear(listbox)
  174. listbox_getItems(listbox): Returns a strings object
  175. listbox_getItemIndex(listbox)
  176. listbox_setItemIndex(listbox,index)
  177.  
  178.  
  179. --ComboBox Class: (Inheritance: WinControl->Control->Component->Object)
  180. combobox_clear(combobox)
  181. combobox_getItems(combobox)
  182. combobox_getItemIndex(combobox)
  183. combobox_setItemIndex(combobox)
  184.  
  185.  
  186.  
  187. --ProgressBar Class: (Inheritance: WinControl->Control->Component->Object)
  188. progressbar_stepIt(progressbar)
  189. progressbar_stepBy(progressbar, delta)
  190. progressbar_getMax(progressbar)
  191. progressbar_setMax(progressbar, integer)
  192. progressbar_getMin(progressbar)
  193. progressbar_setMin(progressbar, integer)
  194. progressbar_getPosition(progressbar)
  195. progressbar_setPosition(progressbar, integer)
  196.  
  197.  
  198.  
  199. --TrackBar Class : (Inheritance: WinControl->Control->Component->Object)
  200. trackbar_getMax(trackbar)
  201. trackbar_setMax(trackbar, integer)
  202. trackbar_getMin(trackbar)
  203. trackbar_setMin(trackbar, integer)
  204. trackbar_getPosition(progressbar)
  205. trackbar_setPosition(progressbar, integer)
  206. trackbar_onChange(trackbar, function)
  207.  
  208.  
  209. --CollectionItem Class: (Inheritance: Object)
  210. --usually not used by lua users but just defining it here for future usage
  211.  
  212.  
  213.  
  214. --ListColumn class: (Inheritance: CollectionItem->Object)
  215. listcolumn_setAutosize(listcolumns, boolean)
  216. listcolumn_getCaption(listcolumns)
  217. listcolumn_setCaption(listcolumns, caption)
  218.  
  219. listcolumn_getMaxWidth(listcolumns)
  220. listcolumn_setMaxWidth(listcolumns, width)
  221. listcolumn_getMinWidth(listcolumns)
  222. listcolumn_setMinWidth(listcolumns, width)
  223.  
  224. listcolumn_getWidth(listcolumns)
  225. listcolumn_setWidth(listcolumns, width)
  226.  
  227.  
  228.  
  229.  
  230. --Collection Class: (Inheritance: TObject)
  231. collection_clear(collection)
  232. collection_getCount(collection)
  233. collection_delete(collection, index)
  234.  
  235.  
  236. --ListColumns class : (Inheritance: Collection->Object)
  237. listcolumns_add(listcolumns): Returns a new ListColumn object
  238. listcolumns_getColumn(listcolumns, index): Returns a ListColum object;
  239.  
  240. --ListItem Class : (Inheritance: TObject)
  241. listitem_delete(listitem)
  242. listitem_getCaption(listitem)
  243. listitem_setCaption(listitem)
  244. listitem_getSubItems(listitem): Returns a Strings object
  245.  
  246.  
  247. --ListItems class : (Inheritance: TObject)
  248. listitems_clear(listitems)
  249. listitems_getCount(listitems)
  250. listitems_add(listitems): Returns a new ListItem object
  251.  
  252.  
  253.  
  254. --Listview Class : (Inheritance: WinControl->Control->Component->Object)
  255. listview_clear(listview)
  256. listview_getColumns(listview): Returns a ListColumns object
  257. listview_getItems(listview) : Returns a ListItems object
  258. listview_getItemIndex(listview)
  259. listview_setItemIndex(listview)
  260.  
  261.  
  262. --Timer Class : (Inheritance: Component->object)
  263. --timer_setInterval(timer, interval)
  264. --timer_onInterval(timer, function)
  265.  
  266. --OpenDialog Class: (Inheritance: FileDialog->CommonDialog->Component->Object)
  267. openDialog_execute(openDialog): Shows the dialog and returns the string to the selected file
  268.  
  269. --SaveDialog Class: (Inheritance: OpenDialog->FileDialog->CommonDialog->Component->Object)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement