Ask a questionAsk a question
 

Answercan't open conversation with context-menu without bar

  • Saturday, October 24, 2009 5:38 AMLiverbool Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    how to handle context-menu [Send an instant message] when right-click in contact
    i don't use bar, i can create conversation window by onSelected attribute in contact-list but i don't know how to manage context-menu event

Answers

  • Monday, November 09, 2009 7:49 PMSiebe TolsmaMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Liverbool,

    We currently don't expose a way to directly hook into the context menu of the contact-list.

    However, you can add a conversation-list control (<msgr:conversation-list>) to your page to automatically render all conversations. When a user selects "Send an instance message" from the contact list, a new conversation will automatically be added to the conversation-list control. Give it a go :-)

    Cheers,
    Siebe Tolsma
    Software Development Engineer Windows Live Platform Services

All Replies

  • Monday, October 26, 2009 8:59 PMspawgi Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks for using the Windows Live Messenger Library.

    You can start a conversation using the context-menu in the contact-list control. You can monitor the user.get_conversations() collection to learn when conversations are created and start from there.

     

    The detailed steps are given in the thread - http://social.msdn.microsoft.com/Forums/en-US/wlmessengerapidev/thread/7ae1b2de-56a4-4882-ad37-54b1db5cbc1e

    It also includes a sample code.

     

    For more details on how to use Windows Live Messenger Library with UI controls, please refer http://msdn.microsoft.com/en-us/library/dd570041.aspx

     

    Let me know if this helps.

  • Thursday, October 29, 2009 6:09 PMLiverbool Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank! spawgi
    but i mean that. how i will create a conversation from contact-list UI is already do.
    i want to use contact-list UI and when i click [Send an instant message] on context-menu how i will create conversation window (UI without bar)
  • Monday, November 09, 2009 7:49 PMSiebe TolsmaMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Liverbool,

    We currently don't expose a way to directly hook into the context menu of the contact-list.

    However, you can add a conversation-list control (<msgr:conversation-list>) to your page to automatically render all conversations. When a user selects "Send an instance message" from the contact list, a new conversation will automatically be added to the conversation-list control. Give it a go :-)

    Cheers,
    Siebe Tolsma
    Software Development Engineer Windows Live Platform Services