News | Articles | Libraries | Developer Tools | Books | Forum Links | Search   
Sections:
 

User Interface

User interface. Specific of windows control on Pocket PC.

Articles at Pocket PC Developer Network

MSDN Technical Articles

MS Knowledge base

  • SAMPLE: How to Store a Signature in a 1-BPP Bitmap
    4/22/2003. The Sigcap.exe sample file demonstrates how to use GDI functions to store and load a 1-BPP (Bits-Per-Pixel) bitmap. This is especially useful when you want to store a handwritten signature as a bitmap so that it can be viewed by other programs that have already been implemented to display bitmaps.
  • HOWTO: Add Full Row Select Functionality to a ListView Control
    4/18/2003. The default behavior of the ListView control, when in Report View, is the ability to select only the item on the far left of the list. If you try to select any of the sub-items, nothing happens. Only the first item is available to be selected. You can avoid this limitation by adding a ListView extended style, LVS_EX_FULLROWSELECT, to the current ListView style. With this extended style you can select any sub-item and the entire row will be selected.
  • PRB: CE TabStrip Images Might Not Be Redrawn Properly
    9/4/2002. If you change the image on the selected tab of a TabStrip control, the image is not updated until you change tabs. If you remove all the images, the tabstrip does not reflect the removal of the images.
  • BUG: Grid Control Does Not Change Focus Until the Second Focus Event
    10/15/2002. In an eVB/VBCE project, when you change the focus from the Grid control to any of the following controls, the focus might not change until you click the other control twice: CommandButton, ListView, PictureBox, TabStrip, TreeView.
  • BUG: AfterLabelEdit Event Fires After Canceling an Edit
    10/15/2002. When using either the Microsoft CE ListView or CE TreeView control in either a Windows CE Toolkit for Visual Basic or eMbedded Visual Basic project, the AfterLabelEdit event fires after canceling a label edit. This behavior is not consistent with Visual Basic. This event should fire only if the label has actually been changed in some fashion.
  • BUG: Nested Dialog Boxes Leak Memory
    11/7/2001. When you dismiss a dialog box that was created as a child of another dialog box, some memory from the child dialog box will not be freed until the parent dialog box is dismissed.
  • BUG: File System Control: Open File Can Be Moved or Copied Without Error
    10/15/2002. In an eMbedded Visual Basic application, an error 55 "File already open" is not raised when an open file is copied or moved through the use of the FileCopy or MoveFile methods of the file system control.
  • BUG: CE CommonDialog: ShowOpen Displays Only My Document Files
    10/30/2002. The Open common dialog box displays files from the My Documents folder and its sub-folders regardless of how the FileName or InitDir properties of the CommonDialog control are set.
  • BUG: ScrollBar Slider Does Not Stop at the Cursor
    10/15/2002. When holding down the stylus of a Windows CE device (or the left-mouse button in emulation) to move the scroll bar slider, the slider does not stop at the cursor. It keeps going until it reaches the end of the scroll bar.
  • BUG: ComboBox Scroll Event Might Not Fire
    10/15/2002. Under certain circumstances (outlined below), the Scroll Event of a ComboBox may not fire.
  • BUG: Intrinsic Controls: Shortcut Keys Do Not Work as Expected
    9/4/2002. Adding numeric shortcut keys to your controls appears to have no effect.
  • PRB: MFC Property Sheets Close When Using Transcriber for Pocket PC
    9/7/2001. When you are using Microsoft Transcriber on a Pocket PC, a Microsoft Foundation Classes (MFC)-implemented property sheet dialog box disappears abruptly when you lift the stylus from the touch screen.
  • HOWTO: Implement an Independent Floating Modeless Dialog Box in MFC for Pocket PC
    8/20/2001. When you implement a modeless dialog box for Pocket PC in Microsoft Foundation Classes (MFC), MFC may resize the dialog box and hook some default processing to it. Sometimes it is desirable to have a fixed size for the dialog box and enable the user to move it around, such as a floating toolbox.
  • Q180756 - PRB: Alignment Property of TextBox Always Aligns to the Left
    10/29/2000. When you set the Alignment property of a TextBox, it has no affect on the justification of the text placed inside a TextBox. The text always appears justified on the left. This happens on the Windows CE Handheld Device and within the emulat
  • Q187962 - HOWTO: Add Images to the CE ImageList Control
    10/24/2000. The Microsoft CE ImageList Control allows a Visual Basic developer to store images in an ImageList and to give other controls, such as the TreeView, ListView and TabStrip controls, a way to refer to that collection of images.
  • Q260109 - PRB: Adding Unsupported CommandBar to a Pocket PC Form Causes No Error
    3/22/2001. The Microsoft CE CommandBar 3.0 control is not supported in the Pocket PC platform. You can note this by its absence in the
  • Q265451 - HOWTO: Run an eMbedded Visual Basic Application Full Screen on a Pocket PC Device
    1/19/2001. This article illustrates how to programmatically manipulate the various screen objects on a Pocket PC device by using the SHFullScreen API function from an eMbedded Visual Basic (eVB) application. It is popular for applications that target Windows CE to use as much of the screen of the smaller Palm-sized devices as possible. The new user interface (UI) of the Pocket PC platform requires additional work for an application to use the full screen area.
  • Q265778 - BUG: Shortcut Keys Do Not Work as Expected
    2/17/2001. Numeric shortcut keys for controls appear to have no effect when running an application.
  • Q266244 - HOWTO: Create Full-Screen Applications for the PocketPC
    5/9/2001. The documentation clearly describes how to use the SHFullScreen API in a non-Microsoft Foundation Class (MFC) Win32 application to create full-screen windows on the PocketPC. However, the documentation does not describe the same procedure for MFC-based applications. This article describes how to make full-screened applications for the PocketPC by using either the Win32 API or MFC.

