Tuesday, May 22nd 2018, 12:35am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

bama

Beginner

Date of registration: Apr 15th 2013

Posts: 11

1

Friday, August 9th 2013, 7:51am

Event "WM_NOTIFICATION_RELEASED" for ICONVIEW

Hello,
I'm using now different Menu with the ICONVIEW Widget.
There I also have some Menu where I have a big space between the icons.
At the moment I evaluate touch event on the INOVIEW in the following way:

C/C++ Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
		case WM_NOTIFY_PARENT :
			NCode = pMsg->Data.v;
			Id = WM_GetId ( pMsg->hWinSrc );
			if ( Id == ID_ICONVIEW_0 )
			{
				switch ( NCode )
				{
					case WM_NOTIFICATION_RELEASED :
						Sel = ICONVIEW_GetSel ( pMsg->hWinSrc );
						if ( Sel == 0 )
						{
							TaskQueue_Enqueue ( EVENT_UPDATE_MENU );
						}
						else if ( Sel == 1 )
						{
							TaskQueue_Enqueue ( EVENT_UPDATE_MENU );
						}
						break;
				}
			}
			break;

But now I have the Problem that if I touch the display between the two icons then the left icon will be selcted. So I react on a event although I have not touched the icon.
If this happen if there is only a space of some pixcel between the icons this would be no big problem. But now I have a space of about 100 Pixcel between!
Is there any solution for this Problem?

regards
markus

Date of registration: May 26th 2009

Posts: 1,022

2

Monday, August 12th 2013, 10:54am

Hello Markus,

Thank you for reporting this behavior. I just had a look at the ICONVIEW widget. You are right. This should be improved. I will let you know once the problem is solved.

Best regards,
Adrian