Show Bid Request
RichTextBox Function
Bid Request Id: 5713
|
|
|
Description:
I want to be able to resize the Microsoft Rich Textbox control to the size of its contents (Just the height, the width will remain constant). I want a function, that when it is called, will return the value I need to resize the RTBs height property.
Third times a charm, I hope. Previously this request has been posted with some pretty strange results. So I will try to be as specific as possible about what I want.
No subclassing, hooks, WindowProc functions. API is preferred for determining the contents size, I just want to point out that I don&'t want a hooked window process running all during the application. The determination of the contents size must be precise! It must allow for as little text or as much text, different font sizes, pictures, etc… that are inserted into the control. That means, please don&'t send me anything that just takes a line count and multiples it for a result, line sizes can differ.
Also, 2 ways that I found, so I don&'t want the same ways sent to me, 1 - resizing the control and checking for the scrollbars visible property and 2 - sending contents to another control that has an autosize property.
Send a working example to be considered. The working example should include a richtextbox, command button and label. When the command button is clicked, the richtextbox is resized to the size of its contents. The label should tell me the rich textbox&'s height.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
Special Conditions / Other:
ASAP
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
$10 (USD)
|
Nov 30, 2001 11:05:38 AM EDT
|
10
(Excellent)
|
|
|
I know this is a repeat of what you have already tried to do...
There is an api call that will 'freeze' window updates, for you to make changes to a form.. then 'release' the freeze.. making the change 'pop'..
Perhaps this could be used in conjunction with one of the two methods that have already worked for you..
I know that using a picture control with autosize is resource intensive, so is going through each character to determin its' line and height.. and adding them all up.. |
|
|
|
|
|