RunCommand from BitmapButton of a property manager page

Hi,

   What I am trying to do is, to launch 'Edit Material' dialog box from using bitmap button of a PropertyManagerPage.

   I have used >

   swApp.RunCommand swCommands_EditMaterial, ""

This works fine when used separately or even using a userform; but it seems not working with PMP.

Any help is appreciated.

Thanks in advance...

SolidworksApi macros