D
David Anderson
Imagine you are designing a form where the user might have to enter the name
of someone from Slovenia called Tomaz Crnej where you wish, out of courtesy,
to spell his name correctly. Both the lower case 'z' and the upper case 'C'
should therefore have a breve accent above the character.
You can enter a z with a breve by typing Alt-0158 in the Tahoma font (for
example). However, no such keyboard shortcut exists for a capital C with a
breve. For this reason, I wish to design a much simplified version of
Windows Character Map within my Access 2003 application.
However, I don't want to insert special characters into text fields or combo
boxes via copy and paste (apart from anything else, pasting into a combo box
does not trigger AutoExpand). I want to simply select the required character
in my CharMap popup box and have it automatically 'typed' into the currently
active text control on my main form - at the current position of the text
cursor.
The ActiveControl property of the main form will tell me which control is
active but I don't yet know how to simulate typing in a character to that
field. At present, all I can think of is to first force a save of any half
typed name in the Surname field, for example, before concatenating whatever
special character is selected in my CharMap popup. However, I don't know if
this will trigger AutoExpand if Surname happens to be a combo box and it
won't handle the situation where the text cursor is in the middle of a name.
Any other ideas while I continue to experiment?
David
of someone from Slovenia called Tomaz Crnej where you wish, out of courtesy,
to spell his name correctly. Both the lower case 'z' and the upper case 'C'
should therefore have a breve accent above the character.
You can enter a z with a breve by typing Alt-0158 in the Tahoma font (for
example). However, no such keyboard shortcut exists for a capital C with a
breve. For this reason, I wish to design a much simplified version of
Windows Character Map within my Access 2003 application.
However, I don't want to insert special characters into text fields or combo
boxes via copy and paste (apart from anything else, pasting into a combo box
does not trigger AutoExpand). I want to simply select the required character
in my CharMap popup box and have it automatically 'typed' into the currently
active text control on my main form - at the current position of the text
cursor.
The ActiveControl property of the main form will tell me which control is
active but I don't yet know how to simulate typing in a character to that
field. At present, all I can think of is to first force a save of any half
typed name in the Surname field, for example, before concatenating whatever
special character is selected in my CharMap popup. However, I don't know if
this will trigger AutoExpand if Surname happens to be a combo box and it
won't handle the situation where the text cursor is in the middle of a name.
Any other ideas while I continue to experiment?
David