Google
www ResExcellence

Application Makeovers
Desktop Snapshots
iTunes Skins
Mighty Mouse Cursors
Uploads
Boot Images
Dock Poofs
Links List
Photoshop Goodies
Users Forum
Boot Panels
Download Stats
Log-In Panels
REALbasic
Clocks
GUI Software
Mac OS X Mods
Safari Stuff
Desktop Pictures
Icons
Mac OS X Themes
Splash Screens
Homepage
Download a free demo of REALbasic!
Download a free demo of REALbasic!
Recent Articles...
3D
3D Photo Gallery (Part 2)
3D Photo Gallery (Part 1)

Audio
iPod Tricks (Part 3)
iPod Tricks (Part 2)
iPod Tricks (Part 1)
Laugh Track Machine
Audio Player with Reverb
Shepard Melody
RB Phone Home
Build a Drum Machine

Custom Controls
Custom Buttons
Custom Buttons Part II
iTunes-style Listboxes
Custom Controls

General RB
Wiggle Window
JPEG in PDF
Hey! You got your Checkbox in my Listbox!
Background Applications
Listbox Auto-Find
Virtual Volumes
Time Tracker
Software Distribution (Part 4)
Software Distribution (Part 3)
Software Distribution (Part 2)
Software Distribution (Part 1)
Exceptions
Living on the Edge
Tips and Tricks
Review of REALbasic 3.0
Text Clippings Made Easy

Graphics
Image Spinner
Cropping Graphics (Part 4)
Cropping Graphics (Part 3)
Cropping Graphics (Part 2)
Cropping Graphics (Part 1)
Shimmer Graphics
Lissajous Figures
Simple Screen Capture
Vector Graphics
Kaleidoscope Images
Stegonography
Spirals!
Image Table
RB Magnifying Lens
Screen Capture
Color Picker Tutorial

Hacks
Ghost Grab
Speedy Mouse Extension
iTunes Plugins
iTunes Skinner

Internet
Display Web Image In Canvas
HTML IMG Tags
Version Tracking
Even Smarter Instant Messaging
Web Tiler
JavaScript and REALbasic
Stock Ticker (Part 2)
Stock Ticker (Part I)
AIM Mate

Mac OS X
Using Sheets in REALbasic
Build a Bundle (Part 2)
Build a Bundle (Part 1)
Dock Your Passwords
Mac OS X Debugging
REALbasic Mac OS X Icon Tutorial
Animate Your Dock
RB and the Command Line

Novelty
Guessing Game
Calendar Trivia
Tile Mixer
Zip Code Finder
Happy Valentine's Day
Merlin Simulator (Part 3)
Merlin Simulator (Part 2)
Merlin Simulator (Part 1)
Buzzword Machine
AppleSoft BASIC

Printing
Print to PDF

Registration
Registration Code Validation

Resources
Picture Extractor (Part 2)
Picture Extractor (Part 1)

Serial
Caller ID (Part 3)
Caller ID (Part 2)
Caller ID (Part 1)

Speech
Speech Recognition

Video
Big Brother Video Capture

Newest Dev Tools!

Book Alert !
REALbasic for Dummies
by Erick Tejkowski
$19.99 @ Amazon

Made with REALbasic!

Problems?
Downloads are in StuffIt 5 format (free download).
Tell me about a bad link (Thanks!).
Submission Policy

4-11-03

Image Spinner by Erick Tejkowsi

One of the most frequently asked questions among REALbasic lists is "How do I rotate an image?" This week we'll show you how to quickly and easily rotate an image in realtime. The REALbasic Group2D class simplifies matters significantly for us. By dragging a few items to your interface and adding a bit of code, you'll be spinning in no time.

Build the Interface
Launch REALbasic and add a Canvas, a PushButton, and a Slider control to the Window1 interface. Set the maximum value of the slider to 6283. Since one complete rotation around a circle is approximately 6.283 radians, we'll use the larger value of 6283 to insure fine resolution upon rotation. Next, click on the slider to select it and uncheck its Enabled property in the Properties window. Then, add an image file to your project. I snagged a photo of Michael Coyle, ResEx' own top dog. His image accompanies the source code download at the end of this tutorial. The final interface looks like this:

4-11-03_img1.jpg (18k)

Add the Code
Double-click PushButton1 and add the following code to its Action event.

  Dim px as PixmapShape
  Dim p as Picture
  
  px=New PixmapShape(coyle)
  p=New Picture(coyle.width,coyle.height,32)
  d=New Group2D
  d.append(px)
  Canvas1.Backdrop=p
  Canvas1.backdrop.Objects=d
  canvas1.Refresh 
  slider1.enabled = TRUE

Next, add this code to the Paint event of Canvas1.

  g.clearRect 0,0,me.width,me.height
  g.drawobject d,47,60

With the Window1 code editor opened, create a new property of that window, by choosing Edit-New Property. Name the property like this: d as Group2D

4-11-03_img2.jpg (18k)

Conclusion
Choose Debug-Run to see your work. By drawing an image using a Group2D object, you can a number of important image operations. The speed isn't as fast as an RGBSurface, but for many tasks its perfectly suitable. You can download the completed project for this week here. See you next week!


4-9-03

REALbasic News by Erick Tejkowsi

XFile module
Thomas Reed has posted XFile module, a module for working with long file names on HFS+ volumes.

SMTPSocket Example
Will Leshner has created an SMTPSocket Example for use with REALbasic 5. It shows you how to attach any file to an email and send it.

Zip Archives
Thomas Tempelmann has posted a set of classes to read and write Zip archives, such as those understood by ZipIt, Stuffit Expander, WinZip, PKZip, Info-Zip and many more. It is open source, yet he asks for a donation if you make use of his code.

HMProgressBar
Domain Softworx announced the release of HMProgressBar for REALbasic. HMProgressBar is a ProgressBar subclass. "HM" stands for "Higher Maximum". Instead of 65536, the maximum value of an HMProgressBar is 2 to the 1024th power, also known as the maximum value of a double in REALbasic. It also allows for fractional/double-precision values to be used as the Maximum and Value properties. HMProgressBar is free and open-source.

Whiplash - Frenetic 3D action
Lars Jensen has posted a pre-release version of his REALbasic-made game called Whiplash - Frenetic 3D action. In it, you drive a souped-up hovercraft around a large arena against a similarly equipped opponent. Cool!



Application Makeovers
Desktop Snapshots
iTunes Skins
Mighty Mouse Cursors
Uploads
Boot Images
Dock Poofs
Links List
Photoshop Goodies
Users Forum
Boot Panels
Download Stats
Log-In Panels
REALbasic
Clocks
GUI Software
Mac OS X Mods
Safari Stuff
Desktop Pictures
Icons
Mac OS X Themes
Splash Screens
Homepage

Maintained by the Staff of ResExcellence. This entire site ©1997-2003 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement.

[an error occurred while processing this directive]on the ResEx LinuxPPC Server