Questions and Answers at www.cegadgets.com

CodeProject

  • Transparent Controls with custom image backgrounds on PocketPC
    Aug 16, 2003. Transparent Controls with custom image backgrounds on PocketPC
  • A font chooser dialog for the Pocket PC
    Aug 17, 2003. Implementing a font chooser dialog with preview and ClearType support
  • Customizing the DocList
    08 June 2003. The DocList is what you see when you launch Pocket Word or Pocket Excel or the other standard PocketPC apps. It shows a list of files, and the user can choose which folder to view via the drop-down in the top left. It's the PocketPC's answer to FileOpen. This article shows how to customize the folder list.
  • CCeListCtrlEx for Pocket PC 2002
    15 May 2003. A ownerdraw list control to emulate a single select list box with a little icon at the beginning of each line.
  • Having full screen without accessing the SHFullScreen API
    27 Oct 2002. This article show you how to make a full screen PocketPC application by removing the taskbar, menubar, SIP button as well as reposition the input panel by your own code.
  • A quick way of implementing a Pocket Outlook-type letter strip
    13 Jan 2003. This article presents a very quick implementation of the "Letter Strip" control found in Pocket Outlook. It is a very simple control that allows the user to select or find the information on a list by clicking in one of the nine letter areas. The behaviour that Pocket Outlook implements is to find all the records that start with the given letter. To choose another letter in the same group, the user clicks the same area, and the control loops in a circular fashion through all three letters
  • Multiple Toolbars in the PocketPC 2002
    17 Mar 2003. This article presents a solution on how to implement multiple toolbars in a PocketPC 2002 application. The idea came from an exchange in the Embedded / Mobile message board where this functionality was sought, especially the Pocket Word-like management of the toolbar.
  • Colour Picker Control for Windows CE
    31 Jan 2003. This is a port of Chris Maunder's Office 97 style Colour Picker control [^] to Windows CE (PocketPC 2002). The code was adapted using the preprocessor macro _WIN32_WCE to enable transparent compilation in both eVC++ 3.0 and VC++ 6.0.
  • Arabic Support for Windows CE
    20 Jan 2003. When Microsoft Windows CE first came to life and the number of the PDA's based on it increased rapidly, the software market was opend widely for a new type of applications and we all wanted to write new applications or to port our application already written for Win32 to Windows CE. Unfortunely, for the arabic market, there is no Arabic language support in WinCE 2.11 and WinCE 3.0 After a long time some third parties introduced some solutions and each claimed "We have the first and best Arabic Language Support for Windows CE (or PocketPC)". They offered their solutions for a big amount of what is called "money". Too big for a poor freelance programmer to handle. And after one of the companies offering the solution asked me $5000 for their solution (don't tell them I told you it was bad), I started to write the first and best Arabic Language support for Windows CE myself. It was about 14 months ago. And here is what I did
  • A File Open Dialog for the PocketPC 2002
    27 Mar 2003. On the PocketPC, the File Open dialog is not very versatile. In fact, you are limited to a small number of directories, which may be too limiting for your own purposes. I started to think about a possible solution for this problem after reading a post in the Mobile / Embedded forum, where a reader complains about the limitations of CFileDialog. This article describes the simple solution I devised. Mind you, it is simple, very simple.
  • A Selection Bar for the PocketPC 2002
    13 Mar 2003. This article describes one implementation of the selection bar which is present in Microsoft's applications for the PocketPC 2002. After looking very thoroughly through the PPC 2002 SDK, I found no API that would implement this functionality, so I decided to implement it myself.
  • A Non Full-Screen Dialog Class for Windows CE
    Showing a non full screen dialog under pocket pc is actually pretty easy. All you have to do is set the m_bFullScreen member of the CDialog class to FALSE in your dialog's constructor. It's after making a dialog non full screen that the problem begins. When you invoke any one of the SIP components, i.e. Keyboard, Transcriber, Block Recognizer etc. a dialog created in the above process will loose all its posture and will go full screen! To stop this erratic behavior, all you need to do is handle two windows messages, WM_ACTIVATE and WM_SETTINGCHANGE, and just call their default implementation in CWnd.
  • Window Wrapper for WinCE Win32 "Hello World" app
    28 Jun 2002. I created a dialog based app to run on Windows wih MFC. The heart of this program was a few classes that didn't depend on MFC and I took care to make them easily portable, because I knew I wanted to try it on CE. I started Embedded Visual C 3.0 and looked for an App Wizard to help me create a Win 32 based dialog app. Since there was none to be found, I created a new project using the Win32 App Wizard. Just like the Win32 App Wizard in Visual Studio, there wasn't a class in sight.
  • Window Wrapper for WinCE Win32 dialog app
    12 Jul 2002. This article continues to chronicle my quest to get a Dialog Based WinCE application that I can use objects with. This article uses the sample from my earlier project, a Win32 "Hello World" app with a wrapper object, as the starting point.
  • Real Time 2D Graph for CE
    14 Nov 2001. A 2D graph for CE. To Run this application you must have installed eMbedded Visual C++ 3.0
  • Using Windows CE CommandBands in an MFC based Application
    Updated 2 Feb 2000. An introduction to using CommandBars in CE
  • Adding Icons to the System Tray
    21 Sep 2000. A class for adding icons to the system tray. This class is a light wrapper around the windows system tray stuff. It adds an icon to the system tray with the specified ToolTip text and callback notification value, which is sent back to the Parent window.

