PC Review


Reply
Thread Tools Rate Thread

Avoiding flicker with this inspector - help!

 
 
jase
Guest
Posts: n/a
 
      6th Jun 2005
I'm using the following code:

With objContact
.FullName = objRecip.Name
.Email1Address = strAddress
.Save
.Display
ActiveInspector.WindowState = olMinimized
End With

the last two lines create a flicker when the inspector is displayed and
then minimised - how do i work around this annoying little glitch

help greatly appreciated
jason

 
Reply With Quote
 
 
 
 
Michael Bauer
Guest
Posts: n/a
 
      6th Jun 2005
Hi Jason,

why do you call the last two lines? Commenting them out will avoid the
flickering for sure.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


"jase" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm using the following code:
>
> With objContact
> .FullName = objRecip.Name
> .Email1Address = strAddress
> .Save
> .Display
> ActiveInspector.WindowState = olMinimized
> End With
>
> the last two lines create a flicker when the inspector is displayed

and
> then minimised - how do i work around this annoying little glitch
>
> help greatly appreciated
> jason
>


 
Reply With Quote
 
jase
Guest
Posts: n/a
 
      7th Jun 2005
Cheers Michael,

This code is in the ThisOutlokSession module and runs when mails are
sent: it is part of a procedure that adds addresses to my contacts if
the address does not already exist: I'd like to be able to know which
contacts have just been added so that there is a chance to edit the
details or even delete the contact: if they appear minimised then I
know something needs doing.

anymore help appreciated
Jason.


Michael Bauer wrote:
> Hi Jason,
>
> why do you call the last two lines? Commenting them out will avoid the
> flickering for sure.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
>
>
> "jase" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I'm using the following code:
> >
> > With objContact
> > .FullName = objRecip.Name
> > .Email1Address = strAddress
> > .Save
> > .Display
> > ActiveInspector.WindowState = olMinimized
> > End With
> >
> > the last two lines create a flicker when the inspector is displayed

> and
> > then minimised - how do i work around this annoying little glitch
> >
> > help greatly appreciated
> > jason
> >


 
Reply With Quote
 
Michael Bauer
Guest
Posts: n/a
 
      8th Jun 2005
Hi Jason,

IŽd display a ListBox maybe on a UserForm instead of having opened a lot
of Contacts.

For avoiding the flickering there seems to be no way. IŽve tried with a
LockDesktopUpdate but that raises an error, too, if you want to set the
WindowState before the Inspector is displaying.

You could do this: call GetInspector for a reference before the
Inspector is displaying, set the InspectorŽs Left property to a big
negative value (e.g. -20,000), call its Display method and them minimze
the window.

The tricky part is, you canŽt reset the Left property while the
WindowState is minimized. Therefor you probably need to track the
InspectorŽs Activate event.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


"jase" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Cheers Michael,
>
> This code is in the ThisOutlokSession module and runs when mails are
> sent: it is part of a procedure that adds addresses to my contacts if
> the address does not already exist: I'd like to be able to know which
> contacts have just been added so that there is a chance to edit the
> details or even delete the contact: if they appear minimised then I
> know something needs doing.
>
> anymore help appreciated
> Jason.
>
>
> Michael Bauer wrote:
> > Hi Jason,
> >
> > why do you call the last two lines? Commenting them out will avoid

the
> > flickering for sure.
> >
> > --
> > Viele Gruesse / Best regards
> > Michael Bauer - MVP Outlook
> >
> >
> > "jase" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > I'm using the following code:
> > >
> > > With objContact
> > > .FullName = objRecip.Name
> > > .Email1Address = strAddress
> > > .Save
> > > .Display
> > > ActiveInspector.WindowState = olMinimized
> > > End With
> > >
> > > the last two lines create a flicker when the inspector is

displayed
> > and
> > > then minimised - how do i work around this annoying little glitch
> > >
> > > help greatly appreciated
> > > jason
> > >

>


 
Reply With Quote
 
jase
Guest
Posts: n/a
 
      8th Jun 2005
Cheers Michael
Think I'll get together a "Most recently added contacts" userform with
a list of all recently added: with options to open/modify or delete.
Nice workaround matey
Thanks
Jason

 
Reply With Quote
 
Michael Bauer
Guest
Posts: n/a
 
      8th Jun 2005
Hm, IŽd call yours a workaround while my suggest is "normal" :-)

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


"jase" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Cheers Michael
> Think I'll get together a "Most recently added contacts" userform with
> a list of all recently added: with options to open/modify or delete.
> Nice workaround matey
> Thanks
> Jason
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inspector wrapper and Inspector close not fireing marcus.lambert@gmail.com Microsoft Outlook Program Addins 1 20th Jun 2008 01:53 PM
Help! Inspector.Close is fired before Inspector.Activate handler finishes Sergey Anchipolevsky Microsoft Outlook Program Addins 8 9th Feb 2006 09:51 AM
Inspector wrapper and Inspector::OnClose event Henry Gusakovsky Microsoft Outlook Program Addins 2 27th May 2004 05:08 PM
Minimize an Inspector over another Inspector. George Microsoft Outlook Program Addins 4 27th May 2004 08:39 AM
Inspector Behind Windows Taskbar Causes Taskbar Button Flicker Jim Microsoft Outlook Program Addins 0 18th Jul 2003 05:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:08 PM.