http://www.newton-inc.com/dev/techinfo/qa/qa.htm
protoKeyboardButton
-based keyboard list. Is this possible?protoKeyboardButton
has a method called SetKeyboardList
that lets you do this. SetKeyboardList
takes two arguments. The first argument is an array of keyboard symbols to add to the list. The second argument is an array of keyboard symbols to remove from the list. Note that the keyboard symbols of the built-in keyboards are listed on pages pages 8-26 and 8-27 of the Newton Programmer's Guide.keyboardSymbol
.preallocatedContext
slot with the symbol of the keyboarduserName
slot with the name that will appear in the protoKeyboardButton
popupkeyboardSymbol
slot with your keyboard's symbol preallocatedContext
slot and the keyboardSymbol
slot must be the same symbol. Note that the keyboardSymbol
slot is required, but the preallocatedContext
slot is additionally necessary to avoid exceptions on devices prior to Newton 2.1 OS.viewSetupDoneScript
of the protoKeyboardButton
-based view, send the button a SetKeyboardList
message with your keyboard's symbol. For instance, you might have the following viewSetupDoneScript
:viewSetupDoneScript: func()
begin
:SetKeyboardList( [kMyKeyboardSymbol], nil );
// Be sure to call the inherited viewSetupDoneScript method!
inherited:?viewSetupDoneScript();
end;
buttonClickScript
. You must first call SetKeyboardList
, then call the inherited buttonClickScript
.protoKeyboardButton
-based view is closed.