Exetools  

Go Back   Exetools > General > Source Code

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2018, 00:50
mrfearless mrfearless is offline
Family
 
Join Date: Jan 2017
Location: Ireland
Posts: 5
Rept. Given: 14
Rept. Rcvd 5 Times in 2 Posts
Thanks Given: 29
Thanks Rcvd at 21 Times in 5 Posts
mrfearless Reputation: 5
DrawTextEXT - DrawHTMLCODE and DrawBBCODE

Mainly for anyone using asm and interested in custom controls or adding more functionality to their projects, I recently began work in porting over, adapting and adding to DrawHTML code from Ukkie9: https://www.codeproject.com/Articles/7936/DrawHTML

I created two functions: DrawHTMLCODE and DrawBBCODE that processes html or bbcode tags in a string and adjusts the text and font style accordingly and outputs the result as per DrawText or DrawTextEx win32 api functions, but with the added enhancements.

So far some tags are supported, not all. Mainly ones that are more common in use, or made sense to include.

Anyhow I have put the code on github for anyone to use.

https://github.com/mrfearless/DrawTextEXT
Reply With Quote
The Following 2 Users Gave Reputation+1 to mrfearless For This Useful Post:
MarcElBichon (09-01-2018), TechLord (09-01-2018)
The Following 8 Users Say Thank You to mrfearless For This Useful Post:
dosprog (09-11-2018), gsaralji (09-02-2018), h4sh3m (09-01-2018), Indigo (07-19-2019), niculaita (09-01-2018), ragdog (01-18-2019), smallfox (09-15-2018), Zeokat (09-17-2018)
  #2  
Old 09-15-2018, 11:10
smallfox smallfox is offline
Friend
 
Join Date: Sep 2002
Posts: 56
Rept. Given: 32
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 15
Thanks Rcvd at 5 Times in 4 Posts
smallfox Reputation: 0
interesting approach! love the code
Reply With Quote
The Following User Says Thank You to smallfox For This Useful Post:
Indigo (07-19-2019)
Reply

Tags
asm, custom control, win32

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT +8. The time now is 16:42.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )