Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Ask The Experts

Article

Issue: 1.4 (February/March 2003)
Author: Seth Willits with Thomas Reed help-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 5,465
Starting Page Number: 32
RBD Number: 1416
Resource File(s):

Download Icon 1416.sit Updated: Friday, October 17, 2003 at 12:20 PM

Related Web Link(s):

http://everydaysoftware.net/code/index.html

Known Limitations: None

Excerpt of article text...

Where can I find a good calendar class/window with code? I'm looking for a generic, show a window that contains a calendar and controls, and I want to be able to click on a date and have some code execute.

As a matter of fact, I have a calendar window very similar to this called FSCalendar which can be downloaded either from the REALbasic Developer website or from the Freak Software website.

Because FSCalendar uses standard canvases and other controls, the "look" of the window is almost completely customizable.

Fig. 1 FSCalendar

When drawing text in a canvas (for customized controls or the like) I often have a string of text that is too wide when drawn. I know applications like the Finder compress the text and make ellipsis dots (a series of three periods) appear in the middle or sometimes even at the end, but I don't know how to do this. Is there a REALbasic method that can do this?

There isn't a REALbasic method that can truncate a string, but there is a call on the Mac that makes it extremely simple. Using the TruncString declare, one can truncate a string that is up to 255 characters long by specifying the string to be truncated, the maximum width (in pixels) the string can be, and where to truncate the string (either in the middle or at the end of the string).

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com