CodeGuru

  • PocketPC-Adding a Permanent Menu Entry to the New Button Menu
    December 10, 2002. For a PocketPC application that I was writing recently, one of my tasks was to add a custom menu entry to the PocketPC New Button Menu. Because I've seen that the topic gets asked enough times on Pocket PC programming forums, I thought I'd write something to this end. Of course, you can always look through the documentation to New Menu items that comes along with the PocketPC SDK for reference. Through this brief tutorial I will show you the steps involved to do this. The sample project adds such menu items and handles respective menu clicks.

DEVBUZZ.COM

  • Using eVB to access the richink control (via ecncrichink.dll)
    19 Mar 2002. Too many people asked Mike Dejanovic the same question on the WEB! "Is it possible to do RICH text editing inside a Pocket PC as it is done in the desktop environment?" Since he couldn't find any solution that was similar to the RichEdit, he engineered his own method to access the existing CE ink capabilities. Yes, there are some examples of using the HtmlView libraries that wrap the HtmlView control and allow you to create an HTML based dialog with use of HTML code to display colors, pictures and so on. I can't say much about that solution since I have not test it yet. My goal was to allow eVB easy access to richink.dll
  • Performance Grid
    20 Oct 2002. This article was inspired by a recent project, Pocket RDA. Pocket RDA provides remote data access from the Pocket PC to any ADO compliant database. The results were returned into a grid control, and could be saved or copied to the clipboard. In 'program' testing, things looked great (don't they always!!), the 30 or so customer records returned quickly. (As we all know, most 'programmer testing' is carried out with the same 10 records.) I was a bit more concerned with the performance of 100 plus records, but decided it was probably network load (software guys blame the hardware - hardware guys blame the software!). Then when I got into 'real' testing with 2000 records plus, it crawled to a standstill.
  • RESCO's new powerful Grid and ListView controls
    2 Jan 2003. Every developer starting off with eVB wants to develop the perfect mobile application incorporating many user-friendly and powerful visual controls with an attractive and colorful interface and sophisticated features. In addition, everyone would like to do it in just "one hour" by clicking a property window and interfacing with the control using the minimum amount of code - the same way they used to do in the desktop VB environment.
  • Review of Odyssey Software's free DataViewer control for eVB
    3 Feb 2003. The DataViewer is very fast and much better than a regular ListView, Grid, or ComboBox. Especially the ComboBox because you can display multiple columns with column headings in the simulated combo (scrolling both vertically & horizontally), yet you can choose what column to return to the TextBox (used to hold the selection) when the user selects a record from the list. The main principal behind the DataViewer is that you are not loading up the control with a copy of your data, which the control then displays. Instead...
  • Adding images to the eVB Imagelist control
    This week I would like to share how to add images to an Imagelist control and then show you how to reference the images in this control. The Imagelist control is quite different from its standard Visual Basic counterpart, so it is useful to know where to start.
  • Simulating control arrays in eVB
    One of many features left out of eVB is the ability to create control arrays... or so say experienced programmers on message boards and newsgroups all over the net - because trial-and-error (with the concurrence of MSDN, of course) have dictated such. Well, I'm here to dissent...
  • Alternative eVB DatePicker control.
    Last week we ran our first tutorial on the eVB Datepicker, mentioning that this is a relatively simple app made complicated by the fact that eVB does not support control arrays. This week Mike Luger generously provides the source code to his evb Datepicker. Unique to this datepicker implementation is the ability to dynamically resize the calendar control. To this end Mike has added a horizontal scroll bar demonstrating this capability. The code is well documented and it will be easy to integrate into your application.
  • eVB Treeview control and ImageList control.
    Adding nodes to a TreeView Control that make use of images in the Imagelist control...
  • Need a quick eVB DatePicker control?
    This is a relatively simple app made complicated by the fact that eVB does not support control arrays. This evb Datepicker demonstrates one way to work around this. The calendar is contained within a frame to make it easy to Show and Hide with the frame's (fraDP) Visible property. The month and year arrows are basic plus / minus functions. The ok button makes the calendar invisible.
  • Use eVB to create a scrollable forms on your Pocket PC.
    The PocketPC device, as other handheld devices, has very limited screen real estate for displaying information and forms. Microsoft has overcome this issue with many of their forms by implementing scrollable forms. For example, they use this technique with the contact manager entry form. This article describes a simple technique you can use to create your own scrollable forms.
  • Custom eVB Message Box.
    Ever wish you could control how the standard MsgBox looks and where its position on the screen? Well this tutorial will offer you a simple way to create your own substitution for the boring MsgBox where your imagination is the limit. Very little code is required too. We will call it MyMsgBox control (real original!). It is simply implemented as a Subroutine you call just like MsgBox.
  • Use eVB to create display and edit forms for your Pocket PC.
    The Pocket PC is an ideal platform for carrying information around that you need to review often and occasionally edit. This leaves a developer with a dilemma - do I optimize the display for entry or for displaying information. Microsoft solved this problem for the contacts function by having two screens. Unfortunately, the screens are completely ...
  • Use eVB to create a Menubar on your Pocket PC.
    The MenuBar control is used within eVB to add menus to your application. In this tutorial I will cover the creation and use of text menus.
  • Simulating Dynamic Control Creation in eVB
    10 Jan 2002. In most applications, we can come up with a definitive set of controls and place them on a form to give the user all of the flexibility they could possibly need. There are, however, other situations in which we don't know how many controls need to be placed on a form until the program is actually running. This presents a problem for eVB developers (particularly because some of the most useful Pocket PC software involved user-defined lists of one sort or another). In this article, I will present a straight-forward solution to this problem.
  • Drawing Fonts Directly on an eVB Form
    1 Jan 2002. Chris Tacke delves into the API's used to manipulate fonts on your Pocket PC from eVB; "A few weeks ago, in my daily browsing of newsgroups and developer lists, I came across an innocuous question posted by another developer looking for some help. "How do I display a Label vertically on my Form?" It's a reasonable question and the ability to display text in an orientation other than horizontal is nice in a lot of situations. The challenge was going to be getting eVB, with all of its inherent limitations, to play along.
  • DeveloperOne's OutALine - A text outliner for the Pocket PC
    26 Dec 2001. DeveloperOne's OutALine is quite simply a text outliner for the Pocket PC, enabling users to arrange text, or items, into a hierarchal structure. With a relatively simple and intuitive interface, OutALine's has equally simple but fitting preferences, with selectors for checkboxes, drag and drop editing and options for displaying the note-display bar and font size. Most useful of the preferences is the ability to set a different font color for up to eight outline levels, further reinforcing the structure of the hierarchal "tree" and the organization of one item relative to another.
  • Looks Matter Too
    2 Nov 2001. A look at the struggles encountered in making an eVB application presentable for commercial distribution by simply getting it to launch from a unique and appropriate icon. Dwayne discusses the how-to articles that don't, and the one that does, as well as the automation tool "ICon Ship", created to save time and prevent costly errors in your distribution files.
  • Generating eVB forms from XML documents
    Aug 2001. In this article I will show you how to display an XML document using windows common controls and EVB.
  • ng eVB forms from XML documents - Part II
    Oct 2001. This article focuses on that sector where we will use the EVB and MSXML parser to send the XML document to the server and display the information that was sent from the server after the successful upload.

Pocket-G

  • Off-screen technique
    Before, we learn about OFF SCREEN tecnique. Let see what is on screen? Why it not seem to works with game application? Well, another basic problem, how can we draw text, picture or animation to the Window's client area?

Innovative Decision Support Systems

  • How to Limit a TextBox to Numeric Input in eVB
    Force a TextBox to accept only numeric input without validation code by using the API. This is much more efficient than a Select...Case in the KeyDown event handler
  • Disabling the TaskBar in eVB
    9/22/01. Frequently it is necessary to prohibit users from accessing other applications or settings on a device. One way to accomplish this is to hide the TaskBar after your application is running. In this code snippet Trevor Harris demonstrates just how easy that is.
  • Using the ListView in eVB
    9/21/01. The ListView control's documentation is sparse and limited and the control itself is somewhat confusing. Add to that the fact that a lot of functionality is outright missing in eVB. In this tutorial, Chris Tacke walks you through the basic and not-so-basic features of the ListView control

Libraries

  • Progress Bar Control
    ActiveX control. A progress bar is a control that indicates the progress of a lengthy operation by displaying a colored bar inside a horizontal rectangle.
  • Popup Menu Control
    ActiveX control. Popup menus display frequently used commands after pressing the stylus on an object for a certain amount of time. They can be context sensitive to the location of the pointer. Using pop-up menus in your application requires building the menu itself and connecting it to application code.
  • Month Calendar Control
    ActiveX control. This control shows a child window that displays a monthly calendar. The month calendar control provides the user with a simple calendar interface, from which the user can select a date.
  • DateTime Control
    ActiveX control. The Date and Time Picker (DTP) control provides a simple and intuitive interface through which an application can exchange information with a user. For example, with a DTP control you can ask the user to enter a date and then retrieve the user's selection.
  • AutoListCtrl
    C++ library. Extends the standard CListCtrl class, adding automatic column sizing, column sorting (with data types), very easy to use.
  • STFullScreen
    C++ library. This library includes functions for creating full screen applications, abstract classes to derive your full screen views and dialogs from and wizard for creating full screen Pocket PC applications.
  • WTL
    C++ library. Windows Template Library is one more object oriented windows library (like MFC, ATL, etc). It has not MFC legacy and that is why is more elegant but it is not widely used and supported and you will not find a lot of documentation about that. The WTL is an extension to the ATL, developed by the same ATL team.
  • WTL extensions for Windows CE specific controls
    C++ library. Adds wrappers for Windows CE 3.0 inking classes to WTL.
  • vbceTaskBar
    ActiveX control. vbceTaskBar allows you to disable and enable the task bar. You can use vbceTaskBar to prevent users from accessing the Start Menu, making your application the only one that can be run on the device.
  • vbceDateTimePicker
    ActiveX control. The vbceDateTimePicker is an easy to use, yet powerful ActiveX control for VBCE/eVB developers. It provides a very easy to use interface for selecting dates from a calendar.
  • EasyInk
    ActiveX control. Free control very suitable for signature capture (and other types of freehand drawings) called EasyInk. This is a Microsoft ActiveXR control available for the Pocket PC platform as well as the PC. The point of having the same control available on both platforms is that you can transfer digital image data (signatures) between the two. A practical example would be to capture the signature on a Pocket PC and then send the data (wirelessly) to a server, where the signature gets added to a report using the same control. The data that you can retrieve from the control is in bitmap format, as this is more often smaller for freehand drawing (like signatures) than the vector format.
  • Resco ListView
    ActiveX control. It is a professional ActiveX control designed for a mobile platforms. It provides all powerful features that you know from a desktop version. In addition to standard views (Icons, SmallIcons, List and Report) you can use it as an advanced grid control to process your data in a clear tabular form.
  • DTP Pocket PC 2002
    ActiveX control. Include a Pop Up Date Time Picker in your eVB project.
© 2001-2005 Pocket PC Developer Network, a division of Spb Software House