INFO: Maximum Window Sizes for Windows CE Devices
ID: Q209033
|
The information in this article applies to:
-
Microsoft Windows CE Toolkit for Visual Basic 6.0, version 1.0
-
Microsoft Windows CE Toolkit for Visual Basic 5.0, version 1.0
SUMMARY
This article gives the maximum window sizes your forms can be on Handheld PC, Handheld PC Pro, and Palm-size PC devices. The article also shows how to create a simple project that displays the maximum screen size.
MORE INFORMATION
The following are the maximum window sizes you can display in a Windows CE device.
Handheld PC Device
|
Height |
Width |
Twips |
3600 |
9600 |
Pixels |
213 |
472 |
Handheld PC Pro Device
|
Height |
Width |
Twips |
7200 |
9600 |
Pixels |
453 |
632 |
Palm-size PC Device
|
Height |
Width |
Twips |
4800 |
3600 |
Pixels |
293 |
232 |
Notes::
- There are 1440 Twips per inch.
- H/PC Pro and Palm-size devices are not applicable to the Windows CE Toolkit for VB 5.0.
- These values are general and may not apply to every device within a category.
To verify these measurements you can create a project that displays the height and width properties of the screen object. The following section shows you how to create a project to display the maximum window size.
Steps to Create the Sample Project
- Start a new Windows CE HPC, HPC Pro, or PsPC project in Visual Basic. Use the emulation mode for the project. Form1 is created by default.
- Add a CommandButton to Form1.
- Copy the following code to the Form1 code window:
Option Explicit
Private Sub Form_Load()
Command1.Caption = "Maximum Window Size"
End Sub
Private Sub Command1_Click()
Dim strSize As String
strSize = "Maximum Height: " & Screen.Height & " Twips"
strSize = strSize & vbCrLf
strSize = strSize & "Maximum Width: " & Screen.Width & " Twips"
MsgBox strSize
End Sub
- Press the F5 key to start the project. Click the Maximum Window Size button to display the maximum window size information.
Additional query words:
Keywords : kbToolkit kbVBp600 kbWinCE kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbinfo