Difference between revisions of "Talk:CudaText API"

From Lazarus wiki
Jump to navigationJump to search
(Dlg_adv)
 
(moved all to Main page)
 
(82 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Proposed=
 
  
 
dlg_adv(title, text)
 
 
Shows dialog with several controls. Controls allowed: checkbox, editbox, combobox.
 
 
Param text is "\n"-separated items, one item per control. Each item is chr(1)-separated subitems. Each subitem is "\t"-separated, str_name+"\t"+str_value. Possible values of str_name:
 
 
* "type": type of control: "check", "edit", "combo".
 
* "init": initial value of control.
 
** for edit: text
 
** for check: caption
 
** for combo: "\t"-separated items
 
* "index":
 
** for check: "0"/"1" for off/on
 
** for combo: index of selected item as str(value)
 
 
Gets "\n"-separated items, each item is value of control, for combo it's str(item_index), for check it's "0"/"1".
 
Gets None if cancelled.
 
 
[[User:Alextp|Alextp]]
 

Latest revision as of 00:49, 16 April 2017