Layer brush and FreeBrush()
Posted: Mon Jul 18, 2022 6:42 pm
Hello
I create some buttons by converting a path into a brush with PathToBrush(), displaying it as a layer brush with DisplayBrush and then assigning a button with MakeButton(). While doing this, I collect the IDs in a table, which can be used to remove them later.
I now noticed that it also works to release the brush with FreeBrush() directly after creating the layer with DisplayBrush().
Does the layer of type #BRUSH really not need the original brush anymore? Then I could omit the corresponding table.
Ralf
I create some buttons by converting a path into a brush with PathToBrush(), displaying it as a layer brush with DisplayBrush and then assigning a button with MakeButton(). While doing this, I collect the IDs in a table, which can be used to remove them later.
I now noticed that it also works to release the brush with FreeBrush() directly after creating the layer with DisplayBrush().
Does the layer of type #BRUSH really not need the original brush anymore? Then I could omit the corresponding table.
Ralf