Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Overrriding default behaviors

We are trying to add editing capabilities to the Table widget. We would
like to simulate the Excel's cell behaviour, including the "embeded
combo" option. The problem is some keys already have behaviour that we
cannot override (la arrows chang the selection in the combo). We'd like
to allow the user to use the keys to navigate through the cells but we
cannt avoid the combo selection to change (in the case of the up and
down arrows).
That default behaviour doesn't do any harm in the case of the Text
widget, it just moves the cursor.

So, is there any way, including subclassing or calling the OS, to avoid
the widget's default behavoiurs envolving the key events?

I know this will not be as easy as opening a combo programatically, but
the workarounds we have figured are not very elegant.

We are working in with SWT on PocketPC (Compaq iPaq)
	Thank you all.


Back to the top