|
-
Mar 13th, 2001, 07:38 PM
#1
Thread Starter
Fanatic Member
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
-
Mar 14th, 2001, 12:38 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|