Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: Tool Box


Message #1 by "KennethMungwira" <KennethMungwira@Y...> on Mon, 25 Mar 2002 18:22:50
Dear Sir or Madam,

does anyone know if the ToolBox has a command for a flashing 'Dot'. I have 
a map and I would like to place a flashing dot in the county that has been 
choosen. 

thank you 
Message #2 by "Gregory Serrano" <SerranoG@m...> on Tue, 26 Mar 2002 13:42:38
Kenneth,

<< does anyone know if the ToolBox has a command for a flashing 'Dot'. I 
have a map and I would like to place a flashing dot in the county that has 
been choosen. >>

There is no flashing dot.  Instead you must simulate it.  Read up on Timer 
Events in Access help.

What you would do is use the image tool button to place dots on all the 
counties.  Then you would set each Visible Property to FALSE.  Next based 
on the choice of county, use the form's "On Timer" event to make a 
particular dot's Visibible Property change from TRUE to FALSE every second 
or so.

Set the form's Timer Interval to 1000.  Then the "On Timer" event for, say 
Dot3 (sitting on County 3), would be:

Me.Dot3.Visible = (Timer Mod 2 = 0)

and set the other dots' Visible Properties to FALSE.  What the above 
statement says that if the computer's clock timer is even, the dot appears 
(visible = TRUE).  If the clock timer is odd, the dot vanishes (visible = 
FALSE).  You can change the rate of the dot's flash by changing the timer 
interval.

Greg

  Return to Index