Sun Microsystems Computer Accessories manual Wireless Toolkit Basic Customization Guide December

Page 62

button.SELECT = 97, 370, 50, 28 button.DOWN = 97, 398, 50, 22 button.CLEAR = 92, 426, 58, 31

button.SOFT1 = 31, 350, 39, 31 button.SOFT2 = 175, 350, 36, 31 button.POWER = 157, 53, 30, 30

command.keys.BACK = SOFT1 command.keys.EXIT = SOFT1 command.keys.CANCEL = SOFT1 command.keys.STOP = SOFT1

command.keys.OK = SOFT2 command.keys.SCREEN = SOFT2 command.keys.ITEM = SOFT2 command.keys.HELP = SOFT2

command.exclusive.SOFT1 = BACK, EXIT, CANCEL, STOP

command.menu.activate = SOFT2

keyboard.handler = com.sun.kvem.midp.DefaultKeyboardHandler

key.0 = VK_0 VK_NUMPAD0 key.1 = VK_1 VK_NUMPAD1 key.2 = VK_2 VK_NUMPAD2 key.3 = VK_3 VK_NUMPAD3 key.4 = VK_4 VK_NUMPAD4 key.5 = VK_5 VK_NUMPAD5 key.6 = VK_6 VK_NUMPAD6 key.7 = VK_7 VK_NUMPAD7 key.8 = VK_8 VK_NUMPAD8 key.9 = VK_9 VK_NUMPAD9 key.POUND = VK_SUBTRACT key.ASTERISK = VK_MULTIPLY key.POWER = VK_ESCAPE key.UP = VK_UP

key.DOWN = VK_DOWN key.LEFT = VK_LEFT key.RIGHT = VK_RIGHT key.SELECT = VK_ENTER key.SOFT1 = VK_F1 key.SOFT2 = VK_F2 key.SEND = VK_HOME key.END = VK_END key.CLEAR = VK_BACK_SPACE

#Multiple font support:

#font.<face>.<style>.<size>=<font properties filename>

#<system font definition>

#Where

48 Wireless Toolkit Basic Customization Guide • December 2003

Image 62
Contents Basic Customization Guide Please Contents Examining Device Property Files Default Emulator Device Property Files Vi Wireless Toolkit Basic Customization Guide December Figures Viii Wireless Toolkit Basic Customization Guide December Tables Wireless Toolkit Basic Customization Guide December Who Should Use This Book How This Book Is OrganizedUsing Operating System Commands Related Documentation Typographic ConventionsShell Prompts Accessing Sun Documentation Online Sun Welcomes Your CommentsCustomizing the Wireless Toolkit How to Customize the Wireless ToolkitDevice Property Files and the Default Emulator Customization StepsCustomizing the Wireless Toolkit Wireless Toolkit Basic Customization Guide December Creating Device Property Files Make a Copy of an Existing Main Device Property FileObtain and Enter Image Files Obtain and Enter the Screen Properties Screen LocationTotal Screen Size Display AreaDisplay Area in Full Screen Mode Specifying Screen PropertiesObtain and Enter the Button Properties By measuring the image file, obtain the button propertiesHeight Width Obtain and Enter Soft Button Label Areas Soft button label display is defined by a line of the form Obtain and Enter Icon Properties Defining the Icon Location and StatesEnter the following measured values for the icons properties Screen Background RGB Color Enter Color PropertiesRun the Emulator for the New Device Examining Device Property Files Device Property Files Fonts Used by the Midp APIs Main Device Property FileFonts Bitmap Fonts Default FontSystem Fonts Ascii character Distance to character Font Underlining Device ImageImage with Buttons Highlighted and Backlight On Image without Buttons PressedImage with Buttons Pressed ScalingScreen Properties Screen Location Display Area Display Area in Full Screen ModeTotal Screen Size Screen Pixel Ratio Screen Background ColorScreen Buffering Screen Border ColorTouch Screen Defining a Device Button Device ButtonsKeyboard Handler Button.LEFT = 13, 197, 20 Assigning a PC Keyboard Key to a Button Assigning a Game Action to a Button Specifying the Characters Generated by a Button PressAssigning Abstract Commands to Buttons Abstract Command Types in Order of PrecedenceEmulating Abstract Command Button Assignments Precedence of Assigning Commands to a Button Secondary Button Assignments Abstract Command Menu Displayed Icons Defining the Icon Location and StatesSoft Button Label Display Soft Button Labels on the Emulated Device DisplayColor Sound AlertsDevice Software Capabilities Alert Type ValuesLocales Character EncodingsEnableAlphaChannel false Transparent ImagesWireless Toolkit Basic Customization Guide December Default Emulator Device Property Files Property FilesDefaultGrayPhone.properties Appendix a Default Emulator Device Property Files Wireless Toolkit Basic Customization Guide December Appendix a Default Emulator Device Property Files Wireless Toolkit Basic Customization Guide December # alert.alerttype.sound soundfile Wireless Toolkit Basic Customization Guide December Device Image Files Icon Image FilesIcon Image Files Support for ByteCode Obfuscators Adding a ByteCode ObfuscatorExample Appendix B Support for ByteCode Obfuscators Wireless Toolkit Basic Customization Guide December P E N D I X C Wireless Toolkit Basic Customization Guide December Index Keyboard.handler property Device property files, 1 WMA messages, customizing Wireless Toolkit Basic Customization Guide December