Would be nice :D, but i am not sure if it could work for me. Because the BPictureButton which should send the BMessage is added to the BDeskbar, so i am very limited in my options. I do something like that: BPictureButton mBtnCall = new BPictureButton(BRect(0, 0, 16, 16), "deskbar icon", mPicture, mPicture, new BMessage('picC'), B_TWO_STATE_BUTTON); BMessenger objMessanger("application/x-vnd.TestXYZ"); mBtnCall->SetTarget(objMessanger); status_t err = mDeskbar.AddItem(mBtnCall, &mDeskbarIconId); In another application i use BMessenger objMessanger(""application/x-vnd.TestXYZ""); objMessanger.SendMessage(objMsg); and it worked just fine (sending BMessages between different applications/processes). But after a couple of tests with setting the messenger with "mBtnCall->SetTarget(objMessanger);" to the BPictureButton it just didn't worked. If your code could help it would be great :) regards, Robert 2011/3/3 <hudsonco1@xxxxxxx> > I have some code that will send messages between applications. I can send > it to you. > > - Andrew > > > > > -----Original Message----- > From: Robert Stiehler <r.stiehler85@xxxxxxxxxxxxxx> > To: haiku-3rdparty-dev <haiku-3rdparty-dev@xxxxxxxxxxxxx> > Sent: Wed, Mar 2, 2011 3:03 pm > Subject: [haiku-3rdparty-dev] BPictureButton with own BMessenger > > Hi, > > i want to give to an BPictureButton object an own BMessenger. Knows someone > how i can do this? > > I want that the BMessage of the BPictureButton is send to another > application like this: > > BMessenger objMessanger("application/x-vnd.XYZ"); > BMessage *objMsg = new BMessage('picC'); > objMessanger.SendMessage(objMsg); > > regards, > Robert >