A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Inline window?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 18th 08, 01:33 AM posted to microsoft.public.outlook.program_forms
BatKing
external usenet poster
 
Posts: 24
Default Inline window?

Hi,

I am working on a plugin which will create a inline window within outlook to
show some webservice data with embbed url within a email. the outlook object
model doesn't seem to support this. so I am doing something like this.

1. create a usercontrol panel then put a webBrowser object within it.
2. find the outlook window handle with
System.Diagnostics.Process.GetProcessesByName.
3. after create the usercontrol panel, then use win32 SetParent to set the
outlook window as the parent of the usercontrol panel.

this work. however this also means my inline window's size is limited by the
outlook window. this creates a problem if the user had sized the outlook
window very small. my inline panel will be "clipped" by the outlook main
window.

is there anyway I can create a inline window bigger than the outlook window?
my inline window's size is fixed.

Thanks.

PS, I want to have a mouse_leave event to close the inline window. and if I
register the even with the Panel, the mouse_leave event won't fire because
the panel is totally covered by the webBroswer control. anyway to handle this?
Ads
  #2  
Old October 20th 08, 02:49 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Inline window?

If the pane is a child window of the Outlook window then you are limited to
displaying the pane within the confines of the main window boundaries. It
can be larger than the space assigned to it and use scroll bars to move
around the pane, but it can't visibly be larger than the space it has.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Hi,

I am working on a plugin which will create a inline window within outlook
to
show some webservice data with embbed url within a email. the outlook
object
model doesn't seem to support this. so I am doing something like this.

1. create a usercontrol panel then put a webBrowser object within it.
2. find the outlook window handle with
System.Diagnostics.Process.GetProcessesByName.
3. after create the usercontrol panel, then use win32 SetParent to set the
outlook window as the parent of the usercontrol panel.

this work. however this also means my inline window's size is limited by
the
outlook window. this creates a problem if the user had sized the outlook
window very small. my inline panel will be "clipped" by the outlook main
window.

is there anyway I can create a inline window bigger than the outlook
window?
my inline window's size is fixed.

Thanks.

PS, I want to have a mouse_leave event to close the inline window. and if
I
register the even with the Panel, the mouse_leave event won't fire because
the panel is totally covered by the webBroswer control. anyway to handle
this?


  #3  
Old October 20th 08, 08:07 PM posted to microsoft.public.outlook.program_forms
BatKing
external usenet poster
 
Posts: 24
Default Inline window?

Thanks,

is there anyway to make outlook not the parnet window? I tried that but my
inline window doesn't display anywhere. or is that means I have to go Windows
Form or WPF? but that will make a separated window and that is not what I
want.

"Ken Slovak - [MVP - Outlook]" wrote:

If the pane is a child window of the Outlook window then you are limited to
displaying the pane within the confines of the main window boundaries. It
can be larger than the space assigned to it and use scroll bars to move
around the pane, but it can't visibly be larger than the space it has.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Hi,

I am working on a plugin which will create a inline window within outlook
to
show some webservice data with embbed url within a email. the outlook
object
model doesn't seem to support this. so I am doing something like this.

1. create a usercontrol panel then put a webBrowser object within it.
2. find the outlook window handle with
System.Diagnostics.Process.GetProcessesByName.
3. after create the usercontrol panel, then use win32 SetParent to set the
outlook window as the parent of the usercontrol panel.

this work. however this also means my inline window's size is limited by
the
outlook window. this creates a problem if the user had sized the outlook
window very small. my inline panel will be "clipped" by the outlook main
window.

is there anyway I can create a inline window bigger than the outlook
window?
my inline window's size is fixed.

Thanks.

PS, I want to have a mouse_leave event to close the inline window. and if
I
register the even with the Panel, the mouse_leave event won't fire because
the panel is totally covered by the webBroswer control. anyway to handle
this?



  #4  
Old October 20th 08, 08:40 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Inline window?

If Outlook isn't the parent window then the window you create will be a
separate window no matter how you create or show it. Even if the window you
create is set to a top level window with no parents it would still be a
separate window.

I think that if the Outlook window is resized so that only part of your pane
is showing the user would have to accept that, just as they would any other
Outlook window that doesn't show everything due to its size.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Thanks,

is there anyway to make outlook not the parnet window? I tried that but my
inline window doesn't display anywhere. or is that means I have to go
Windows
Form or WPF? but that will make a separated window and that is not what I
want.


  #5  
