Tài liệu Programming the Be Operating System-Chapter 7: Menus docx
... holds four menus. As shown in the Font menu, a menu can include nested menus (submenus) within it. Menus can be accessed via the keyboard rather than the mouse. To make the menubar the focus of ... to determine the item’s current label before changing it to a new string. The type of label-changing shown in the above snippet is a good candidate for the use of both Labe...
Ngày tải lên: 26/01/2014, 07:20
... will be rectified in the balance of this book. Starting, in fact, with the next chapter. BeOS Programming Environment The programming tool you’ll be using to create your Be applications is the BeIDE. This ... during the execution of a program. An object can be added or deleted from the heap without regard for its placement in the heap, or for the other contents of...
Ngày tải lên: 26/01/2014, 07:20
... determined by the status of the Argv Only checkbox. While these two items appear grouped together in the Application Flags area, they aren’t related. Neither, either, or both can be checked at the same ... HelloApplication(); }; The source code file with the name of the project should hold the code for the implementation of the member functions of the application class...
Ngày tải lên: 26/01/2014, 07:20
Tài liệu Programming the Be Operating System-Chapter 3: BeOS API Overview doc
... data members in Be classes. If a Be class does define data members, they are usually defined to be private rather than public. These private data members will be used within class member functions, ... version of the MyHelloWorld project the version just described. The Alert folder also holds a version of the MyHelloWorld project. The only difference between the two project...
Ngày tải lên: 26/01/2014, 07:20
Tài liệu Programming the Be Operating System-Chapter 4: Windows, Views, and Messages doc
... altered—as they are here with the writing of the string “Quitting ” the view needs to be updated before the changes become visible onscreen. If the changes are made while the view’s window is hidden, then ... AddChild(fMyView); BFont theFont = be_ plain_font; int32 theSize = 12; SetHelloViewFont(theFont, theSize); Show(); } The call to SetHelloViewFont() results in the a...
Ngày tải lên: 26/01/2014, 07:20
Tài liệu Programming the Be Operating System-Chapter 5: Drawing ppt
... 10.0); The call to MovePenTo() moves the pen to the location 30 pixels from the left of the view and 40 pixels from the top of the view. That places the pen at the point (30.0, 40.0). The call ... of the pixels in the rectangle are purple. Instead, each is either red or blue. Because the pixels alternate between these two colors, and because pixel density is high on...
Ngày tải lên: 26/01/2014, 07:20
Tài liệu Programming the Be Operating System-Chapter 6: Controls and Messages ppt
... *buttonBeep1Name = "Beep1"; const char *buttonBeep2Name = "Beep2"; const char *buttonBeep1Label = "Beep One"; const char *buttonBeep2Label = "Beep Two"; In the ... immediately change the setting. Instead, when the user dismisses the window the checkbox resides in, the value of the checkbox can be queried and the setting of the progra...
Ngày tải lên: 26/01/2014, 07:20
Tài liệu Programming the Be Operating System-Chapter 8: Text ppt
... that the first parameter to the BMenuItem constructor, label, specifies the new menu item’s label the text the user sees in the menu. The second parameter, message, associates a message with the ... example. The arrows would not be in the window either—I’ve added them to make it clear that the coordinates of the textBounds rectangle are relative to the viewFrame rec...
Ngày tải lên: 26/01/2014, 07:20
Programming the Be Operating System-Chapter 9: Messages and Threads
... message and the target of the message don’t have to be one and the same, they can be as shown in this snippet (read the Application-Defined Messages 357 identical to the version used in the Chapter ... calls the BLooper function DispatchMessage() for the next message in the queue. When your posted message becomes the next in the queue, the looper invokes DispatchMes...
Ngày tải lên: 17/10/2013, 19:15
Programming the Be Operating System-Chapter 10: Files
... node (data). The entry can be represented by an entry_ref or a BEntry object. Currently the entry is in the form of an entry_ref. Here the entry is stored in a BEntry object. The BEntry function ... /boot/myDir/). The BEntry func- tion GetPath() is used to store the BEntry information as a BPath object. Here the BPath object path is first set to the directory, then the f...
Ngày tải lên: 20/10/2013, 10:15