Results 1 to 2 of 2

Thread: showing rich text in a...???(i'm not sure)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Posts
    537
    ok,
    i've been trying to do this for a while.
    what i want is the same functionality as Word has with the fonts.
    you click the drop down and you can see all the fonts on your system in the actual style of the font.

    I can get a simmalar effect with a picture box and a vertical scroller.

    but i don't know how to 'select' the font i want from the picture box.

    i belive this can be done with API.

    to see what i am talking about open up Word and look at the fonts.

    any suggestions would be great as I am pretty much at the end of my rope on this.


    thanks
    pnj

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    A better idea would be to convert a combo box to user-drawn. This will let you change the font for each entry.
    The bad news is that you have to subclass the list box to do it.

    But an EASIER method would be to use a richtext box set to locked, and use api calls to determine the line you are clicking on. EM_GETLINE is one call.
    Last edited by Lord Orwell; Mar 14th, 2001 at 12:41 AM.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width