A2K Fonts Problem

  • Thread starter Thread starter Calvin X
  • Start date Start date
C

Calvin X

Hi All,

I am using Access 2000. I am looking to populate a combo box with all the
font names currently installed on the system. How do i get this list? Is
ther an API that I can call? Is there any way for me to view system API's
in case i need to look for something else?

I am trying to use a rich text control and have to provide the users with a
means to alter the font. Is there an easier way to do this (or a control I
can use) without having to code functionality myself?

Thanks

Calvin X
 
In addition to what Klatuu pointed you to, the HTML Editor on my site
contains code to fill a Combo control with all of the currently installed
Fonts on your system.
http://www.lebans.com/htmleditor.htm

You might also consider following the establish UI for presenting Font
choices to a user. See:
http://www.lebans.com/fontcolordialog.htm
ChooseFontColorDialog.zip is a database containing functions showing how to
call the API Font and Color Dialogs.

NEW - Jan. 28/2000 The Font and Color Dialogs are very easy to call. Here is
the code behind the Command Button on the sample Form. For this sample we
pass a TextBox that the function fills in with the Name and Size of the Font
selected by the user.

Private Sub CmdChooseFont_Click()
Dim lngRet As Boolean
' Pass the TextBox Control to the function
lngRet = test_DialogFont(Me.textCtl)
End Sub

Based on original code written by Terry Kreft.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Hey thanks,

That control does everything i need except allow me to conduct unbound edits
to data. I would like to be able to load data into the control via a string
and then send it back via a string. Is this possible? The control does not
have a text property so i cant even add data to it. I tried tp add a
simple string to the RTFText property but that didn't work. Doe the string
have to be formatted properly?


Calvin X
 
Back
Top