Old October 21st 08, 10:17 PM posted to microsoft.public.outlook.program_forms
BatKing
external usenet poster
 
Posts: 24
Default Inline window?

Thanks.

I kind of make the inline window work. but I have 2 questions.

1. I create the inline window as a UserControl instead of Form because it
look more like a inline window (ie no title bar .... ). then I set the parent
as the desktop. So my window can be bigger than the outlook app window. I use
a mouse leave event to close the window, so that kind of create a inline
window "effect". But how can I make the TaskBar button disapper the my
UserControl window appear? a UserControl class don't have a ShowInTaskbar
property to set. and FindForm() always return null.

I have tried the winApi trick as following in my UserControl window's
constructor but without success.

int style = SafeNativeMethods.GetWindowLong(this.Handle,
SafeNativeMethods.GWL_EXSTYLE);
style &= ~(int)SafeNativeMethods.exStyles.WS_EX_APPWINDOW;
style = style | (int)SafeNativeMethods.exStyles.WS_EX_TOOLWINDOW;
SafeNativeMethods.SetWindowLong(this.Handle,SafeNa tiveMethods.GWL_EXSTYLE,
style);

2. right now, I just added a WebBrowser on my UserControl Window. if my
webBrowser is covering the whole UserControl window (dock on it), then the
mouse_leave event is not fired. if I make my webBrowser control smaller and
leave some extra area around, then mouse_leave event is fired when my mouse
leaving extra area. How to make the WebBrowser component detect the
mouse_leave event?

Thanks.



"Ken Slovak - [MVP - Outlook]" wrote:

If Outlook isn't the parent window then the window you create will be a
separate window no matter how you create or show it. Even if the window you
create is set to a top level window with no parents it would still be a
separate window.

I think that if the Outlook window is resized so that only part of your pane
is showing the user would have to accept that, just as they would any other
Outlook window that doesn't show everything due to its size.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Thanks,

is there anyway to make outlook not the parnet window? I tried that but my
inline window doesn't display anywhere. or is that means I have to go
Windows
Form or WPF? but that will make a separated window and that is not what I
want.



  #6  
Old October 22nd 08, 01:59 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Inline window?

I think you answered your own question, why not use a Windows Form for your
panel?

You can prevent it from showing in the task bar and you can set it to have
no form borders, which would get rid of the title bar. FindForm() would also
then work.

For #2, assuming you switch to a form, why not just handle the form events
for the mouse and/or keyboard? Just set KeyPreview to true.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Thanks.

I kind of make the inline window work. but I have 2 questions.

1. I create the inline window as a UserControl instead of Form because it
look more like a inline window (ie no title bar .... ). then I set the
parent
as the desktop. So my window can be bigger than the outlook app window. I
use
a mouse leave event to close the window, so that kind of create a inline
window "effect". But how can I make the TaskBar button disapper the my
UserControl window appear? a UserControl class don't have a ShowInTaskbar
property to set. and FindForm() always return null.

I have tried the winApi trick as following in my UserControl window's
constructor but without success.

int style = SafeNativeMethods.GetWindowLong(this.Handle,
SafeNativeMethods.GWL_EXSTYLE);
style &= ~(int)SafeNativeMethods.exStyles.WS_EX_APPWINDOW;
style = style | (int)SafeNativeMethods.exStyles.WS_EX_TOOLWINDOW;
SafeNativeMethods.SetWindowLong(this.Handle,SafeNa tiveMethods.GWL_EXSTYLE,
style);

2. right now, I just added a WebBrowser on my UserControl Window. if my
webBrowser is covering the whole UserControl window (dock on it), then the
mouse_leave event is not fired. if I make my webBrowser control smaller
and
leave some extra area around, then mouse_leave event is fired when my
mouse
leaving extra area. How to make the WebBrowser component detect the
mouse_leave event?

Thanks.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to hide inline attachments [email protected] Add-ins for Outlook 5 March 25th 10 11:22 AM
Attching inline photos to OE6 Pete[_5_] Outlook Express 3 March 1st 08 04:13 PM
Displaying inline images Richard Bibby Outlook - General Queries 7 February 29th 08 01:39 PM
forward inline morilla_s Outlook Express 1 September 5th 06 02:58 PM
Inline Images LWeaver Outlook Express 3 January 21st 06 07:55 PM


All times are GMT +1. The time now is 07:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.