Create Menusystem using ListView in WinCE

  • Thread starter Thread starter Frank Dietrich
  • Start date Start date
F

Frank Dietrich

Hi,

I would like to create a menu-system using ListView-Controls for a WinCE 4.2 - Device. Just like
we see it everytime in many Phones and PDA's

The Idea is that I have a ListView for each Menulevel that shows Icons and Text. Clicking on an
Item either opens a lower (or upper) menulevel or launches a task.

I would like to select (and fire) an Item with a single click (touch-screen) as well as with arrow-keys and ENTER
or even with a digit (1-9).

A menuhandler takes care of the different menu-levels (and ListViews) etc.

I thought this could best be done using ListViews as they have the Icon and Text -capabilities and
do by themselves take care of aligning, scrollbars, navigation etc.

However I found (and read here) that simple things like a Click() are not supported and SelectedIndexChanged()
fires everytime the Item changes, even If I simply press "RightArrow".


I have realized the menu using panels and the OpenNETCF-ButtonEx. Works great with the mouse but I navigation with keys does not
work and ButtonEx has an issue with the focus after it has been clicked on (also I have no Scrollbars etc.)

Can anyone give me a hand on this? I think this must have been done a thousand times.

Thanks a lot in advance

Oh, C#, Win CE.NET, and of course .Net 2003



Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

(e-mail address removed)
DFPUG # 327
 
Maybe the Activation property and the ItemActivate event (both on listview)
can help your scenario...

Cheers
Daniel
 
Maybe the Activation property and the ItemActivate event (both on listview)
can help your scenario...

Sorry took me a while... Yes that helped me, thanks for the hint

Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

(e-mail address removed)
DFPUG # 327
 
Back
Top