TAILIEUCHUNG - Programming the Be Operating System-Chapter 7: Menus

Tham khảo tài liệu 'programming the be operating system-chapter 7: menus', công nghệ thông tin, hệ điều hành phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 7 Menus In this chapter Menu Basics Working with Menus Multiple Menus Pop-up Menus Submenus Menus are the interface between the user and the program and are the primary means by which a user carries out tasks. A Be program that makes use of menus usually places a menubar along the top of the content area of each application window though it s easy enough to instead specify that a menubar appear elsewhere in a window. A menu is composed of menu items and resides in a menubar. You ll rely on the BMenuBar BMenu and BMenuItem classes to create menubar menu and menu item objects. Early in this chapter you ll see how to create objects of these types and how to interrelate them to form a functioning menubar. After these menubar basics are described the chapter moves to specific menu-related tasks such as changing a menu item s name during runtime and disabling a menu item or entire menu. To offer the user a number of related options create a single menu that allows only one item to be marked. Such a menu is said to be in radio mode and places a checkmark beside the name of the most recently selected item. If these related items all form a subcategory of a topic that is itself a menu item consider creating a submenu. A submenu is a menu item that when selected reveals still another menu. Another type of menu that typically holds numerous related options is a pop-up menu. A pop-up menu exists outside of a menubar so it can be placed anywhere in a window. You ll find all the details of how to put a menu into radio mode create a submenu and create a pop-up menu in this chapter. Menu Basics A Be application can optionally include a menubar within any of its windows as shown in Figure 7-1. In this figure a document window belonging to the 226 Menu Basics 227 StyledEdit program includes a menubar that holds four menus. As shown in the Font menu a menu can include nested menus submenus within it. Figure 7-1. An application window can have its own menubar Menus can be accessed via

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.