Use Windows to word break captions. Display text at zero, 90 & 270 degree rotations. Neat method of wordbreaking unicode text using Windows own wordbreaking algorithms vs trying to create your own. Added several properties to mimic DrawText to include clipping, accelerator keys, and more. Project nearly 100% complete. The API created unicode textbox is not subclassed, so it isn't controlled by the project, however, you can type and cut/copy/paste as needed. Next major addition will be a class version. Hmmm, a usercontrol-less, class-based unicode textbox would be a nice project ;)
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come
out every day, so no prevention program can catch 100% of them. For your own safety, please:
Re-scan downloaded files using your personal virus checker before using it.
NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Scan the source code with Minnow's Project Scanner
If you don't have a virus scanner, you can get one at many places on the net
Terms of Agreement:
By using this code, you agree to the following terms...
You may use
this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
You may link to this code from another website, but ONLY if it is not wrapped in a frame.
You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
Hi Keith, improve your chinese! You have written: "Dog teaches KungFu to a bad car." :-))) Beside this: Great as usual! My ***** and regards - LiTE (If this comment was disrespectful, please report it.)
Had no idea it was chinese, i just liked to pretty pictures. Truly had no idea what it said, got it from a Chinese programming site, so figured it couldn't be too bad. (If this comment was disrespectful, please report it.)
@Ronald. Simple skewing is Italics. Else something more complex probably best done by printing to bitmap & using drawing APIs to skew: PlgBlt or GDI+.
For all others, I think I have a good solution for accelerator/hot keys on captions, provide clipping support, and a few other enhancements. Will be posting changes probably this weekend. (If this comment was disrespectful, please report it.)
VERY GOO..............D job. I need it. But i need 180 degree rotations ,too. Can you make it finish? if you let it any degree rotations that is more powerful . Thank you very much. (If this comment was disrespectful, please report it.)
hai2hai, been thinking about it. The label would be really easy using this code, the textbox would require subclassing
P.S. To all. Been looking at adding additional DT_Flag support like End_Ellipse, maybe Path_Ellipse, but that one may be way too complicated using TextOut; DrawText is easier & may be the alternative for that option.
Found a couple of minor calculation logic errors, will update when additional options appear ok. Will add a class to be used for usercontrol custom buttons which would pre-save many calculations & only re-linebreak as needed vs every repaint. (If this comment was disrespectful, please report it.)
well 5 stars are from me ***** lavolpe, have you create a combo box just use in the "windows messenger" with the picture..... please reply and restict user to email@example.com user name format mailto:firstname.lastname@example.org (If this comment was disrespectful, please report it.)
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular code, please
click here instead.)