| MATLAB Central > MATLAB Newsreader > How to return keyboard focus to main window after ... |
|
|
|
Subject: How to return keyboard focus to main window after callback From: Bob Date: 10 Sep, 2008 17:15:42 Message: 1 of 28 |
|
I am writing a GUI and I have used the menu editor to define some |
|
Subject: How to return keyboard focus to main window after callback From: Walter Roberson Date: 10 Sep, 2008 18:58:28 Message: 2 of 28 |
|
Bob wrote: |
|
Subject: How to return keyboard focus to main window after callback From: Bob Date: 10 Sep, 2008 22:27:04 Message: 3 of 28 |
|
On Sep 10, 11:58 am, Walter Roberson <rober...@hushmail.com> wrote: |
|
Subject: How to return keyboard focus to main window after callback From: nor ki Date: 9 Jan, 2009 08:45:03 Message: 4 of 28 |
|
Bob <ralvarez@spambob.net> wrote in message <47ac4621-c0c3-4471-9a9e-34f97a0d8c19@n38g2000prl.googlegroups.com>... |
|
Subject: How to return keyboard focus to main window after callback From: Stefan Date: 3 Feb, 2009 10:39:01 Message: 5 of 28 |
|
Did anyone find a method to restore focus to the figure in order that the KeyPressFcn can be called again? |
|
Subject: How to return keyboard focus to main window after callback From: Stefan Date: 3 Feb, 2009 10:52:02 Message: 6 of 28 |
|
I even tried: |
|
Subject: How to return keyboard focus to main window after callback From: PR Date: 8 Feb, 2009 18:10:03 Message: 7 of 28 |
|
stuck on the same problem, please help... anyone? |
|
Subject: How to return keyboard focus to main window after callback From: Am VR Date: 23 Feb, 2009 17:15:19 Message: 8 of 28 |
|
Same problem here... |
|
Subject: How to return keyboard focus to main window after callback From: Stefan Date: 30 Apr, 2009 14:20:03 Message: 9 of 28 |
|
I still didn't manage to fix this? |
|
Subject: How to return keyboard focus to main window after callback From: Stefan Date: 30 Apr, 2009 15:42:01 Message: 10 of 28 |
|
I found a way where I'm overwriting the all uicontrol keypress functions, but it's not working with keyrelease because most uicontrols don't have keyrelease functions... |
|
Subject: How to return keyboard focus to main window after callback From: Jan Simon Date: 13 May, 2009 23:51:01 Message: 11 of 28 |
|
Dear Bob! |
|
Subject: How to return keyboard focus to main window after callback From: Yair Altman Date: 14 May, 2009 06:34:01 Message: 12 of 28 |
|
"Stefan" <s@m.de> wrote in message <gtcgs9$jot$1@fred.mathworks.com>... |
|
Subject: How to return keyboard focus to main window after callback From: Stefan Date: 14 May, 2009 11:10:02 Message: 13 of 28 |
|
> it's as simple as calling figure(hFig) and similarly for any Matlab uicontrol: uicontrol(hControl) |
|
Subject: How to return keyboard focus to main window after callback From: Yair Altman Date: 14 May, 2009 16:32:02 Message: 14 of 28 |
|
"Stefan" <s@m.de> wrote in message <gugu6a$50s$1@fred.mathworks.com>... |
|
Subject: How to return keyboard focus to main window after callback From: IonIon Date: 14 Jul, 2009 20:37:35 Message: 15 of 28 |
|
Same problem, and none of the suggestions proposed so far works. |
|
Subject: How to return keyboard focus to main window after callback From: Naor Movshovitz Date: 27 Jul, 2009 22:14:01 Message: 16 of 28 |
|
Same problem. At least I'm not alone. Focus should clearly be a separate and visible/setable property for pretty much every object. |
|
Subject: How to return keyboard focus to main window after callback From: Matt Fig Date: 27 Jul, 2009 22:38:02 Message: 17 of 28 |
|
Could all (or any) of you who are having trouble with this post a very simple, very short example of a GUI which has the problem? Don't forget to provide instructions on how to reproduce the problem. Thanks. |
|
Subject: How to return keyboard focus to main window after callback From: Naor Movshovitz Date: 28 Jul, 2009 18:46:06 Message: 18 of 28 |
|
I can't attach a file here, but it's the easiest thing to reproduce this: |
|
Subject: How to return keyboard focus to main window after callback From: Jan Simon Date: 29 Jul, 2009 02:30:21 Message: 19 of 28 |
|
Dear IonIon! |
|
Subject: How to return keyboard focus to main window after callback From: Matt Fig Date: 29 Jul, 2009 02:50:19 Message: 20 of 28 |
|
> Nevertheless, FIGURE(FigureHandle) should actually work and it is equivalent to UICONTROL(UIHandle). This is nicer than a settable Focus property, in my opinion. |
|
Subject: How to return keyboard focus to main window after callback From: Jan Simon Date: 29 Jul, 2009 03:17:02 Message: 21 of 28 |
|
Dear Naor Movshovitz! |
|
Subject: How to return keyboard focus to main window after callback From: Naor Movshovitz Date: 29 Jul, 2009 06:55:05 Message: 22 of 28 |
|
> I repeat myself: |
|
Subject: How to return keyboard focus to main window after callback From: Jan Simon Date: 29 Jul, 2009 14:19:01 Message: 23 of 28 |
|
Dear Naor Movshovitz! |
|
Subject: How to return keyboard focus to main window after callback From: Naor Movshovitz Date: 29 Jul, 2009 19:15:20 Message: 24 of 28 |
|
> The figure get focus after disable/reenable on WinXP32, Matlab 6.5/2008b/2009a. |
|
Subject: How to return keyboard focus to main window after callback From: Cristop Date: 21 Mar, 2010 07:30:12 Message: 25 of 28 |
|
"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <h4oeve$32u$1@fred.mathworks.com>... |
|
Subject: How to return keyboard focus to main window after callback From: Heiko Date: 29 Feb, 2012 07:44:14 Message: 26 of 28 |
|
"Naor Movshovitz" wrote in message <h4q748$nps$1@fred.mathworks.com>... |
|
Subject: How to return keyboard focus to main window after callback From: Andrew Date: 13 Mar, 2012 18:20:17 Message: 27 of 28 |
|
Thank you Heiko. That works splendidly! |
|
Subject: How to return keyboard focus to main window after callback From: tomas Date: 22 Mar, 2012 16:59:11 Message: 28 of 28 |
|
Hello, |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| figure focus | tomas | 22 Mar, 2012 13:04:14 |
| figure focus | Heiko | 29 Feb, 2012 02:49:15 |
| undocumented | Yair Altman | 14 May, 2009 12:34:10 |
| java | Yair Altman | 14 May, 2009 12:34:10 |
| keyboard focus los... | Am VR | 23 Feb, 2009 12:20:23 |
| figure focus | Stefan | 3 Feb, 2009 05:40:06 |
