Programming the Be Operating System-Chapter 10: Files
... application data member. The Save file panel, on the other hand, affects the window, and is referenced by a window data member. So I want the message sent to the window object rather than the application ... under the menubar, there’s no need to resize the frame such that it fills the window, less the menubar area. The MyHelloWindow constructor next establishes the siz...
Ngày tải lên: 20/10/2013, 10:15
... class The previous section described the system’s application roster, the be_ roster glo- bal object used to access the roster, and the BRoster class that defines the type of object be_ roster is. The ... the BLooper function DispatchMessage() for the next message in the queue. When your posted message becomes the next in the queue, the looper invokes DispatchMessa...
Ngày tải lên: 17/10/2013, 19:15
... 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
Tài liệu Programming the Be Operating System-Chapter 2: BeIDE Projects docx
... 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 ... resource filenames from the project window. 6. Edit the name of the constants in the #ifndef directive in the header files and the #includes in the source files....
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 7: Menus docx
... 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 Label() and SetLabel(). If the user ... BUTTON_BEEP_MSG: beep(); break; case MENU_BEEP_1_MSG: beep(); break; default: BWindow::MessageReceived(message); } } Because a click on the Beep One button and a selec...
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