Lesson 22: A First (Bigger) Project

Blog post by darkwyrm on Wed, 2011-12-28 16:58

After a long hiatus, here is the next lesson in the series. Lesson 22 begins a project which will delve deeper into what is involved in developing larger projects in Haiku. In this case, we begin working on a text editor, QuickEdit. Programming with Haiku, Lesson 22 Lesson 22 Source Code

Programming with Haiku, Lesson 21: Replicants

Blog post by darkwyrm on Wed, 2011-07-06 00:49

Here is a topic that for the longest time as a BeOS/Haiku developer, I had no idea how to do and didn’t really feel enthused on the concept of learning. Of course, now all the major platforms have desktop gadgets. Ironically, writing a replicant is really easy if you already know how to write basic Haiku GUI applications already. Find out how in this lesson. Programming with Haiku, Lesson 21

Lesson 20: Drag and Drop

Blog post by darkwyrm on Tue, 2011-05-17 11:38

In this lesson we seek to understand the part of the Interface Kit which lets us move things around in Tracker using the mouse. We will examine both ways of transferring information from one program to another, both the simple way and the more flexible (and complicated) method. Programming with Haiku, Lesson 20

Lesson 19: Deeper in Application Scripting

Blog post by darkwyrm on Wed, 2011-04-13 00:34

When we last looked at application scripting in Haiku, we merely scratched the surface. Using the hey command and the basic concepts behind the Haiku scripting model, we were able manipulate running applications to do our bidding. Now we will delve into the C++ code which can do the same thing with much greater flexibility and even implement scripting support in our own GUI controls. Programming with Haiku, Lesson 19

Lesson 18: Application Scripting

Blog post by darkwyrm on Wed, 2011-03-16 00:30

After a long hiatus, Lesson #18 is available for your reading pleasure. The topic? Scripting Haiku applications, possibly one of the least understood aspects of the operating system. Learn about hey command, its uses, and even see some of the most English-like bash commands ever. Also see how to make almost any Haiku application answer your beck and call and tinker around the operating system with an updated version of the ScriptWorld demo application, Scripting Explorer.

Lesson 17: Writing a New Control, Part I

Blog post by darkwyrm on Mon, 2011-01-31 20:39

This lesson is one of several which delves into the art of control writing for Haiku – not just a quick-and-dirty hack on an existing one, but writing a new control which rivals existing ones in quality and features. Learn how controls handle drawing themselves and write a basic color display control. Programming with Haiku, Lesson 17

Lesson 16: Fonts

Blog post by darkwyrm on Sun, 2011-01-09 13:46

Most people think of fonts as merely a means to an end, but in this lesson we will take a crash course in typography and the very basics of displaying text in Haiku. Also included is a review of the second unit, lessons 6 through 15. Programming With Haiku , Unit 2 Review Programming With Haiku, Lesson 16

Lesson 15: Making a New File Type

Blog post by darkwyrm on Sun, 2010-12-12 17:52

Depending on what kind of projects you write, you may have to create a new file type from time to time, such as a document type for the next Word-killing word processor. While not difficult, making one needs a bit of knowledge from different places in the OS and the API. In our final lesson which focuses on the Storage Kit, we will learn about MIME types, how to show the OS how to automatically identify files of your new type, and more.

Lesson 14: I Node What You Did Last Summer

Blog post by darkwyrm on Fri, 2010-11-26 13:26

A holiday treat! In this lesson we continue to work our way through the Storage Kit, learning about one of the lesser-known features of the Haiku API: node monitoring. For those new to Haiku, it notifies programs of changes to the filesystem, such as changes in a name, etc. If you’re looking to turn a good Haiku app into a fine one, this is one way to do it. Programming with Haiku, Lesson 14

Lucky Lesson 13: Queries

Blog post by darkwyrm on Thu, 2010-11-18 02:05

I’m not talking about databases, either. In this lesson, we examine one of the most distinctive features Haiku has: the query. We get a good, long look into the murky depths that are the query’s official syntax, Reverse Polish Notation, and a few other weird and wonderful tricks. Enjoy! Programming with Haiku, Lesson 13