• 0

[VB] How to make a text box bubble?


Question

Please take a look at the attached mock-up pic. It shows a speech bubble that is automatically being wrapped around a text Label. Does anyone know how I can do this?

The bubble is obviously being composed from nine smaller pieces. I could simply use a solid graphic for the bubble but since the Label text will be populated AND positioned randomly at runtime, I don?t know how big it will be, so the bubble will need to be some kind of wrapper.

I'm using VB 6.

Thanks

Ash

post-18640-1097604768.gif

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

You'll have to use the shape control to build the bubbles, obviously. Setting the size at run time would be simple enough and then use another shape control to build the point for the bubble

Link to comment
Share on other sites

  • 0

OK, this is what I've done so far using a simple transparent GIF for the point and a Shape Control for the bubble. However, this is something I wanted to avoid as the "Rounded Shape Control?s corners can vary in size and I wanted the point to remain at a certain level but when the bubble is too big, it looks like the second example in my screenshot.

post-18640-1097606369.gif

Link to comment
Share on other sites

  • 0

Thank steelhand, I think that is a bit too advanced for me. Are there any other solutions at all?

If this were HTML, I'd simply use a 3x3 celled table and place the text Label in the center cell.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.