Articles 3D Audio Custom Controls General RB Graphics Hacks Mac OS X Menus Novelty Printing REALbasic 2005 REALbasic 2006 Registration Resources Reviews Serial Speech Sockets XML Video Resource Links News Current News February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 ![]() REALbasic for Dummies by Erick Tejkowski ![]() Learning REALbasic through Applications REALbasic for Macintosh REALbasic Cross-Platform Application Development
Older files are in Stuffit 5 or greater format. Newer files are ".Zip". Download StuffIt Expander |
|
Build the Interface Launch REALbasic and open Window1. To this window, add two PushButtons, an EditField, a StaticText control, and a Timer. Change the properties of each to match the following table:
Arrange the interface however you wish, but it might look something like this:
Source Code To get things rolling, you need to start the Timer. Open the Code Editor and navigate to the Action event of PushButton1 and add the following code: dim d as date Once you have the Timer started, you'll want it to update the display, so you can visually know how long you've been working. Open the Action event of Timer1 and add this code: dim t as double Finally, once your job is finished, you will click PushButton1 again to stop the Timer. When you do, you'll want to save the data for later. To do so, add this code to the Action event of PushButton2. dim t,tab as string Conclusion Select Debug-Run to test your handiwork. As usual, you can download the finished project here. See you next week! |
|||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement.
[an error occurred while processing this directive]