Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Window title bar creating method and device

A title bar, form technology, applied in the direction of program control device, etc., can solve the problem that the form cannot satisfy the title bar and display of the custom form at the same time.

Active Publication Date: 2013-08-14
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method for creating a form title bar to solve the problem that the form in the existing MAC operating system cannot simultaneously satisfy the custom form title bar and display the form title in the Dock and Exposé

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Window title bar creating method and device
  • Window title bar creating method and device
  • Window title bar creating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0020] figure 1 The implementation flow of the method for creating a window title bar provided by Embodiment 1 of the present invention is shown, and the process of the method is described in detail as follows:

[0021] In step S101, add a custom view in the top view of the form;

[0022] Specifically, obtain the parent view (superView) object ViewP of the user area view (contentView), construct a view type in the Apple operating system, such as the NSView type, and construct the derived class object ViewS of the NSView type, and convert the derived class object ViewS As a subview of the parent view object ViewP, set ViewS as the bottom view of ViewP by calling the add subview interface in ViewP (setting the parameter of the addSubview:positioned:relativeTo: method positioned in the subview interface to NSWindowBelow). It should be noted that the superView of the contentView is the top-level view of the form, and the subview is a custom view.

[0023] In this embodiment, the...

Embodiment 2

[0028] Figure 4 It shows the implementation flow of the method for creating a window title bar provided by Embodiment 2 of the present invention. This embodiment adds step S403 on the basis of Embodiment 1:

[0029] In step S403, the window title bar background is drawn according to the state of the current window.

[0030] Specifically, construct a window type in the Apple operating system, such as NSWindow type, through the notification function of the NSWindow type (NSWindowDidBecomeMainNotification, triggered when the window becomes active) and NSWindowDidResignMainNotification, when the window becomes inactive Trigger event) to monitor the trigger operation of the current form state change. When the current form state is detected to be changed, the gradient color corresponding to the current form state is extracted from the pre-stored gradient color, and the NSGradient is generated according to the extracted gradient color ( The type in the Apple operating system, used ...

Embodiment 3

[0034] Figure 5 The composition structure of the device for creating a window title bar provided by the third embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.

[0035] The window title bar creation device may be a software unit, a hardware unit or a combination of software and hardware running in each application system, or it may be integrated into each application system as an independent pendant.

[0036] The device for creating a window title bar includes a view adding unit 51 and a view covering unit 52 . Among them, the specific functions of each unit are as follows:

[0037] The view adding unit 51 is used to add a custom view in the top-level view of the form; specifically, it is used to obtain the parent view object of the user area view, and construct an NSView type derived class object, and use the derived class object as the parent view The subview o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is applicable to the technical field of IOS (internet work operating system) and provides window title bar creating method and device. The method includes: adding a user-defined view in a top view of a window, and utilizing the user-defined view as a window title bar to cover a window title band. The window title bar creating method and device can meet the requirements of user definition of the window title bar in MAC (macintosh) operating system and display of window titles in Dock and Expose.

Description

technical field [0001] The invention belongs to the technical field of the IOS operating system, and in particular relates to a method and a device for creating a window title bar under the IOS operating system. Background technique [0002] The forms in the Apple MAC operating system or the ios operating system are roughly divided into two categories, forms with a title bar and forms without a title bar. The form with title bar adopts the interface style pre-defined by the system, and the interface form is difficult to change. Although a form without a title bar can be customized, the title displayed when the form is minimized to the application dock (Dock) is the title of the application rather than the title of the form; and in the form of the Apple operating system When displayed in the display tool (Exposé), its form title is displayed as empty. [0003] To sum up, the two forms in the existing MAC operating system cannot meet the requirement of being able to customiz...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 岳上郑林州肖晓陈卓
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products