Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2006, 03:02 AM
Registered User
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Flashing text in Word

Within the Office forums, it has been suggested I put my queston to this group. In a table in Word, when text is entered or changed, I need it to flash for five minutes, then return to normal. Any suggestions please ?

 
Old June 19th, 2006, 02:58 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

For the effect you can use the "Blinking Background" special effect; that will really simplify the task.

Windows has an API that will run a function after a set amount of time. This API has an argument that is the address of the routine to run at the timeout point. That's an easy task for C, a bit harder for VB.

But fortunately, VB now has the AddressOf operator, which allows passing a function address to the Windows API.

So write a routine that searches for any text that has the special effect for a blinking background, and that sets that feature off when found. Let's say it is ClearBlink().

If this text is being added through programming, then the last line of the code could be to call that windows API with "AddressOf ClearBlink" as one of the arguments.

Maybe if you could post a narrative of what transpires I could be more specific.
 
Old June 21st, 2006, 02:34 AM
Registered User
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by BrianWren
 For the effect you can use the "Blinking Background" special effect; that will really simplify the task.

Windows has an API that will run a function after a set amount of time. This API has an argument that is the address of the routine to run at the timeout point. That's an easy task for C, a bit harder for VB.

But fortunately, VB now has the AddressOf operator, which allows passing a function address to the Windows API.

So write a routine that searches for any text that has the special effect for a blinking background, and that sets that feature off when found. Let's say it is ClearBlink().

If this text is being added through programming, then the last line of the code could be to call that windows API with "AddressOf ClearBlink" as one of the arguments.

Maybe if you could post a narrative of what transpires I could be more specific.

 
Old June 21st, 2006, 02:39 AM
Registered User
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian,
thank you for your reply, I'm aware of the text effects in Word but I fear I'm out of my depth here! I have no experiance of writing and was hoping that there might be a simple macro, thanks anyway.






Similar Threads
Thread Thread Starter Forum Replies Last Post
flashing format prakon Flash (all versions) 1 March 19th, 2007 09:19 AM
how to copy text in a word file on the clipboard donrafeal Word VBA 3 February 1st, 2007 12:32 AM
flashing alert message semooth Access 2 February 3rd, 2006 01:00 PM
flashing taskbar button jon23d Access VBA 1 July 7th, 2005 03:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.