CN113126855B - Client interaction method, device, electronic equipment and storage medium - Google Patents

Client interaction method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113126855B
CN113126855B CN202110528829.9A CN202110528829A CN113126855B CN 113126855 B CN113126855 B CN 113126855B CN 202110528829 A CN202110528829 A CN 202110528829A CN 113126855 B CN113126855 B CN 113126855B
Authority
CN
China
Prior art keywords
window
control
target
proxy
interaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110528829.9A
Other languages
Chinese (zh)
Other versions
CN113126855A (en
Inventor
徐世炎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202110528829.9A priority Critical patent/CN113126855B/en
Publication of CN113126855A publication Critical patent/CN113126855A/en
Application granted granted Critical
Publication of CN113126855B publication Critical patent/CN113126855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of computers, and provides a client interaction method, a client interaction device, electronic equipment and a storage medium. Obtaining a target position of the interactive operation in a first window of the client when the interactive operation is executed in the first window; when the target position is in the non-transparent area of the second window, obtaining a target agent control; then, according to the target agent control and a preset binding relationship, obtaining a target service control; and finally, responding to the interactive operation according to the target business control. Therefore, the display effect is improved, and the user enjoys better interaction experience.

Description

Client interaction method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a client interaction method, a device, an electronic apparatus, and a storage medium.
Background
WPF (Windows Presentation Foundation, WPF) is a Windows-based user interface development framework, applied to an interface of a client, and capable of realizing various interaction functions with a user.
In the prior art, based on the WPF development framework, in order to meet the beautifying requirement of the interface, the interface is usually displayed by adopting a mode of setting attribute values, but the interface performance is poor, and the conditions of frame loss, blocking and excessive memory occupation often occur.
Disclosure of Invention
In view of the above, the present invention aims to provide a client interaction method, a device, an electronic apparatus and a storage medium.
In order to achieve the above object, the technical scheme adopted by the embodiment of the invention is as follows:
in a first aspect, the present invention provides a client interaction method, applied to an electronic device, where the electronic device includes a client, the client includes a first window and a second window, and the first window includes a service control; the second window includes a proxy control; the business control and the proxy control have a preset binding relationship, and the method comprises the following steps:
when the interactive operation is executed on the first window, acquiring a target position of the interactive operation on the first window; the first window is suspended on the second window;
when the target position is in the non-transparent area of the second window, acquiring a target agent control; the target agent control belongs to the agent control; the target agent control is in a non-transparent area of the second window;
determining a target business control bound with the target agent control according to the preset binding relation; the target business control has an interaction function;
and responding to the interactive operation according to the target business control.
In an alternative embodiment, the second window has a second layout manager, and the step of obtaining the target agent control when the target position is in the non-transparent area of the second window includes:
and traversing the proxy control through the second layout manager when the target position is in the non-transparent area of the second window, and taking the proxy control corresponding to the target position as the target proxy control.
In an alternative embodiment, the step of responding to the interaction according to the target service control includes:
obtaining an execution result according to the interactive function of the target business control;
and the second layout manager responds to the interactive operation according to the execution result.
In an alternative embodiment, the method further comprises:
when the window attribute of the second window changes, the window attribute of the first window is consistent with the window attribute of the second window.
In an alternative embodiment, the first window has a first layout manager, and the method further comprises:
when the graphic attribute of the first proxy control is changed, the graphic attribute of the first service control is kept consistent with the graphic attribute of the first proxy control through the first layout manager and the second layout manager; the first business control and the first proxy control have the preset binding relation; the first proxy control is any one proxy control.
In an alternative embodiment, before the step of obtaining the target position of the interaction operation in the first window when the interaction operation is performed in the first window, the method further includes:
creating the second window;
creating the first window according to the second window;
configuring the business control in the first window;
and configuring a proxy control bound with the service control in the second window according to the preset binding relation.
In a second aspect, the present invention provides a client interaction device, applied to an electronic device, where the electronic device includes a client, the client includes a first window and a second window, and the first window includes a service control; the second window includes a proxy control; the service control and the proxy control have a preset binding relationship, and the device comprises:
the acquisition module is used for acquiring a target position of the interaction operation in the first window when the interaction operation is executed in the first window; the first window is suspended on the second window;
the processing module is used for acquiring a target agent control when the target position is in the non-transparent area of the second window; the target agent control belongs to the agent control; the target agent control is in a non-transparent area of the second window;
determining a target business control bound with the target agent control according to the preset binding relation; the target business control has an interaction function;
and responding to the interactive operation according to the target business control.
In an alternative embodiment, the apparatus further comprises:
a setting module, configured to create the second window; creating the first window according to the second window; configuring the business control in the first window; and configuring a proxy control bound with the service control in the second window according to the preset binding relation.
In a third aspect, the invention provides an electronic device comprising a processor and a memory, the memory storing a computer program, the processor implementing the method of any of the preceding embodiments when executing the computer program.
In a fourth aspect, the present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements a method according to any of the preceding embodiments.
The embodiment of the invention provides a client interaction method, a device, electronic equipment and a storage medium. Obtaining a target position of the interactive operation in a first window of the client when the interactive operation is executed in the first window; when the target position is in the non-transparent area of the second window, obtaining a target agent control; then, according to the target agent control and a preset binding relationship, obtaining a target service control; and finally, responding to the interactive operation according to the target business control. Compared with the prior art, the invention adopts only one window mode, the first window has good performance, and the second window is used for realizing interaction, so that not only can the service requirement be met, but also the performance of the window can be improved, the display effect can be improved, and the user can enjoy better interaction experience.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a block schematic diagram of an electronic device according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an example of a client interaction method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a client interaction method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a client interaction method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a further exemplary method of client interaction provided by an embodiment of the present invention;
fig. 6 is a schematic flow chart of a client interaction method according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a further exemplary method of client interaction provided by an embodiment of the present invention;
FIG. 8 is a diagram illustrating a further exemplary method of client interaction provided by an embodiment of the present invention;
FIG. 9 is a diagram illustrating a further exemplary method of client interaction provided by an embodiment of the present invention;
FIG. 10 is a diagram illustrating a further exemplary method of client interaction provided by an embodiment of the present invention;
fig. 11 is a functional block diagram of a client interaction device according to an embodiment of the present invention.
Icon: 100-an electronic device; 110-bus; a 120-processor; 130-memory; a 150-I/O module; 170-a communication interface; 300-client interaction means; 310-an acquisition module; 330 a processing module; 350-set up module.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
It is noted that relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 is a block diagram of an electronic device 100 according to an embodiment of the invention. Electronic device 100 includes bus 110, processor 120, memory 130, I/O module 150, and communication interface 170.
Bus 110 may be a circuit that interconnects the elements and communicates, such as control messages, between the elements.
The processor 120 may receive commands from other elements described above (e.g., the memory 130, the I/O module 150, the communication interface 170, etc.) via the bus 110, may interpret the received commands, and may perform calculations or data processing based on the interpreted commands.
The processor 120 may be an integrated circuit chip having signal processing capabilities. The processor 120 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Memory 130 may store commands or data received from processor 120 or other elements (e.g., I/O module 150, communication interface 170, etc.) or commands or data generated by processor 120 or other elements.
The Memory 130 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The I/O module 150 may receive commands or data input from a user via input-output means (e.g., sensors, keyboard, touch screen, etc.), and may transmit the received commands or data to the processor 120 or the memory 130 through the bus 110. And also for displaying various information (e.g., multimedia data, text data) received, stored, processed from the above elements, video, images, data, etc. may be displayed to the user.
The communication interface 170 may be used for communication of signaling or data with other node devices.
It is to be understood that the structure shown in fig. 1 is merely a schematic diagram of the structure of the electronic device 100, and that the electronic device 100 may further include more or fewer components than those shown in fig. 1, or have a different configuration than that shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The electronic device 100 may be a personal computer, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), or a netbook. The embodiment of the present invention is not limited in any way.
The client interaction method provided by the embodiment of the invention is applied to the electronic equipment 100 shown in fig. 1, wherein a client is installed in the electronic equipment 100, and the client interaction method can be realized through the client installed in the electronic equipment 100. It is understood that the client is a PC version of an application.
In the prior art, WPF is generally used to design a window of a client, in order to meet the beautifying requirement of the window, an allowstranpany attribute is generally used, and an allowstranpany attribute value is set to "True" to realize various irregular windows so as to meet the interaction with a user.
The window can be used for realizing different services, in the live broadcast field, animation is usually displayed on the window or video is played, and the applicant researches find that the use of the allowsTransparty attribute can cause the performance of the window to be poor, such as the situation of occupying excessive memory, causing cartoon video blocking and the like, so that the user experience is reduced.
The applicant has found that WPF also provides another attribute, namely a WindowChrome attribute, with which window performance can be improved, as shown in table 1 below.
TABLE 1
Figure BDA0003066313780000071
In table 1, the frame rate term indicates the number of frames transmitted per second, the dirty region refresh rate term indicates the update rate of the local region, and the video memory occupancy term indicates the size of the occupied video card memory. The higher the frame rate is, the higher the dirty region refresh rate is, the smaller the occupied video memory is, the better the window performance is, and the motion display of the animation or the fluency of video playing is better, namely the display effect is better.
As can be seen from table 1, using the WindowChrome attribute may allow better performance for the window than using the allowstranparent attribute. However, using the WindowChrome attribute may not meet the interaction requirements in some business scenarios. This is because the window using the WindowChrome attribute has only full penetration or no penetration performance.
To facilitate an understanding of penetration performance, an exemplary diagram is presented in accordance with an embodiment of the present invention. As shown in fig. 2, the window comprises a window a and a window b, the region c is the superposition region of the window a and the window b, and the window a is on the surface of the window b.
When the window a has penetrability, in the area c of the window a, when an interactive operation such as a clicking operation is performed, the interactive operation passes through the window a to reach the window b below the window a, and the window a does not respond to the point interactive operation, which means that the window a can be penetrated.
When the window a does not have the penetration performance, in the area c of the window a, when an interactive operation such as a clicking operation is performed, the interactive operation does not pass through the window a, cannot reach the window b, and indicates that the window a cannot penetrate.
For a window using the WindowChrome attribute, the representation is fully penetrated, and the interaction is performed in any area of the window, the interaction passes through the window, and the window does not respond to the interaction. Not penetrating through the representation at all, the interaction is performed in any area of the window, none of which passes through the window, and the interaction needs to be responded to by the window. Since the window using the WindowChrome attribute has only full penetration and full non-penetration properties, the penetration properties of any region thereof are the same, i.e., either all regions may be penetrated or none.
In some service scenarios, the interaction requirement that the window penetrates in a transparent area and does not penetrate in a non-transparent area needs to be satisfied. The use of the WindowChrome attribute is not satisfied. And may be satisfied using the allowstranparent attribute.
The applicant has found, through the above analysis, that the window of the client can be set based on the two modes, so as to solve the problems in the prior art. The embodiment of the present invention provides a possible implementation manner of setting such a client window, and the steps of setting will be described in detail below, referring to fig. 3.
Step S212, creating a second window;
alternatively, the second window may be created by WPF, set using "allowstranparent=tube", and the attributes of the window size, window position, window status, and the like of the second window are configured.
Step S214, a first window is created according to the second window;
alternatively, the first window may be created according to the second window that has been created, the first window may be set using the WindowChrome attribute, while the window size, window position, window status, and other attributes of the first window are set to the same attribute as the second window, and the setting of the first window is fully penetrated.
Step S216, configuring a service control in a first window;
step S218, configuring a proxy control bound with the service control in a second window according to a preset binding relation;
optionally, the business control and the agent control may be configured using a layout manager, which may be after the first window and the second window are created; creating a first layout manager for managing business controls of the first window; a second layout manager is created for managing proxy controls for the second window.
Optionally, the service control may be configured in the first window through the first layout manager, the proxy control may be configured in the second window through the second layout manager, and the transparency of the proxy control is set to 0.1, where the area where the proxy control is located is a non-transparent area of the second window, and other areas are transparent areas of the second window.
It should be noted that, each service control and each proxy control have a preset binding relationship, when the second layout manager configures the proxy control in the second window, the proxy control needs to be bound with the corresponding service control, so that the proxy control can call the interactive processing function of the service control.
Based on the steps, a first window is created, an allowsTranspany attribute is adopted, a second window is created, a WindowChrome attribute is adopted, the two windows are applied to the window of the client, the first window can be used for displaying animation or playing video, the second window can be used for realizing interaction with a user, further performance of the window of the client can be improved, and interaction experience of the user can be improved.
The client interaction method provided by the embodiment of the invention is introduced based on the client window. Fig. 4 is a schematic flow chart of a client interaction method according to an embodiment of the present invention.
Step S202, when an interactive operation is executed in a first window, acquiring a target position of the interactive operation in the first window;
the first window and the second window are windows in the same client, the two windows are completely overlapped, and the first window is on the surface of the second window. The first window is a window using the attribute of WindowChrome, and the penetration performance of the first window is complete penetration; the second window is a window using the allowsTransparameter attribute.
Alternatively, when the user performs the interactive operation on the first window through the mouse, the position of the interactive operation on the first window may be obtained, and this position is the target position.
It should be noted that, the interactive operation may be an operation realized through an external device or a touch screen; the interaction operation may be clicking, sliding, etc., which is not limited in the embodiments of the present invention.
Step S204, when the target position is in the non-transparent area of the second window, acquiring a target agent control;
the second window comprises a non-transparent area and a transparent area, and the second window comprises a proxy control which is arranged in the non-transparent area of the second window.
Optionally, the first window is completely transparent, so that the interaction will pass through the first window to reach the second window below the first window, and the first window does not respond to the interaction.
It will be appreciated that the second window supports penetration in the transparent region and non-transparent region, and that depending on the location of the interaction, it may be determined whether the target location is in the transparent or non-transparent region of the second window.
When the target position is in the non-transparent area of the second window, the interactive operation cannot pass through the second window, and the second window needs to process the interactive operation. The proxy control is in the non-transparent area of the second window, and a proxy control can be obtained, and the proxy control is the target proxy control.
Step S206, determining a target business control bound with the target agent control according to a preset binding relation;
the first window comprises a business control, and the business control refers to a control with an interaction function.
The preset binding relationship indicates a preset binding relationship between each business control and each control.
Optionally, according to the preset binding relation and the target agent control, a service control with a binding relation with the target agent control can be determined, and the control is the target service control.
Step S208, responding to the interactive operation according to the target business control;
optionally, the target business control has an interactive function, and the interaction operation can be responded according to the interactive function.
It can be seen that, based on the above design, by obtaining the target position of the interactive operation in the first window when the interactive operation is performed in the first window of the client; when the target position is in the non-transparent area of the second window, obtaining a target agent control; then, according to the target agent control and a preset binding relationship, obtaining a target service control; and finally, responding to the interactive operation according to the target business control. Compared with the prior art, the invention adopts two windows in a mode of only one window, the first window has good performance, and the second window is used for realizing interaction, so that not only can the service requirement be met, but also the performance of the window can be improved, the display effect can be improved, and the user can enjoy better interaction experience.
To facilitate an understanding of a more detailed description of a client-side interaction method provided by an embodiment of the present invention, an exemplary diagram is provided, such as that of fig. 5, which is an exemplary diagram of a client-side window for viewing live. It should be noted that the window includes two windows, namely the first window and the second window, and the two windows completely coincide, and the first window is suspended on the surface of the second window.
The window comprises a video selection area, a video information area and a message announcement area, wherein the video information area comprises a main broadcasting information area, a video playing area and a gift recharging area.
The video selection area is used for displaying classification information of videos, and when the interactive operation of a user in the area is acquired, videos played by the video playing sub-area can be replaced.
The video information area is used for displaying relevant information of the video. The information subarea of the anchor can display anchor personal information such as head portraits, grades and the like, and a subscription control can be added or deleted from the personal information of the user when the interaction operation of the user in the subscription control is acquired.
The video playing subarea is used for playing live videos, and optionally, the subarea further comprises a playing control, a barrage control, a sharing control, a reporting control and the like.
The gift recharging subarea comprises a gift control, a recharging control and the like, and when the interactive operation of the user in the gift control is obtained, the animation of the virtual gift can be displayed in the gift display subarea of the message advertising area.
The message announcement area is used for displaying information notices between the anchor, such as chat information sent by audience, notice notices between live broadcasting rooms, and the like. It will be appreciated that when the animation of the virtual gift is not presented, the gift presentation sub-area is used to present information notifications.
The following describes a possible implementation of the client interaction method according to the embodiment of the present invention based on the client window shown in fig. 5. Referring to fig. 6 and fig. 7 in combination, fig. 7 is a diagram illustrating an example of an embodiment of the present invention.
Referring to fig. 6, in step S202, when an interactive operation is performed on a first window, a target position of the interactive operation on the first window is obtained.
As shown in fig. 7 (c 1), the video play sub-area displays a barrage icon, where the barrage icon content may be text information sent by the user, and when the user clicks the barrage icon through the mouse, the user obtains that the clicking operation is at the position of the first window, that is, the target position, and because the first window is completely penetrated, the clicking operation penetrates through the first window.
Step S204, traversing the proxy control through the second layout manager when the target position is in the non-transparent area of the second window, and taking the proxy control corresponding to the target position as a target proxy control;
optionally, whether the target position is in the non-transparent area of the second window is judged, when the target position is in the non-transparent area of the second window, clicking operation does not penetrate through the second window, the second window is distributed to the second layout manager through routing, the second layout manager conducts message routing, traversal is conducted on the proxy control, and the proxy control intersected with the target position is determined, so that the target proxy control, namely the barrage proxy control, is obtained.
Step S206, determining a target business control bound with the target agent control according to a preset binding relation;
optionally, the barrage service control bound with the barrage proxy control can be determined according to a preset binding relationship, and an interactive processing function of the barrage service control is called.
Step S208-1, obtaining an execution result according to the interactive function of the target business control;
step S208-3, the second layout manager responds to the interactive operation according to the execution result;
for example, the interactive function of the barrage service control is to determine whether there is a barrage at the current location. If yes, processing and displaying a report information column; if not, the processing is not performed.
Optionally, when the bullet screen service control determines that the bullet screen exists at the current position, the execution result is True, which indicates that processing is required, and the second layout manager displays a report information field on the window according to the execution result, as shown in (c 2) in fig. 7.
Optionally, when the bullet screen service control determines that the bullet screen does not exist in the current position, the execution result is False, which indicates that no processing is needed, and after the second layout manager obtains the execution result, the second layout manager does not respond to the clicking operation.
As shown in fig. 8, yet another exemplary diagram is provided by an embodiment of the present invention. As shown in (d 1) of fig. 8, the gift icon is included in the gift recharging area sub-area, and when the user clicks the gift icon through the mouse, the position of the clicking operation on the first window, that is, the target position is acquired.
Through the same steps as in the above embodiment, the gift service control bound with the gift agent control is obtained. The function of the gift service control is to determine whether to display the gift animation. The gift service control is processed according to the judgment, and the obtained execution result is processed; the second layout manager displays the gift animation in the gift display sub-area according to the execution result, as shown in (d 2) of fig. 8.
It can be understood that the interactive function of the service control can be designed according to the service requirement, and the embodiment of the invention is not limited. Optionally, when the execution result is not processed according to the interactive function of the service control, the second layout manager may continue to route the next service control according to the execution result, and respond to the interactive operation according to the execution result of the next service control.
It can be appreciated that in order to keep the interaction consistent with the actually acquired agent control and service control, inconsistent interaction and response functions are avoided. Furthermore, embodiments of the present invention provide one possible implementation.
And a window binding event of the first window and the second window can be created, and when the window attribute of the second window changes, the window binding event is triggered, so that the window attribute of the first window is consistent with the window attribute of the second window. Window attributes include window size, window position, and window status.
An example diagram is given in fig. 9 taking the window state as an example. When a user clicks the minimized icon through a mouse, detecting interactive operation on the minimized control; then modifying the window state of the second window into a minimized state, changing the window attribute of the second window, and triggering a window binding event; and setting the window state of the first window to be a minimized state according to the window binding event, so that the window attribute of the first window is consistent with that of the second window.
It will be appreciated that the business controls have interactive functionality and that in order to keep the interactive operations consistent with the responsive functionality, it is also necessary to keep the business controls and proxy controls in a binding relationship consistent. Furthermore, embodiments of the present invention provide one possible implementation.
The second window has a second layout manager for managing the agent controls, including managing graphical attributes of the agent controls. The first window has a first layout manager for managing the business controls, including managing graphical properties of the business controls. The graphic attributes of the control include the size of the control, the position of the control, the hierarchy of the control, the relationship between the control and the window, and the like.
A binding event of the first layout manager with the second layout manager may be created. When the graphic attribute of the proxy control changes, triggering the binding event, and enabling the graphic attribute of the business control bound with the proxy control to also change through the first manager to be consistent with the graphic attribute of the proxy control.
An exemplary diagram of a hierarchy of controls is given in fig. 10. It is understood that the hierarchy of controls represents the order of response of the controls. The hierarchy of the control may be changed by setting a Ztherebetween value, which is a smaller preferred response.
As shown in (e 1) in fig. 10, the video playing sub-area performs video playing, the ZOrder value of the playing proxy control is 2, the ZOrder value of the playing service control bound with the playing proxy control is also 2, and the video playing sub-area does not display the playing icon corresponding to the playing service control.
When an interactive operation such as a sliding operation is detected in the video playing sub-area, the Zcordir value of the playing proxy control is changed to 1, the hierarchy of the playing proxy control is changed, and then a binding event is triggered; and setting the ZORder value of the play service control to 1 through the first layout manager according to the trigger binding event, so that the hierarchy of the play proxy control is kept consistent. A play icon is displayed in the video play sub-area as shown in (e 2) of fig. 10.
In order to perform the corresponding steps in the foregoing embodiments and the various possible manners, an implementation manner of the client interaction device is given below, please refer to fig. 11, and fig. 11 is a functional block diagram of the client interaction device 300 provided in the present application. It should be noted that, the basic principle and the technical effects of the client interaction device 300 provided in the present application are the same as those of the above embodiment, and for brevity, the details of the description of the embodiment are not mentioned in the section, and the corresponding content of the above embodiment may be referred to again. The client interaction device 300 includes: an acquisition module 310 and a processing module 330.
An obtaining module 310, configured to obtain, when performing an interactive operation on the first window, a target position of the interactive operation on the first window; the first window is suspended over the second window.
A processing module 330, configured to obtain a target agent control when the target position is in the non-transparent area of the second window; the target agent control belongs to the agent control; the target agent control is in a non-transparent region of the second window.
The client interaction device 300 further comprises a setting module 350 for creating a second window; creating a first window according to the second window; configuring a business control in a first window; and configuring a proxy control bound with the service control in the second window according to the preset binding relation.
Optionally, the processing module 330 is further configured to traverse, by the second layout manager, the proxy control when the target position is in the non-transparent area of the second window, and take the proxy control corresponding to the target position as the target proxy control.
Optionally, the processing module 330 is further configured to obtain an execution result according to the interactive function of the target service control; the second layout manager responds to the interactive operation according to the execution result.
Optionally, the processing module 330 is further configured to maintain the window attribute of the first window consistent with the window attribute of the second window when the window attribute of the second window changes.
Optionally, the processing module 330 is further configured to, when the graphic attribute of the first proxy control changes, make the graphic attribute of the first business control consistent with the graphic attribute of the first proxy control through the first layout manager and the second layout manager; the first business control and the first proxy control have a preset binding relationship; the first proxy control is any proxy control.
The invention also provides an electronic device, which comprises a processor 120 and a memory 130, wherein the memory 130 stores a computer program, and when the processor executes the computer program, the client interaction method disclosed in the above embodiment is realized.
The embodiment of the present invention further provides a storage medium, on which a computer program is stored, which when executed by the processor 120 implements the client interaction method disclosed in the embodiment of the present invention.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present invention may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. The client interaction method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a client, the client comprises a first window and a second window, and the first window comprises a business control; the second window includes a proxy control; the business control and the proxy control have a preset binding relationship, and the method comprises the following steps:
when the interactive operation is executed on the first window, acquiring a target position of the interactive operation on the first window; the first window is suspended on the second window; the first window is used for displaying animation or playing video, and the second window is used for realizing interaction with a user; the penetration performance of the first window is complete penetration;
when the target position is in the non-transparent area of the second window, acquiring a target agent control; the target agent control belongs to the agent control; the target agent control is in a non-transparent area of the second window;
determining a target business control bound with the target agent control according to the preset binding relation; the target business control has an interaction function;
and responding to the interactive operation according to the target business control.
2. The method of claim 1, wherein the second window has a second layout manager, and wherein the step of obtaining a target agent control when the target location is in a non-transparent region of the second window comprises:
and traversing the proxy control through the second layout manager when the target position is in the non-transparent area of the second window, and taking the proxy control corresponding to the target position as the target proxy control.
3. The method of claim 2, wherein the step of responding to the interactive operation according to the target business control comprises:
obtaining an execution result according to the interactive function of the target business control;
and the second layout manager responds to the interactive operation according to the execution result.
4. The method according to claim 1, wherein the method further comprises:
when the window attribute of the second window changes, the window attribute of the first window is consistent with the window attribute of the second window.
5. The method of claim 2, wherein the first window has a first layout manager, the method further comprising:
when the graphic attribute of the first proxy control is changed, the graphic attribute of the first service control is kept consistent with the graphic attribute of the first proxy control through the first layout manager and the second layout manager; the first business control and the first proxy control have the preset binding relation; the first proxy control is any one proxy control.
6. The method of claim 1, wherein prior to the step of obtaining the target location of the interaction at the first window when the interaction is performed at the first window, the method further comprises:
creating the second window;
creating the first window according to the second window;
configuring the business control in the first window;
and configuring a proxy control bound with the service control in the second window according to the preset binding relation.
7. The client interaction device is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a client, the client comprises a first window and a second window, and the first window comprises a business control; the second window includes a proxy control; the service control and the proxy control have a preset binding relationship, and the device comprises:
the acquisition module is used for acquiring a target position of the interaction operation in the first window when the interaction operation is executed in the first window; the first window is suspended on the second window; the first window is used for displaying animation or playing video, and the second window is used for realizing interaction with a user; the penetration performance of the first window is complete penetration; the processing module is used for acquiring a target agent control when the target position is in the non-transparent area of the second window; the target agent control belongs to the agent control; the target agent control is in a non-transparent area of the second window;
determining a target business control bound with the target agent control according to the preset binding relation; the target business control has an interaction function;
and responding to the interactive operation according to the target business control.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a setting module, configured to create the second window; creating the first window according to the second window; configuring the business control in the first window; and configuring a proxy control bound with the service control in the second window according to the preset binding relation.
9. An electronic device comprising a processor and a memory, the memory storing a computer program, the processor implementing the method of any one of claims 1 to 6 when executing the computer program.
10. A storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1 to 6.
CN202110528829.9A 2021-05-14 2021-05-14 Client interaction method, device, electronic equipment and storage medium Active CN113126855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110528829.9A CN113126855B (en) 2021-05-14 2021-05-14 Client interaction method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110528829.9A CN113126855B (en) 2021-05-14 2021-05-14 Client interaction method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113126855A CN113126855A (en) 2021-07-16
CN113126855B true CN113126855B (en) 2023-05-12

