| MATLAB Central > MATLAB Newsreader > uisetcolor + activeX ->figure without focus,... |
|
|
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Andreas Greuer Date: 13 Mar, 2009 14:34:01 Message: 1 of 13 |
|
Hallo, |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Yair Altman Date: 13 Mar, 2009 14:54:01 Message: 2 of 13 |
|
> I'm using uisetcolor in combination with an activeX. |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Andreas Greuer Date: 13 Mar, 2009 16:33:01 Message: 3 of 13 |
|
> You can use figure(f) to programmatically regain figure focus, or uicontrol(h) to set the focus to a specific uicontrol handle (which you should get from the initial uicontrol invocation). I believe that the latter option (uicontrol(h)) is not documented in uicontrol's help section but it is documented in the detailed doc. |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Corbin Holland Date: 5 May, 2009 14:13:01 Message: 4 of 13 |
|
I am having the same problem. I just compiled my app and the uisetcolor call is causing havoc on the program. I think it is getting stuck in "modal" mode. After you hit "Ok" or "Cancel" the dialog disappears but it seems as if the program still thinks the "modal" dialog is still on the screen so it won't let you click on anything at all. Anyone have a solution for this? Note this works fine in matlab its just the compiled version that is messed up. |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Kevin Date: 13 Aug, 2009 21:04:17 Message: 5 of 13 |
|
I had the same problem, but callling uicontrol(h) after the uisetcolor command solved it. Many thanks for the idea. (Running R2008b under XP). |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Andreas Greuer Date: 19 Aug, 2009 08:09:02 Message: 6 of 13 |
|
This did not solve the problem. In the compiled version I still don't get back the focus. - Matlab Compiler 4.10 (R2009a) |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Andreas Greuer Date: 19 Aug, 2009 08:20:18 Message: 7 of 13 |
|
Just compiled the application with the old compiler version 4.6 (R2007a). And there it works fine. |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Corbin Holland Date: 19 Aug, 2009 13:52:03 Message: 8 of 13 |
|
"Andreas Greuer" <greuer@remove-this-gmx.de> wrote in message <h6gck2$59g$1@fred.mathworks.com>... |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: matt dash Date: 19 Aug, 2009 15:06:01 Message: 9 of 13 |
|
"Corbin Holland" <cholland.nospam@opticalsciences.com> wrote in message <h6h023$lj$1@fred.mathworks.com>... |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Thomas Benson Date: 4 Nov, 2009 09:53:01 Message: 10 of 13 |
|
"matt dash" <n.a@mail.com> wrote in message <h6h4co$leh$1@fred.mathworks.com>... |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Yair Altman Date: 4 Nov, 2009 13:29:03 Message: 11 of 13 |
|
> > Not sure if it will make a difference, but you could try using a JColorChooser instead of uisetcolor. See the demo file in my file "rgb2name" on the file exchange for an example of how it works. |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Thomas Benson Date: 4 Nov, 2009 19:46:02 Message: 12 of 13 |
|
> You can pass a Java Color object to JColorChooser upon construction. For example: |
|
Subject: uisetcolor + activeX ->figure without focus, if compiled From: Yair Altman Date: 4 Nov, 2009 22:48:02 Message: 13 of 13 |
|
"Thomas Benson" <t.benson@hrwallingford.co.uk> wrote in message <hcsllq$2r3$1@fred.mathworks.com>... |
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 |
| colorchooser ui... | Corbin Holland | 19 Aug, 2009 09:54:03 |
| uicontrol | Kevin J. Delaney | 13 Aug, 2009 17:09:04 |
| compiled | Kevin J. Delaney | 13 Aug, 2009 17:09:04 |
| modal | Kevin J. Delaney | 13 Aug, 2009 17:09:04 |
| uisetcolor | Kevin J. Delaney | 13 Aug, 2009 17:09:04 |
| undocumented | Yair Altman | 13 Mar, 2009 10:55:11 |
| focus | Andreas Greuer | 13 Mar, 2009 10:35:07 |
| modal | Andreas Greuer | 13 Mar, 2009 10:35:07 |
| compiler | Andreas Greuer | 13 Mar, 2009 10:35:07 |
| ocx | Andreas Greuer | 13 Mar, 2009 10:35:07 |
| activex | Andreas Greuer | 13 Mar, 2009 10:35:07 |
| uisetcolor | Andreas Greuer | 13 Mar, 2009 10:35:07 |
Contact us at files@mathworks.com
