On 03.03.2011 12:27, Robert Stiehler wrote:
Hmmm but the Deskbar wouldn't know my custom BPictureButton class. So the Deskbar could just instantiate it from the BPictureButton class my custom class inherits from and so my own Invoke() Method would never be called in/from the Deskbar... or i'm wrong?
That's the magic of replicants. When installing a view into the Deskbar, the signature of the application which installs it will be passed along to the shelf, so that the replicant shelf loads that application like an add-on into the address space of the Deskbar and then it uses your code indeed.
Best regards, -Stephan