Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] FocusGained, but in which direction

We aren't really mixing them, we have 2 Canvases side-by-side.  The
graphical diagram surface, and the palette for that surface.

I suppose the only real-world case (so far) is when the user accidentally
"falls off" our graphical Canvas and ends up on the Toolbar.  In that case,
they might reverse direction.  Maybe Steve is right, and a
most-recently-focused solution is a good enough aproximation.  We will
implement Steve's suggestion for now.

I thought this was going to be as simple as querying the Display's keymask
(looking for the Shift key).

OFF TOPIC:
The JavaEditor has a relatively simple navigation problem.  What do editors
(like PDE/WSAD) with around 40-100 Controls do to make those controls
accessible?  At some point, you need to introduce a navigation hierarchy
that lets the user go across groups of controls.  Is there a standard for
this?  Mnemonics?



|---------+---------------------------------->
|         |           Steve_Northover@xxxxxxx|
|         |           Sent by:               |
|         |           platform-swt-dev-admin@|
|         |           eclipse.org            |
|         |                                  |
|         |                                  |
|         |           04/08/2002 06:04 PM    |
|         |           Please respond to      |
|         |           platform-swt-dev       |
|         |                                  |
|---------+---------------------------------->
  >-------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                   |
  |       To:       platform-swt-dev@xxxxxxxxxxx                                                                      |
  |       cc:                                                                                                         |
  |       Subject:  Re: [platform-swt-dev] FocusGained, but in which direction                                        |
  |                                                                                                                   |
  |                                                                                                                   |
  >-------------------------------------------------------------------------------------------------------------------|




Guys, enter a bugzilla report.  Randy has a legitimate problem because he
is trying to do the lightweight thing (silly guy <g>).  I'm not quite sure
what we
can do about it because the focus callback comes from the OS and doesn't
have a field that we can set to indicate where the focus came from.

Randy, you could save and restore your last lightweight widget that had
focus
and set focus to be that thing whenever you get focus.  It wouldn't quite
be right
but it might be something.

Question:  Why are you mixing your lightweights with SWT widgets anyways?


Steve
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev






Back to the top