|
2-14-02
Happy Valentine's Day! by
Erick Tejkowski
What would Valentine's Day be without a
valentine from your friends at ResExcellence? This week we'll look at how to make
an electronic valentine with REALbasic.
Build the Interface
Launch REALbasic, open Window1, and add a Canvas and Timer control to the window.
Give the Canvas dimensions of 202 x 196. Set the Timer's Mode to a value of 2 and Period to 500.
Download this flickerFreeCanvas class and drag it into your project.
Then, change the Super property of the Canvas in Window1 to flickerFreeCanvas.
Next, create a black and white image of a heart shape. If you aren't a good artist, you can
download one here. Drag the image into your
REALbasic project. Note that the image file I am using for this example is named "heartblack".
Add the Code
Double click Window1 to open its Code Editor. Select Edit-New Property and create a new picture property, named p.
Finally, navigate to the Action event of Timer1 and add this code
dim c as color
dim r,b as integer
r = rnd*255
b = rnd*100
p=newpicture(202,196,32)
p.graphics.foreColor=rgb(r,0,b)
p.graphics.fillrect 0,0,202,196
p.Mask.Graphics.DrawPicture heartblack,0,0
Canvas1.mPicture = p
Canvas1.Redraw
Conclusion
You can download the finished product if you don't feel like recreating the project. Happy Valentine's Day and see you next week!
2-12-02
REALbasic News
by
Erick Tejkowski
MultiDB-Server
Here it is RealBasic Developers. Multi-DBServer is here! Finally, an easy to
set up database server which uses RealBasic databases. A great way to make
your RealBasic database application multi-user and server based. If thats
not good enough here's the best part : The three user licenses is FREE. Visit the site
and download it
today.
Sockets? Super!
Essence Software is proud to announce the immediate availability of
SuperSocket 2.1 for REALbasic!
SuperSocket is the premier networking toolkit for REALbasic, providing
support for active listening TCP, UDP, ICMP (Ping), AppleTalk (ADSP & DPP),
and DNS.
RTF for all!
Belle-nuit has announced a new version of their
RtfParser classes.
The RtfParser is a collection of classes to parse RTF files to use in
REALbasic applications.
The Rich Text Format is the major interchange format between word
processing programs of all major platforms. It is called richt text,
because it cannot only hold text, but also formatting information. Also,
it provides encoding for special characters and encodes them to a
7bit-textfile, so that it can be sent safely over Internet.
RBScript Regex Classes
John Balestrieri has posted a REALbasic class and some RBScript wrapper code that lets you
create and use RegEx classes within RBScript.
RB3DSpace
Spinner is a simple application to demostrate the use of REALbasic's new 3D
graphics facilities. It uses a RB3DSpace to display a spinning cluster of
particles. You can use it to
explore the use of properties like FieldofView, Yon and Hither.
|