From ce52ab5a52c67f90b94739680eb8e42b59c04a85 Mon Sep 17 00:00:00 2001 From: Vincent de Lachaux Date: Fri, 4 Oct 2024 16:53:54 +0200 Subject: [PATCH] missing initproc property description --- Project/Sources/Classes/_4DPop.4dm | 4 ++-- README.md | 25 +++++++++++++------------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Project/Sources/Classes/_4DPop.4dm b/Project/Sources/Classes/_4DPop.4dm index 56aceb6..64b7521 100644 --- a/Project/Sources/Classes/_4DPop.4dm +++ b/Project/Sources/Classes/_4DPop.4dm @@ -332,7 +332,7 @@ Function getDependencies() : Collection return $c // === === === === === === === === === === === === === === === === === === === === === === === === - // Display the palett + // Display the palette Function display() var $height; $width : Integer @@ -493,7 +493,7 @@ Function abort() For ($i; 1; Count user processes:C343; 1) - PROCESS PROPERTIES:C336($i; $t; $l; $l) + _O_PROCESS PROPERTIES:C336($i; $t; $l; $l) If ($t="$4DPop") diff --git a/README.md b/README.md index db64816..f518227 100755 --- a/README.md +++ b/README.md @@ -251,21 +251,22 @@ The manifest describes the elements of the component that will be available via } ``` -| Attributes | | || -|---- | ----| ----| ----| -| `name` | The name that will be displayed below the button | ① | Mandatory -| `media` | File name of the image used for the button. |⑦| If omitted a default picture is used -| `handler` | The name of the ‘entry point’ method for your component.
I suggest that this name starts with an underscore (`_`) to avoid it interfering with the type ahead, as it is shared. | ② | Mandatory -| `default` | The name of the method to be executed when the user clicks on the strip's button | ③ ④ ⑤| Optional if `tools`is defined -| `tools` | Collection of [tool objects](#tool) that will be displayed as a linked menu | ④ ⑥ -| `popup` | To force the display of a linked menu indicator even if there is only one tool | ④ -| `ondrop` | The name of the method to be executed at the time of a drop on the button | ③ -| `helptip` | Text of help tip associated with button +| Attributes |    |      |    | +|------------|----|:----:|----| +| `name` | The name that will be displayed below the button | ① | Mandatory +| `media` | File name of the image used for the button. |⑦| If omitted a default picture is used +| `handler` | The name of the ‘entry point’ method for your component.
I suggest that this name starts with an underscore (`_`) to avoid it interfering with the type ahead, as it is shared. | ② | Mandatory +| `default` | The name of the method to be executed when the user clicks on the strip's button | ③ ④ ⑤| Optional if `tools`is defined +| `tools` | Collection of [tool objects](#tool) that will be displayed as a linked menu | ④ ⑥ +| `popup` | To force the display of a linked menu indicator even if there is only one tool | ④ +|`ondrop` | The name of the method to be executed at the time of a drop on the button | ③ +| `initproc` | The name of the method to be executed when the component is loaded | ③ +| `helptip` | Text of help tip associated with button ### tool object -| Attributes | | || -|---- | ----| ----| ----| +| Attributes |    |      |    | +|------------|----|:----:|----| | `name` | Name of the tool as it will appear in the menu associated with the button | ① ④ | Mandatory if there are several `tool`
• pass "-" to display a separator line | `method` | The name of the method to run when the item is selected | ③ | Mandatory ----