Insert symbol dialog for application

I have a small text editor that I have written using the RTFText control. I would now like to add a button which will show something like the Insert Symbol dialog so a user can graphically insert various symbols without having to use the ALT<nnn> codes.

A small snippet of code would be great.
CharlesSHillAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dr_binksCommented:
create another form with a listbox and add this code:

Private Sub Form_Load()
    Dim I As Integer
   
    For I = 1 To 255
        ' Fills lstSymbols with Symbols
        If I < 10 Then
            lstSymbols.AddItem I & "     -  " & Chr(I)
        ElseIf I < 100 Then
            lstSymbols.AddItem I & "   -  " & Chr(I)
        Else
            lstSymbols.AddItem I & " -  " & Chr(I)
        End If
    Next I
End Sub

Private Sub lstSymbols_DblClick()
    ' Insert selected symbol to rtfText
   formname.rtftextboxname = formname.rtftextboxname & Right(lstSymbols.Text, 1)
End Sub

I hope that helps

~Binks
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gbzhhuCommented:
If you don't mind refrencing word then:
Create word object (keep hidden)
Create word document (invisible)

then

Dim dlg As Dialog
Set dlg = Application.Dialogs(wdDialogInsertSymbol)
dlg.Show
MsgBox ActiveDocument.Paragraphs(1)   'should return the symbol user selected
0
CharlesSHillAuthor Commented:
No MSWord on the targe computer
0
gbzhhuCommented:
Then AFAIK you will have to create your own interface (form, listbox etc) and populate with symbols as suggested by Binks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.