Family

ID=76782199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110528829.9A Active CN113126855B (en) 2021-05-14 2021-05-14 Client interaction method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113126855B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353686A (en) * 2020-01-17 2020-06-30 北京优联信驰信息科技有限公司 Micro-task control method, computer-readable storage medium, computer program, and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8997017B2 (en) * 2011-10-21 2015-03-31 International Business Machines Corporation Controlling interactions via overlaid windows
CN107025100A (en) * 2016-02-01 2017-08-08 阿里巴巴集团控股有限公司 Play method, interface rendering intent and device, the equipment of multi-medium data
CN106445278A (en) * 2016-08-31 2017-02-22 冠捷显示科技(厦门)有限公司 Control method of transparent suspension window
CN107423050A (en) * 2017-04-28 2017-12-01 广州酷狗计算机科技有限公司 A kind of method and apparatus for penetrating operation
CN111240678B (en) * 2020-01-13 2023-05-05 网易(杭州)网络有限公司 Pop-up window setting method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353686A (en) * 2020-01-17 2020-06-30 北京优联信驰信息科技有限公司 Micro-task control method, computer-readable storage medium, computer program, and electronic device

Also Published As

Publication number Publication date
CN113126855A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US10324619B2 (en) Touch-based gesture recognition and application navigation
US10812429B2 (en) Systems and methods for message communication
US10911392B1 (en) Coalesced notifications for social groups
JP2019521547A (en) System and method for presenting content
US9600158B2 (en) Systems and methods for aggregating information and providing access to multiple web services through an interactive user interface
US8645849B2 (en) Method and apparatus for providing portioned web pages in a graphical user interface
JP4933608B2 (en) Content display and navigation interface
US10524010B2 (en) Social interaction user interface for videos
JP6921842B2 (en) Systems and methods for presenting content
WO2011079793A1 (en) Method and system for displaying page element in web page
US10701024B2 (en) Blinder avoidance in social network interactions
US9158440B1 (en) Display of information areas in a view of a graphical interface
CN110506267B (en) Digital component background rendering
US11303600B1 (en) Displaying text conversations with contextual images
CN110798394A (en) Instant messaging message display method and device
CN113286201B (en) Recommendation information display method and device, electronic equipment and storage medium
US20160328127A1 (en) Methods and Systems for Viewing Embedded Videos
CN111857453A (en) Function interface display method, computer equipment and storage medium
US20140028707A1 (en) Multi-pane display capture, aggregation, and sharing
CN113126855B (en) Client interaction method, device, electronic equipment and storage medium
US10007419B2 (en) Touch-based gesture recognition and application navigation
US20190206102A1 (en) Systems and methods for enhancing content
CN112799558A (en) Information processing method, information processing device, electronic equipment and storage medium
EP3217267A1 (en) Systems and methods for presenting content
CN115934974A (en) Multimedia data processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant