iChat Style Interface

匆匆过客 提交于 2019-12-11 07:35:16

问题


I'm trying to create an iChat-style insterface (ie: message bubbles) in C# for a project. Can anyone suggest or offer ideas on how best to achieve this? My first thoughts were with WPF but I've never ventured in that direction before; I've been sticking with WinForms so far and, if possible, would like to.


回答1:


you could also just use good old photoshop.

make a balloon which is made out of 9 blocks.

the upper left corner, the top bit, the top right bit, the left bit, the middle bit, the right bit, the bottom left bit, the bottom bit and the bottom right bit.

by making sure the middle bits can be repeated (without seeing a pattern) you can make the balloons as big as you want and this way scale it to the text

so with these building blocks:

 1 2 3
 4 5 6
 7 8 9

you can make:

 1 2 2 2 2 2 3
 4 5 5 5 5 5 6
 4 5 5 5 5 5 6
 7 8 8 8 8 8 9


来源:https://stackoverflow.com/questions/1306574/ichat-style-interface

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!