Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
Conversation Control - Bubbles
posted

I am trying to create a "conversation control" that can show a running list of entries, much like the IM application on many smartphones.  To do this, I was thinking about using a WinGrid and then merging cells together to get the overlap look that is prevalent with other UIs that do this sort of thing. 

I started by trying to merge cells and shown in this example (http://forums.infragistics.com/forums/p/34712/206196.aspx#206196), but was unsuccessful. 

Does anyone know of a way to mimic the overlapping "text bubbles" look prevalent in many IM apps?  Does Infragistics have a control that would be easily adaptable to this?

Parents Reply
  • 560
    posted in reply to Hristo Goshev

    Hristo and Mike,

    I have taken your samples and put them together in a control with a sample form in the attached project.  The control allows you to add a message with a date, user, fore and back color, and alignment  

    This will work well for my project.  There are a few minor details that I need to complete and if you have a quick idea, that would be great.

    1.  The cell padding isn't exactly correct.  I added a newline in the format string, but that makes too much space after the text in each cell.  I took it out and tried increasing the cell padding, but that didn't work as the text was still cut off.  You can see in the attached sample that using the newline in the format string works pretty well, but there is still too much space on the smaller messages and too little space on the long messages.

    2.  I need to make the cells "non-selectable".  Right now, the back of the row turns blue when clicking on a cell.  I don't want that.  I just want the grid to be in display mode only.

    3.  The first cell always has white text, I think because it is selected.  I need to correct this.

    4.  It would be nice to have the cells support multiline, but I wonder if I'm going to have to parse my input strings and format them with <p>.

    Thanks for all of your help!!!

    Keith

Children