Bitmap resource dialog¶
The value dialog BitmapResourceDialog is used to create a button that allows to open the dialog for a bitmap resource selection.
Clicking the button opens the bitmap resource dialog like
After closing the dialog, the name and path of the selected bitmap is displayed as button text and assigned to the parameter.
Syntax¶
<Parameter>
<Name>BitmapName</Name>
<Text>Bitmap</Text>
<Value>0</Value>
<ValueType>String</ValueType>
<ValueDialog>BitmapResourceDialog</ValueDialog>
</Parameter>
Example¶
The implementation of the BitmapResourceDialog value dialog is described in the example AllControls located in
..\etc\Examples\PythonParts\PaletteExamples\AllControls.pyp
..\etc\PythonPartsExampleScripts\PaletteExamples\AllControls.py