The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Animating with ExtraActivity

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Animating with ExtraActivity Posted: Oct 18, 2003 10:18 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Animating with ExtraActivity
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

Thanks Travis! ExtraActivity really hit the spot. I just added a blinking cursor to the editing mode of with:Style simply by popping in one call and adding one method to with:Style's main view widget.

ExtraActivity will call your method at a Hz rate, and given that the cursor is meant to blink every half second, I set my Hz rate to be 2 hits per second.

For my cursor drawing code, I made it take the millisecond clock, modulus it by 1000, then if it's < 500, it's background colour, if it's >= 500, it's the invert of the background colour. Too easy!

Read: Animating with ExtraActivity

Topic: I haven't forgotten you Previous Topic   Next Topic Topic: Smalltalk ray tracing

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use