Difference between revisions of "Talk:CudaText API"

From Lazarus wiki
Jump to navigationJump to search
(moved all to Main page)
 
(72 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Proposed=
 
  
 
dlg_adv(title, size_x, size_y, text)
 
 
Shows dialog with several controls. Controls allowed:
 
 
* label
 
* check
 
* edit
 
* combo
 
* splitter
 
 
Param text is "\n"-separated items, one item per control. Each item is chr(1)-separated subitems. Each subitem is s_name+"="+s_value. Possible names (and names' values):
 
 
* "type": type of control, values: "label", "check", "edit", "combo", "splitter"
 
* "pos": position of control, ","-separated values: left, top, right, bottom (e.g. "10,10,300,20")
 
* "cap": caption of control
 
* "items":
 
** for combo: "\t"-separated items
 
* "val": value of control:
 
** for label: not used
 
** for check: "0"/"1" for off/on
 
** for edit: its text
 
** for combo: index of selected item (as str)
 
** for splitter: not used
 
 
If OK pressed, gets "\n"-separated items, each item is value of control.
 
If cancelled, gets None.
 
 
[[User:Alextp|Alextp]]
 

Latest revision as of 00:49, 16 April 2017