Difference between revisions of "Talk:CudaText API"

From Lazarus wiki
Jump to navigationJump to search
(moved all to Main page)
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
== todo ==
 
  
===listbox_proc===
 
 
listbox_proc(id_listbox, id_action, index=0, text="")
 
 
Perform action on listbox UI-control.
 
 
* Param id_listbox: int handle of listbox.
 
* Param index: index of item (0-base).
 
 
Possible values of id_action:
 
 
* LISTBOX_ENUM: Enumerates items. Gets list of str, or None if empty.
 
* LISTBOX_ADD: Adds item. Param index: at which index to insert, or -1 to append. Param text.
 
* LISTBOX_DELETE: Deletes item. Param index.
 
* LISTBOX_DELETE_ALL: Deletes all items.
 
* LISTBOX_SET: Sets item text. Params: index, text.
 
 
* LISTBOX_SELECT: Selects item. Param index, or -1 to remove selection.
 
* LISTBOX_GET_SELECTED: Gets index of selected item, or -1.
 
 
* LISTBOX_LOCK: Disables repainting.
 
* LISTBOX_UNLOCK: Enables repainting.
 

Latest revision as of 00:49, 16 April 2017