Difference between revisions of "Talk:CudaText API"
From Lazarus wiki
Jump to navigationJump to search (Now done in beta, comment no need) |
|||
Line 1: | Line 1: | ||
+ | =Proposed= | ||
+ | |||
+ | tree_proc(id_panel, id_operation, item, index, text, icon) | ||
+ | |||
+ | Controls tree panel. | ||
+ | |||
+ | Possible values of id_panel: | ||
+ | |||
+ | * TREE_PANEL_FINDRESULTS | ||
+ | |||
+ | Possible values of id_operation: | ||
+ | |||
+ | * TREE_ITEM_ENUM: Enumerates subitems of item. Param item. Gets list of subitem handles. | ||
+ | * TREE_ITEM_DELETE: Deletes item. Param item. | ||
+ | * TREE_ITEM_ADD: Adds subitem as item's child. Param item. Param index: at which subitem index to insert, 0..child_count-1, or -1 to append. Param text: caption of item. Param icon: imagelist index or -1. | ||
+ | * TREE_ITEM_SET_NAME: Sets new item name. Params: item, text. | ||
+ | * TREE_ITEM_SET_ICON: Sets new item icon. Params: item, icon. | ||
+ | * TREE_ICON_ADD: Adds icon to tree's imagelist. Param text: path to png file. Gets imagelist index of new icon. | ||
+ | * TREE_ICON_DELETE: Deletes icon from tree's imagelist. Param icon: index in imagelist (0..count-1). Gets bool: index existed before. |
Revision as of 02:37, 19 December 2015
Proposed
tree_proc(id_panel, id_operation, item, index, text, icon)
Controls tree panel.
Possible values of id_panel:
- TREE_PANEL_FINDRESULTS
Possible values of id_operation:
- TREE_ITEM_ENUM: Enumerates subitems of item. Param item. Gets list of subitem handles.
- TREE_ITEM_DELETE: Deletes item. Param item.
- TREE_ITEM_ADD: Adds subitem as item's child. Param item. Param index: at which subitem index to insert, 0..child_count-1, or -1 to append. Param text: caption of item. Param icon: imagelist index or -1.
- TREE_ITEM_SET_NAME: Sets new item name. Params: item, text.
- TREE_ITEM_SET_ICON: Sets new item icon. Params: item, icon.
- TREE_ICON_ADD: Adds icon to tree's imagelist. Param text: path to png file. Gets imagelist index of new icon.
- TREE_ICON_DELETE: Deletes icon from tree's imagelist. Param icon: index in imagelist (0..count-1). Gets bool: index existed before.