Programming with Haiku, Lesson 17: Color Well (1)
The 17th Part of Programming with Haiku deals with the development of their own controls. Although Haiku offers everything you need for common applications so sometimes you must also be created nor own hands. This lesson shows what can be observed.
could be the object used for example in lists, it should be as small and complex things like the screen display the corresponding list object left. One should also always possible when using existing classes of the interface kits and follow his philosophy. On the best is a subclass of BControl, at least one should not use the BInvoker class for messaging.
As an exercise to implement a patch color ("Color Well") step by step is played. The result is a small program that shows a color swatch in a window, which can be by menu colored red, green or blue and displayed either square or round.
In future episodes, the Color Well class further completed in order to change colors as drag and drop or receive.
All parts of "Programming with Haiku" can be found in DarkWyrm's Library .
0 comments:
Post a Comment