• News
  • Products
    • IPACK
      Compact Framework 2.0/3.5
    • IPACK CF39
      Compact Framework 3.9
    • IDESK
      .NET Framework
  • Services
    • References
  • Support
    • Technical articles
  • Company
    • Press releases
    • Open positions
    • Contact us
Banner
  • iPack
  • Features
  • Showcases
  • Use cases
  • Pricing

TouchListLite - Usage tutorial

Last modified: April 10, 2012

Advantages

  • Transparent images in your list (Alpha channel is supported for a *.png image)
  • Custom background image
  • Gradient background
  • Vista style or gradient cursor with round corners
  • Touch scrolling: finger friendly navigation
  • With Margins you can define relative positions for items, so you will receive the same design for Landscape and Portrait

What is what?

TImage

This class allows you to specify the source of your image. You can either load image from a file (ImageFromFile property) or from the resources (ImageFromResx property). ImgeInDesigner property will be used for the Visual Studio designer only.

TImageList

It is a collection of TImage.

Tip:

You can create image list for QVGA resolution and a second image list for VGA/WVGA resolution. Before the application will display your TouchList control you can detect the resolution of your device and then use the right TImageList.

TouchListLite control

Helps you to create a simple list with 2 transparent Image items and 2 Text items in a row.

Preparing Transparent Images for your TouchListLite

1. Add your images to the project and in Properties window set „Build Action“ to „Embedded Resource“ if you would like to store your images in resources, and set to „Content and Copy to Output Directory“ property to „Copy If Newer“ if you prefer to load them from your disk.

2. Drag and drop TImageList from your Toolbox into your Form.

3. Click on TimageList’s Images property to add your images.

4. Use ImageFromFile property if you prefer loading from file. The value of this property is the relative path to your application.

E.g.:
Your application is located in: \\Program Files\Sample\MySample.exe
And your images are in: \\Program Files\Sample\Images\1_32x32.png
Then the ImageFromFile’s value should be: Images\1_32x32.png

5. Use ImageFromResx property if you prefer loading from resources. The value of this property is: [YourNamespace].[Directory].[FileName]

E.g.:
In our sample the default namespace is: TouchListTutorialSample
And our images are in Images directory, so the ImageFormResx will be: TouchListTutorialSample.Images.1_32x32.png

How to set up my first TouchList?

Drag and drop BeeMobile TouchListLite control from Visual Studio’s Toolbox into your Form, then click on Items property to open the editor and specify your rows.

One row’s format is:

Left Image‘s index | Text1.Text | Text2.Text | Right Image‘s index

Now you can adjust the:

  • Left image by properties in Item – Left Image category
  • Right image by properties in Item – Right Image category
  • Text1 by properties in Item – Text1 category
  • Text2 by properties in Item – Text2 category


Margins help you to define area for an item, and you can prevent the intersecting of two items in a row.

The Alignment property works in the specified area that you defined by Margins.

Free trial Purchase

iPack details

Compact Framework 2.0, 3.5
Operating system Windows Mobile, Windows CE, Windows Embedded Compact 7

Support

Usage tutorial Usage tutorial
Project samples Sample projects
Online help Online help
Forum topic Forum topic
  • Contact us |
  • Privacy policy |
  • Terms of use |

Copyright ©2008-23 Bee Mobile. All rights reserved

Follow us

  • RSS
  • Facebook
  • Twitter
  • Youtube