Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

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