Important alert: (current site time 7/16/2013 2:35:28 AM EDT)
 

winzip icon

DM Render Label

Email
Submitted on: 6/2/2006 6:24:32 PM
By: dreamvb  
Level: Beginner
User Rating: By 28 Users
Compatibility: VB 6.0
Views: 14127
 
     hi all this is a small user control I made to allow you to render basic HTML, at the moment it supports, Text Colors, Text styles, bold, italic, underline etc, Images, Page background images and colors, Bullet points and Lists, Hyperlinks, Page Redirect,Horizontal Lines,Text Alignment. and more. if you like this Next time I may add scrollbars hope you like it please vote.

 
winzip iconDownload code

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:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. 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 including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. 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.
  2. 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.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 169 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
6/2/2006 6:55:31 PMDondata

This is very nice!
Needs a little error handling though.
(If this comment was disrespectful, please report it.)

 
6/3/2006 5:10:12 AMLight Templer

VERY good idea and start - my ***** and regards - LiTe
(If this comment was disrespectful, please report it.)

 
6/3/2006 10:47:05 AMNorm Cook

Thanx for sharing a great project. Redirect didn't work until I prepended App.Path to sUrl in the DocRedirect routine.
(If this comment was disrespectful, please report it.)

 
6/3/2006 1:06:29 PMHardStream Software Development

This is really cool. If you develop this further, you might be able to make something to replace the webbrowser control (or some sort of offline browser control). This is really worth 5*
(If this comment was disrespectful, please report it.)

 
6/3/2006 1:51:02 PMdreamvb

Thanks for all the comments and votes, Norm Cook thanks for letting me know about that bug, so I may address thet problum as soon as I can.

thanks agian.
(If this comment was disrespectful, please report it.)

 
6/3/2006 8:19:49 PMmichael doering

Hi,
thanks for this very handy control.
I`m still waiting for the next version :-)

I found two little bugs,

1.) Err-No = 11
into the WebDC_MouseMove procedure is the variable 'm_TextHeight' when the app ist started, these variable has the value = '0'.
You can solve it, Usercontrol_Initialize
with this line 'm_TextHeight = WebDC.TextHeight("Qq")'

2.) Err-No = 5
RenderLabel_PhaseHTML
change the 'For e_End = 0 to iLen' statement to the 'For e_End = 1 to iLen'

regards
Michael
(If this comment was disrespectful, please report it.)

 
6/4/2006 4:36:51 PMRichard Mewett

dreamvb - this is an original submission and one that appears to have the potential to develop further. Have ***** from me.
(If this comment was disrespectful, please report it.)

 
6/5/2006 7:26:47 AMDaOdlak

Un-fr-ea-king-beleavable! Nice. Definetly 5 * from me!
(If this comment was disrespectful, please report it.)

 
6/6/2006 8:32:14 PMHeriberto Mantilla Santamaria

This's a really great examples, I wait you can finish all the project.
(If this comment was disrespectful, please report it.)

 
6/7/2006 10:31:26 AMSteppenwolfe

Code is clean and well written, and it is a useful control.. My 5
Might want to think of transporting a version of this to a class, (one less dependency, and easy to translate)..
(If this comment was disrespectful, please report it.)

 
6/7/2006 6:21:00 PMOption Explicit

Nice, original update of an old control concept (label). Great work.
(If this comment was disrespectful, please report it.)

 
6/18/2006 11:05:24 AMRuturaj

Excellent! One big thing is required though ... I tried it with Control Height lesser than required to show the whole text with the expectation of Scrollbar; but nothing happened that way :( May be in next version?
(If this comment was disrespectful, please report it.)

 
6/24/2006 11:18:40 AMdreamvb

Thanks for all the comments and votes, I will try and add the Scrollbar in soon.

(If this comment was disrespectful, please report it.)

 
6/27/2006 6:01:33 AMbob8works

wow! Great!
(If this comment was disrespectful, please report it.)

 
6/28/2006 6:00:52 AMZhu JinYong

Unicode doesn't support.
there is an excellent "HTMLLabel v0.3.0" at PSC CodeID=30318 by Woodbury.
(If this comment was disrespectful, please report it.)

 
6/29/2006 6:26:52 PMHeriberto Mantilla Santamaria

Hi Ben, you can finish the project, I wait you can implement justify text and scrollbar's.

@Zhu now this code of Woodbury is copyright ActiveX and this not.
(If this comment was disrespectful, please report it.)

 
7/15/2006 1:10:08 AMBrian Ail

very nice. try this:
-select text
-right clicking
-render buttons, controls and text fields! xD

btw the hyperlink's click location is off where it is supposed to be
(If this comment was disrespectful, please report it.)

 
7/26/2006 11:35:23 PMCoding MasterMind

besides the hyperlink positioning, brilliant.
(If this comment was disrespectful, please report it.)

 
7/31/2006 10:52:10 PMArvin Meralpis

I like this project even without the scrolling support. I just want to point out that link hotspot on some pages (images.htm, others.htm) is below the actual link. Thank you for sharing this and hoping to see the next version.
(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.)
 

To post feedback, first please login.