TAILIEUCHUNG - apress foundations_of gtk plus development 2007 phần 3

Tham khảo tài liệu 'apress foundations_of gtk plus development 2007 phần 3', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | CHAPTER 4 BASIC WIDGETS 97 widget_class GtkWindow. .GtkLabel style stylename In addition to basic style directives the following list shows other top-level directives supported in RC files include Include another resource file. You can specify either an absolute or relative filename. module_path A list of paths separated by colons that will be searched for theme engines referenced by the RC file. pixmap_path A list of paths separated by colons that will be searched for theme engines referenced by the RC file. If you are planning on using RC files in an application you should make sure to provide an example file to the user. You can use the pound symbol to add comments to an RC file to give the user help in editing the content. This section only gave you a very basic introduction to RC files. For more information you should reference Appendix C. There are also a lot of resources for learning about RC files and themes with GTK found at http . Additional Buttons While the GtkButton widget allows you to create your own custom buttons GTK provides three additional button widgets that are at your disposal the color selection button file chooser button and font selection button. Each of the sections covering these three widgets will also cover other important concepts such as the GdkColor structure file filters and Pango fonts. These concepts will be used in later chapters so it is a good idea to get a grasp of them now. Color Buttons The GtkColorButton widget provides a simple way for you to allow your users to select a specific color. These colors can be specified as six-digit hexadecimal values or the RGB value. The color button itself displays the selected color in a rectangular block set as the child widget of the button. An example of this can be viewed in Figure 4-9. 98 CHAPTER 4 BASIC WIDGETS Figure 4-9. A color selection dialog A GtkColorButton Example When clicked the color button opens a dialog that allows the user to enter in the color value or .

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.