Iterating through virtual keyboard contents

To iterate through the contents of a particular virtual keyboard, use the TKeyMapRuleIterator class. TKeyMapRuleIterator iterates through the individual mapping rules contained by a TStandardEditableVirtualKeyboard.

TKeyMapRuleIterator returns each mapping rule as an instance of TKeyResultPair. TKeyResultPair contains:

TKeyResultPair provides access functions that let you retrieve any of this information.


To iterate through keyboard mapping rules:

  1. Instantiate a TStandardEditableVirtualKeyboard for the virtual keyboard you want to iterate through.
  2. Call the TStandardEditableVirtualKeyboard::CreateIterator member function to create an iterator for that keyboard.
  3. Call the iterator's First member function to initialize the iterator and return the first rule.
  4. Use the iterator's Next member function to iterate through the remaining rules.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker