[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] OLE document sizing
|
Hi Duong,
Yes, that helps. Excel now comes back to life when you click on it. The strange rendering when it's not active isn't going to work... but at least I now know that I can work around that by not deactivating the control (which is probably happening in the rcp framework somewhere).
Thanks for your patience - I'm quite new to SWT and eclipse.
Cheers,
PB
----- Original Message ----
From: Duong Nguyen <duongn@xxxxxxxxxx>
To: Eclipse Platform SWT component developers list. <platform-swt-dev@xxxxxxxxxxx>
Sent: Tuesday, March 25, 2008 12:41:03 PM
Subject: Re: [platform-swt-dev]
OLE document sizing
I ran Snippet261 and I don't see the
focus lost problem that you described. However, I've seen this happen in
some cases and it's usually because the clientSite is deactivated on focus
lost which is often necessary when there are multiple Excel tabs (excel
gets confused if you don't activate and deactivate the correct view). When
an excel sheet is deactivated, it renders itself differently (grayed out,
zoomed state; note: Word does not appear to have this odd behaviour).
Since I don't know what your code looks
like, I can only suggest that you do something like this:
clientSite1.addFocusListener(new
FocusListener() {
public
void
focusGained(FocusEvent e) {
System.out.println("client1
focus gained: " + e);
clientSite1.doVerb(OLE.OLEIVERB_INPLACEACTIVATE
);
}
public
void
focusLost(FocusEvent e) {
System.out.println("client1
focus lost: " + e);
clientSite1.deactivateInPlaceClient();
}
});
Let me know if this fixes your rendering
problem when you regain focus.
Duong
Lead Shoes <leadshoes@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
03/23/2008 04:38 PM
Please respond to
"Eclipse Platform SWT component developers list."
<platform-swt-dev@xxxxxxxxxxx> |
|
To
| "Eclipse Platform SWT component
developers list." <platform-swt-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| Re: [platform-swt-dev] OLE document
sizing |
|
Hello again,
After experimenting a little more with hosting excel in eclipse 3.4M5 on
Win XPSP2, I've run into other problems. When excel loses focus, it renders
incorrectly. Clicking on it fails to restore it.
Screenshots:
* Excel after opening another editor and then selecting the excel tab:
http://img99.imageshack.us/my.php?image=excelnofocuspd5.jpg
* Excel after reselecting the excel tab and resizing the window:
http://img255.imageshack.us/my.php?image=excelafterresizetf2.jpg
I know excel has quirks but this all works in MFC, so I think the problem
is either in SWT or in my use of it. Any ideas?
Thanks,
PB
----- Original Message ----
From: Lead Shoes <leadshoes@xxxxxxxxx>
To: Eclipse Platform SWT component developers list. <platform-swt-dev@xxxxxxxxxxx>
Sent: Monday, March 10, 2008 9:40:30 PM
Subject: Re: [platform-swt-dev] OLE document sizing
That did it. Thanks for pointing me in the
right direction!
PB
----- Original Message ----
From: Carolyn MacLeod <Carolyn_MacLeod@xxxxxxxxxx>
To: Eclipse Platform SWT component developers list. <platform-swt-dev@xxxxxxxxxxx>
Sent: Monday, March 10, 2008 8:38:45 PM
Subject: Re: [platform-swt-dev] OLE document sizing
FYI, Snippet216 works fine for me, i.e. cells are their natural sizes.
I am also running Excel 2007 (slightly different version: 12.0.6214.1000
SP1 MSO 12.0.6213.1000)
I am running on Vista (Home Premium).
But I am running a *much* newer version of Eclipse (I20080207-1530).
Can you upgrade your Eclipse version to 3.4 M5 and try again?
Here's the download page:
http://download.eclipse.org/eclipse/downloads/drops/S-3.4M5-200802071530/index.php
Hope this helps,
Carolyn
Re: [platform-swt-dev] OLE document sizing
Lead Shoes
to:
Eclipse Platform SWT component developers list.
03/10/2008 10:53 PM
Sent by:
platform-swt-dev-bounces@xxxxxxxxxxx
Please respond to "Eclipse Platform SWT component developers list."
<platform-swt-dev@xxxxxxxxxxx>
Hi Duong,
Thanks for your help. Snippet261 exhibits the same problem. I don't know
if that's good or bad ;)
Windows XP SP2
Excel 2007 (12.0.6024.5000) MSO (12.0.6017.5000)
EasyEclipse Plugin Warrior: Version: 1.2.1
Based on Eclipse build id: M20060921-0945 (3.2, I believe)
Thanks,
PB
----- Original Message ----
From: Duong Nguyen <duongn@xxxxxxxxxx>
To: Eclipse Platform SWT component developers list.
<platform-swt-dev@xxxxxxxxxxx>
Cc: platform-swt-dev@xxxxxxxxxxx;
platform-swt-dev-bounces@xxxxxxxxxxx
Sent: Monday, March 10, 2008 7:56:18 AM
Subject: Re: [platform-swt-dev] OLE document sizing
I don't see this problem when I run Snippet261 on my machine. Do you see
this problem when you run Snippet261? Can you provide me with the
following information about your machine?
- version of Windows
- version of Excell
- version of Eclipse
Thanks,
Duong
Lead Shoes <leadshoes@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
03/09/2008 02:07 PM
Please respond to
"Eclipse Platform SWT component developers list."
<platform-swt-dev@xxxxxxxxxxx>
To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] OLE document sizing
Hello,
I'm trying to host excel in an RCP app. Thanks to some eclipse corner
articles and mailing list postings I've been able to get excel to open
within a Composite. However, the spreadsheet area scales when the app is
resized. I want the normal excel behavior - cell size remains the same
regardless of the window size. A picture's worth a 1000 words:
http://img169.imageshack.us/my.php?image=excelinrcply1.png
The cells are not supposed to be so large and the scrollbars are missing.
I notice that Word has the same behavior. How do I fix that?
Thanks!
PB
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it
now._______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
-----Inline Attachment Follows-----
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it
now._______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Be a better friend, newshound, and know-it-all
with Yahoo! Mobile. Try
it now.
-----Inline Attachment Follows-----
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Be a better friend, newshound, and know-it-all with Yahoo!
Mobile. Try
it now._______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.
Try it now.