Changing the cursor

Add-in Express™ Support Service
That's what is more important than anything else

Changing the cursor
How to change the cursor, or indicate status in some other way 
Des Currin




Posts: 4
Joined: 2012-10-20
I am processing an ADXIEKeyboardShortcut OnAction in an IEModule. It can sometimes take a little while (~1 second) to perform the operation. I would like to indicate the status in some way. Is there a way to change the cursor, or indicate the status in some other way? Currently I set IEApp.Visible=false, but that is too intrusive.
Posted 23 Nov, 2012 02:29:58 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Des,

What the operation do you perform in the OnAction event handler?
Posted 23 Nov, 2012 04:15:44 Top
Des Currin




Posts: 4
Joined: 2012-10-20
Hi Sergey

I take HTMLDocument.url and HTMLDocument.documentElement.outerHTML and save them to a MongoDB database. The delay is always for the first call, so there is some setup overhead.
Posted 23 Nov, 2012 04:31:56 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Des, I would advice you to perform this operation in a separate thread.
In this case, you don't need to lock UI.
Posted 23 Nov, 2012 07:14:45 Top
Des Currin




Posts: 4
Joined: 2012-10-20
Okay. But I still want to indicate that something is happening. For example, how do I get to update the status bar?
Posted 23 Nov, 2012 09:43:59 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Des,

Please look at the 'Advanced Search' example;
http://www.add-in-express.com/downloads/mapi-store-events.php
It searches the content in the background and displays the progress bar.
To update the status bar you can use the 'StatusText' property of the browser.
Posted 26 Nov, 2012 04:22:23 Top