Tuesday, October 17th 2017, 8:03am 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.

soonheng

Beginner

Date of registration: Jun 2nd 2011

Posts: 3

1

Friday, June 24th 2011, 11:03am

Problem using dropdown and edit widget

Hi,

I have a menu displaying 2 widgets. The dropdown widget is just above the edit widget. When clicking on the edit widget, it shall pop up a number pad for data entry.

I have a situation that, when user is clicking on an item in the dropdown widget that happens to overlay on the edit widget, the dropdown list is collapsed (that's OK) but at the same time, the edit widget also activates the number pad.

The notification code used for the edit wigdet is WM_NOTIFICATION_RELEASED. I have tried workaround solution to use WM_NOTIFICATION_CLICKED instead. It does work on PC simulator but not on our target board (reason is unknown yet).

Or is there any way for the dropdown list to collapse only upon user releasing from the item selection instead? Currently, the dropdown list collapse immediately when user clicks on the item in the list.

Please help!

Pedrinh089

Beginner

Date of registration: Aug 23rd 2014

Posts: 3

2

Friday, July 17th 2015, 11:15pm

Hello Soonheng,
I am facing a similar problem.
I have a button underneath a dropdown list and when I select and item on the drop down list it performs a button click. Have you been able to find a solution for this?
Thank you.

SEGGER - Adrian

Super Moderator

Date of registration: May 26th 2009

Posts: 994

3

Sunday, July 19th 2015, 3:04pm

Hello Guys,

Please note that there is a function BUTTON_SetReactOnLevel() which makes BUTTON widgets react to release events only in case the pressed event happened on actual BUTTON widget.

Unfortunately we currently do not have such a function for the EDIT widget. We will discuss this and add an according function to the EDIT widget API.

Thank you for reporting that.

Best regards,
Adrian