WO2017152704A1 - 一种超链接窗口的显示控制方法及装置 - Google Patents

一种超链接窗口的显示控制方法及装置 Download PDF

Info

Publication number
WO2017152704A1
WO2017152704A1 PCT/CN2016/113318 CN2016113318W WO2017152704A1 WO 2017152704 A1 WO2017152704 A1 WO 2017152704A1 CN 2016113318 W CN2016113318 W CN 2016113318W WO 2017152704 A1 WO2017152704 A1 WO 2017152704A1
Authority
WO
WIPO (PCT)
Prior art keywords
hyperlink
window
initialization parameter
document
handle
Prior art date
Application number
PCT/CN2016/113318
Other languages
English (en)
French (fr)
Inventor
朱龙飞
Original Assignee
广州视睿电子科技有限公司
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 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2017152704A1 publication Critical patent/WO2017152704A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/134Hyperlinking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the invention relates to the field of document editing, in particular to a display control method and device for a hyperlink window.
  • hyperlinks are often added to include some of the materials, images, or web pages needed for the presentation.
  • a pop-up type of hyperlink refers to a hyperlink that presents a link content in a state in which the current presentation document is held, a new window is popped up above the window of the current presentation document
  • the existing hyperlink addition and implementation process Generally, the hyperlink is edited at the specified position of the presentation document, and the type of the hyperlink is selected.
  • the hyperlink window is popped up in the presentation document.
  • the prior art lacks a mechanism for controlling the opened hyperlink window, which results in many times the open hyperlink window does not reach the user's desired display condition.
  • the full-screen display of the opened hyperlink window causes the content of the presentation document itself to be overwritten, and the comparison presentation cannot be performed.
  • the comparison presentation cannot be performed.
  • first close or minimize the hidden hyperlink window In order to return to view the content of the presentation document, first close or minimize the hidden hyperlink window, and then switch back and forth. Affects the presentation and experience. If the hyperlink window is windowed, there will be a problem that the hyperlink window is overwritten after the hyperlink window runs to the window of the presentation document after losing the focus. The above problems will cause the demonstrator's presentation process to be interrupted, which will affect the user's experience.
  • an object of the present invention is to provide a display control method and apparatus for a hyperlink window, which can control the display mode of the hyperlink window to be desired by the user when the document is displayed, and ensure the smoothness of the presentation.
  • An embodiment of the invention provides a display control method for a hyperlink window, which includes the following steps:
  • the method before listening to the hyperlink added in the document and receiving the instruction to open the hyperlink, before starting the process corresponding to the hyperlink to generate the hyperlink window, the method further includes:
  • the initialization parameters of the hyperlink window corresponding to the hyperlink input by the user are recorded.
  • the hyperlink window is a popup window.
  • the initialization parameter includes a size, a location, and a ceiling of the hyperlink window.
  • the window handle and the initialization parameter are passed to a window setting function under the operating system to display the hyperlink window on the document according to the window handle and the initialization parameter, specifically :
  • the window setting function is a SetWindowPos function under win32.
  • the invention also provides a display control device for a hyperlink window, comprising:
  • a hyperlink activation unit configured to monitor a hyperlink added in the document, and when receiving an instruction to open the hyperlink, start a process corresponding to the hyperlink to generate a hyperlink window;
  • An obtaining unit configured to acquire a window handle of the hyperlink window and a pre-recorded initialization parameter of the hyperlink window input by a user;
  • a transfer unit configured to pass the window handle and the initialization parameter to a window setting function under an operating system to display the hyperlink window on the document according to the window handle and the initialization parameter.
  • the method further comprises:
  • a hyperlink generating unit configured to generate a predetermined type of hyperlink in the document according to a user's editing operation
  • a parameter recording unit configured to record an initialization parameter of the hyperlink window corresponding to the hyperlink input by the user.
  • the initialization parameter includes a size, a location, and a ceiling of the hyperlink window.
  • the window setting function is a SetWindowPos function under win32.
  • the display control method and device for the hyperlink window provided by the present invention, when the hyperlink is opened, the initialization parameter of the hyperlink window input by the user is acquired, and the display manner of the generated hyperlink window is controlled according to the initialization parameter. Therefore, the display of the hyperlink window can be flexibly controlled, the consistency of the use of the document presentation is improved, and the user experience is improved.
  • FIG. 1 is a schematic flowchart of a display control method of a hyperlink window according to an embodiment of the present invention.
  • FIG. 2 is another schematic flowchart of a display control method of a hyperlink window according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a display control apparatus for a hyperlink window according to an embodiment of the present invention.
  • FIG. 4 is another schematic structural diagram of a display control apparatus for a hyperlink window according to an embodiment of the present invention.
  • an embodiment of the present invention provides a display control method for a hyperlink window, which is used for controlling a hyperlink window opened in a document, which can be executed by a display control device of a hyperlink window, and includes at least the following step:
  • the display control device of the hyperlink window monitors the added hyperlink in the document in real time, and when the user clicks on the hyperlink to generate the opening
  • the display control device of the hyperlink window acquires the hyperlink and starts a corresponding process to generate a corresponding hyperlink window. For example, if the hyperlink is a webpage hyperlink, the default browser process is started to generate a corresponding hyperlink window (ie, generate a webpage).
  • the hyperlink may be a picture, a webpage, a file, a specific application or a gadget, or the like.
  • the type of the hyperlink may be divided into two types: a jump type and a pop-up type.
  • Jumping refers to setting a hyperlink to jump to a page inside the program.
  • pop-up refers to keeping the current document in the state of the current document.
  • a hyperlink to the content of the link is presented by popping up a new window above the window.
  • Embodiments of the present invention can manage and control pop-up hyperlinks.
  • the display control device of the hyperlink window acquires a window handle of the hyperlink window (the handle is a reference identifier managed by the system, and the identifier may be The system is relocated to a memory address, that is, the system can access the hyperlink window through the window handle, and the window handle represents The hyperlink window is uniquely identified in the system) and simultaneously acquires pre-recorded initialization parameters of the hyperlink window input by the user.
  • the handle is a reference identifier managed by the system, and the identifier may be The system is relocated to a memory address, that is, the system can access the hyperlink window through the window handle, and the window handle represents The hyperlink window is uniquely identified in the system) and simultaneously acquires pre-recorded initialization parameters of the hyperlink window input by the user.
  • the initialization parameter is a parameter preset by the user when editing and adding the hyperlink, and is used to control a display position of the hyperlink window
  • the initialization parameter may include
  • the size, position, and top of the hyperlink window are, for example, the initialization parameter may define the width, height, and coordinates of the upper left corner of the window to confirm the position and size of the hyperlink window.
  • a top parameter eg, 1 is top, 0 is not top
  • the display control device of the hyperlink window passes the window handle and the initialization parameter to a window setting function under the operating system (for Windows system, the window setting function is SetWindowPos function, which is located under win32, the role is to change a sub-window, pop-up window or top-level window size, position, etc.), at this time, the operating system can call the window setting function
  • the window setting function for Windows system, the window setting function is SetWindowPos function, which is located under win32, the role is to change a sub-window, pop-up window or top-level window size, position, etc.
  • the operating system can call the window setting function
  • the hyperlink window is displayed on the document, and the location and size of the hyperlink window are determined by the initialization parameter, that is, the location, size, and the like of the hyperlink may be determined by the user's own settings.
  • the display control method of the hyperlink window provided by the embodiment of the present invention, when the hyperlink is opened, obtains the initialization parameter of the hyperlink window input by the user in advance, and then controls the display manner of the generated hyperlink window according to the initialization parameter. Therefore, the display of the hyperlink window can be flexibly controlled, the consistency of the document presentation or use is improved, and the user experience is improved.
  • the method further includes:
  • S1011 Generate a predetermined type of hyperlink in the document according to a user's editing operation.
  • the initialization parameter is input by the user, it can be ensured that the display manner of the hyperlink window is desired by the user, which improves the user experience.
  • the dual-screen display refers to the simultaneous display of the document using two screens during the presentation, wherein one screen is the main screen for displaying the current content of the document, and One screen is a secondary screen
  • the extended content for displaying the document for example, for displaying the hyperlink window corresponding to the hyperlink added on the document.
  • the PPT page is displayed on the dual screen main screen, and the hyperlink on the PPT page is opened.
  • the hyperlink window is displayed on the secondary screen of the dual screen.
  • the user may first edit the add hyperlink at the specified position in the document, and set the initialization parameter of the hyperlink window when adding, so that the display position of the hyperlink window is on the secondary screen.
  • the display control device of the hyperlink window monitors whether the PPT enters the full-screen playback state. After entering the full-screen playback state, a timer is started to poll whether a hyperlink window is opened, and if a hyperlink window is opened, Get its window handle and initialization parameters, and start calculating the display position of the hyperlink window on the secondary screen (the default size of the hyperlink window is kept unchanged). Finally, call the SetWindowPos function under Win32 to display the hyperlink window to the specified position of the secondary screen and set it to the top. At this time, the hyperlink window of the PPT is no longer overlaid on the page of the main screen, so that the linked object and the link content can be simultaneously displayed, thereby achieving a comparison demonstration method.
  • Example 2 In the comparative demonstration, it is sometimes necessary to compare the differences between the two images.
  • One image is added to the document, and the other is generated by hyperlink.
  • the user naturally hopes that the picture generated by the hyperlink is as close as possible to the picture in the document and does not coincide.
  • This effect can be achieved by the display control device of the hyperlink window of the embodiment of the present invention.
  • the user may first edit the hyperlink to add the image in the specified position in the document, and then set the initialization parameter of the image so that the display position of the image is adjacent to the image to be compared without overlapping, so when the hyperlink is opened Thereafter, the picture can be displayed on the document at a location that the user expects.
  • FIG. 3 is a schematic structural diagram of a display control apparatus for a hyperlink window according to an embodiment of the present invention.
  • the display control device 100 of the hyperlink window is configured to execute the display control method of the hyperlink window described above, and includes:
  • the hyperlink starting unit 10 is configured to monitor a hyperlink added in the document, and when receiving an instruction to open the hyperlink, start a process corresponding to the hyperlink to generate a hyperlink window.
  • the hyperlink activation unit 10 monitors the hyperlink added in the document in real time, and when the user clicks on the hyperlink, the hyperlink is opened.
  • the instruction instructing unit 10 acquires the type of the hyperlink and starts a corresponding process to generate a corresponding hyperlink window. For example, if the hyperlink is a webpage hyperlink, the default browser process is started to generate a corresponding hyperlink window (ie, a webpage).
  • the obtaining unit 20 is configured to acquire a window handle of the hyperlink window and a pre-recorded initialization parameter of the hyperlink window input by the user.
  • the obtaining unit 20 acquires a window handle of the hyperlink window (the handle is a reference identifier managed by the system, and the identifier may be relocated by the system to a memory address, that is, the system can access the hyperlink window through the window handle, and the window handle represents the hyperlink window The unique identifier of the port in the system) and simultaneously obtain the pre-recorded initialization parameters of the hyperlink window input by the user.
  • the handle is a reference identifier managed by the system, and the identifier may be relocated by the system to a memory address, that is, the system can access the hyperlink window through the window handle, and the window handle represents the hyperlink window The unique identifier of the port in the system) and simultaneously obtain the pre-recorded initialization parameters of the hyperlink window input by the user.
  • the initialization parameter is a parameter preset by the user when editing and adding the hyperlink, and is used to control a display position of the hyperlink window
  • the initialization parameter may include
  • the size, position, and top of the hyperlink window are, for example, the initialization parameter may define the width, height, and coordinates of the upper left corner of the window to confirm the position and size of the hyperlink window.
  • a top parameter eg, 1 is top, 0 is not top
  • the transmitting unit 30 is configured to pass the window handle and the initialization parameter to a window setting under the operating system to display the hyperlink window on the document according to the window handle and the initialization parameter.
  • the transmitting unit 30 passes the window handle and the initialization parameter to a window setting function under the system (for the windows system,
  • the window setting function is SetWindowPos function, which is located under win32, the function is to change the size of a sub-window, pop-up window or top-level window, position and Z order, etc.), at this time, the system can call the window setting function in the
  • the hyperlink window is displayed on the document, and the location and size of the hyperlink window are determined by the initialization parameter, that is, the location, size, and the like of the hyperlink may be determined by the user's own settings.
  • the display control device 100 of the hyperlink window provided by the embodiment of the present invention, when the hyperlink is opened, the obtaining unit 20 acquires the initialization parameter of the hyperlink window input by the user in advance, and the transmitting unit 30 further The initialization parameters are passed to the system to control the position, size and topping of the generated hyperlink window, so that the display of the hyperlink window can be flexibly controlled, the consistency of the document presentation or use is improved, and the user experience is improved.
  • the device 100 also includes:
  • the hyperlink generating unit 40 is configured to generate a hyperlink of a predetermined type in the document according to an editing operation of the user.
  • the parameter recording unit 50 is configured to record an initialization parameter of a hyperlink window corresponding to the hyperlink input by the user.
  • the initialization parameter is input by the user, it can be ensured that the display manner of the hyperlink window is desired by the user, which improves the user experience.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种超链接窗口的显示控制方法,包括如下步骤:监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口(S101);获取所述超链接窗口的窗口句柄及预先记录的用户输入的所述超链接窗口的初始化参数(S102);将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置函数,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口(S103)。还公开了一种超链接窗口的显示控制装置,可在进行文档演示时,控制超链接窗口的显示方式为用户期望的方式,保证演示的流畅,提高了使用体验。

Description

一种超链接窗口的显示控制方法及装置 技术领域
本发明涉及文档编辑领域,具体是一种超链接窗口的显示控制方法及装置。
背景技术
在一些演示文档如Office演示文档中往往会加入超链接,以加入一些演示时所需的资料、图片或网页等。其中,对于弹出式类型的超链接(指在保持当前演示文档的状态下,以在当前演示文档的窗口上方弹出新窗口的方式呈现链接内容的超链接),现有的超链接添加和实现过程一般如下:在演示文档的指定位置编辑超链接、选择超链接的类型,在演示过程中,当超链接被打开时,启动相应的进程打开超链接,并在演示文档中弹出该超链接窗口。
但是现有技术缺乏对打开后的超链接窗口进行控制的机制,这就导致很多时候打开的超链接窗口达不到用户期望的显示状况。例如,打开的超链接窗口全屏显示导致演示文档本身的内容被覆盖住,无法进行对比演示,此时若要返回查看演示文档的内容时,要先关闭或最小化隐藏超链接窗口,如此来回切换影响了演示效果和体验。而如果对超链接窗口进行窗口化的话,则会存在失去焦点后超链接窗口跑到演示文档的窗口后而导致超链接窗口被覆盖的问题。上述问题会导致演示人员的演示过程被打断,进而影响了用户的使用体验。
发明内容
针对上述问题,本发明的目的在于提供一种超链接窗口的显示控制方法及装置,可在在进行文档显示时,控制超链接窗口的显示方式为用户期望的方式,保证演示的流畅。
本发明实施例提供一种超链接窗口的显示控制方法,包括如下步骤:
监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口;
获取所述超链接窗口的窗口句柄及预先记录的用户输入的所述超链接窗口的初始化参数;
将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置函数,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口。
优选地,在监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口之前,还包括:
根据用户的编辑操作,在文档中生成预定类型的超链接;
记录用户输入的与所述超链接对应的超链接窗口的初始化参数。
优选地,所述超链接窗口为弹出式窗口。
优选地,所述初始化参数包括所述超链接窗口的大小、位置及是否置顶。
优选地,所述将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置函数,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口,具体为:
将所述窗口句柄及所述初始化参数传递给操作系统内的窗口设置函数,以根据所述窗口句柄及所述初始化参数,在所述文档的指定位置显示指定大小的超链接窗口,并确定所述超链接窗口是否置顶。
优选地,所述窗口设置函数为win32下的SetWindowPos函数。
本发明还提供一种超链接窗口的显示控制装置,包括:
超链接启动单元,用于监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口;
获取单元,用于获取所述超链接窗口的窗口句柄及预先记录的用户输入的所述超链接窗口的初始化参数;
传递单元,用于将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置函数,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口。
优选地,还包括:
超链接生成单元,用于根据用户的编辑操作,在文档中生成预定类型的超链接;
参数记录单元,用于记录用户输入的与所述超链接对应的超链接窗口的初始化参数。
优选地,所述初始化参数包括所述超链接窗口的大小、位置及是否置顶。
优选地,所述窗口设置函数为win32下的SetWindowPos函数。
本发明提供的超链接窗口的显示控制方法及装置,在打开超链接时,通过获取用户预先输入的所述超链接窗口的初始化参数,再根据所述初始化参数控制生成的超链接窗口的显示方式,从而可以灵活控制超链接窗口的显示,提高了文档演示使用的连贯性,提高了用户的使用体验。
附图说明
为了更清楚地说明本发明的技术方案,下面将对实施方式中所需要使用的附图作简单地 介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的超链接窗口的显示控制方法的流程示意图。
图2是本发明实施例提供的超链接窗口的显示控制方法的另一种流程示意图。
图3是本发明实施例提供的超链接窗口的显示控制装置的结构示意图。
图4是本发明实施例提供的超链接窗口的显示控制装置的另一种结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,本发明实施例提供一种超链接窗口的显示控制方法,用于控制在文档中打开的超链接窗口的方式,其可由超链接窗口的显示控制装置来执行,并至少包括如下步骤:
S101,监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口。
在本发明实施例中,在进行文档演示或者文档编辑过程中,所述超链接窗口的显示控制装置会实时监听所述文档中已添加的超链接,当用户点击所述超链接生成打开所述超链接的指令时,所述超链接窗口的显示控制装置获取所述超链接,并启动对应的进程来生成对应的超链接窗口。例如,所述超链接是网页超链接,则启动默认的浏览器进程来生成对应的超链接窗口(即生成一个网页)。
在本发明实施例中,所述超链接可以是图片、网页、文件、特定的应用程序或小工具等。其中,一般而言,根据其显示方式,所述超链接的类型可以分为跳转式和弹出式两种。跳转式就是指设置超链接跳转到程序内部的页面,比如在PPT中,设置超链接来跳转到某一页;而弹出式是指在保持当前文档的状态下,以在当前文档的窗口上方弹出新窗口的方式呈现链接内容的超链接。本发明实施例可针对弹出式的超链接进行管理和控制。
S102,获取所述超链接窗口的窗口句柄及预先记录的用户输入的所述超链接窗口的初始化参数。
在本发明实施例中,在生成所述超链接窗口后,所述超链接窗口的显示控制装置将获取所述超链接窗口的窗口句柄(句柄是由系统所管理的引用标识,该标识可以被系统重新定位到一个内存地址上,也就是系统可以通过这个窗口句柄访问到该超链接窗口,窗口句柄代表 了所述超链接窗口在系统中的唯一标识),并同时获取预先记录的用户输入的所述超链接窗口的初始化参数。
在本发明实施例中,所述初始化参数为用户在编辑及添加所述超链接的时候预先设定好的参数,其用于控制所述超链接窗口的显示位置,所述初始化参数可包括所述超链接窗口的大小、位置及是否置顶等,例如,所述初始化参数可定义所述超链接窗口的宽度、高度和窗口左上角的坐标来确实所述超链接窗口的位置和大小。并通过定义一个置顶参数(例如,1为置顶,0为不置顶)来确定所述超链接窗口是覆盖在当前文档上方还是隐藏在当前文档下面。
S103,将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置函数,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口。
在本发明实施例中,所述超链接窗口的显示控制装置在获得所述窗口句柄及所述初始化参数后,将所述窗口句柄及所述初始化参数传递至操作系统下的窗口设置函数(对于windows系统,所述窗口设置函数为SetWindowPos函数,其位于win32下,作用是改变一个子窗口,弹出式窗口或顶层窗口的尺寸,位置等),此时,操作系统即可调用所述窗口设置函数在所述文档上显示所述超链接窗口,且所述超链接窗口的位置、大小由所述初始化参数决定,即所述超链接的位置、大小等可由用户自己设置决定。
本发明实施例提供的超链接窗口的显示控制方法,在打开超链接时,通过获取用户预先输入的所述超链接窗口的初始化参数,再根据所述初始化参数控制生成的超链接窗口的显示方式,从而可以灵活控制超链接窗口的显示,提高了文档演示或使用的连贯性,提高了用户的使用体验。
请一并参阅图2,需要说明的是,上述实施例中,在打开超链接前,需要先在文档中生成超链接,并需要获取用户输入的初始化参数,因而在步骤S101之前,还包括:
S1011,根据用户的编辑操作,在文档中生成预定类型的超链接。
S1012,记录用户输入的与所述超链接对应的超链接窗口的初始化参数。
本发明实施例中,由于所述初始化参数是用户自己输入的,因而可以保证超链接窗口的显示方式是用户自己期望的,提高了用户的体验。
为了便于对本发明实施例的了解,下面将以若干个实际的例子对本发明实施例做描述。
例一:
对于一个双屏显示的演示项目(所述双屏显示指的是在进行演示时,同时利用两个屏幕进行文档的显示,其中,一个屏幕为主屏,用于显示所述文档的当前内容,另一个屏幕为副屏, 用于显示文档的扩展内容,例如用于显示文档上添加的超链接对应的超链接窗口),用户期望打开PPT文件时,PPT页面显示在双屏的主屏上,在打开PPT页面上的超链接时,超链接窗口显示在双屏的副屏上。此时,用户可先在文档中的指定位置编辑添加超链接,并在添加时设置超链接窗口的初始化参数,使得该超链接窗口的显示位置在所述副屏上。在文档演示时,所述超链接窗口的显示控制装置监听PPT是否进入全屏播放状态,当进入全屏播放状态后,启动一个定时器去轮询是否有超链接窗口打开,若有超链接窗口打开,获取其窗口句柄及初始化参数,开始计算所述超链接窗口在副屏上的显示位置(此时保持超链接窗口的默认大小不变)。最后,调用Win32下的SetWindowPos函数,将超链接窗口显示到副屏的指定位置并使之置顶。此时PPT的超链接窗口打开后不再覆盖在主屏的页面上,从而可以使被链接对象和链接内容同时显示,达到对比演示的方法。
例二、在对比演示中,有时需要比对两种图片的差别,其中,一张图片是添加在文档中的,另一张则是以超链接的方式生成。为了进行比对,用户自然希望超链接生成的图片与文档中的图片尽量接近且不重合。本发明实施例的超链接窗口的显示控制装置即可达到这种效果。具体的,用户可先在文档中的指定位置编辑添加该图片的超链接,然后设置该图片的初始化参数,使得该图片的显示位置与待比对图片邻近而不重合,如此,当打开超链接后,所述图片即可以用户期待的位置显示在所述文档上。
请一并参阅图3,图3是本发明实施例提供的超链接窗口的显示控制装置的结构示意图。所述超链接窗口的显示控制装置100用于执行上述的超链接窗口的显示控制方法,其包括:
超链接启动单元10,用于监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口。
在本发明实施例中,在进行文档演示或者文档编辑过程中,所述超链接启动单元10会实时监听所述文档中已添加的超链接,当用户点击所述超链接生成打开所述超链接的指令时,所述超链接启动单元10获取所述超链接的类型,并启动对应的进程来生成对应的超链接窗口。例如,所述超链接是网页超链接,则启动默认的浏览器进程来生成对应的超链接窗口(即一个网页)。
获取单元20,用于获取所述超链接窗口的窗口句柄及预先记录的用户输入的所述超链接窗口的初始化参数。
在本发明实施例中,在生成所述超链接窗口后,所述获取单元20将获取所述超链接窗口的窗口句柄(句柄是由系统所管理的引用标识,该标识可以被系统重新定位到一个内存地址上,也就是系统可以通过这个窗口句柄访问到该超链接窗口,窗口句柄代表了所述超链接窗 口在系统中的唯一标识),并同时获取预先记录的用户输入的所述超链接窗口的初始化参数。
在本发明实施例中,所述初始化参数为用户在编辑及添加所述超链接的时候预先设定好的参数,其用于控制所述超链接窗口的显示位置,所述初始化参数可包括所述超链接窗口的大小、位置及是否置顶等,例如,所述初始化参数可定义所述超链接窗口的宽度、高度和窗口左上角的坐标来确实所述超链接窗口的位置和大小。并通过定义一个置顶参数(例如,1为置顶,0为不置顶)来确定所述超链接窗口是覆盖在当前文档上方还是隐藏在当前文档下面。
传递单元30,用于将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口。
在本发明实施例中,所述传递单元30在获得所述窗口句柄及所述初始化参数后,将所述窗口句柄及所述初始化参数传递至系统下的窗口设置函数(对于windows系统,所述窗口设置函数为SetWindowPos函数,其位于win32下,作用是改变一个子窗口,弹出式窗口或顶层窗口的尺寸,位置和Z序等),此时,系统即可调用所述窗口设置函数在所述文档上显示所述超链接窗口,且所述超链接窗口的位置、大小由所述初始化参数决定,即所述超链接的位置、大小等可由用户自己设置决定。
本发明实施例提供的超链接窗口的显示控制装置100,在打开超链接时,所述获取单元20通过获取用户预先输入的所述超链接窗口的初始化参数,所述传递单元30再将所述初始化参数传递给系统,以控制生成的超链接窗口的位置、大小及是否置顶等,从而可以灵活控制超链接窗口的显示,提高了文档演示或使用的连贯性,提高了用户的使用体验。
请一并参阅图4,需要说明的是,上述实施例中,在打开超链接前,需要先在文档中生成超链接,并需要获取用户输入的初始化参数,因所述超链接窗口的显示控制装置100还包括:
超链接生成单元40,用于根据用户的编辑操作,在文档中生成预定类型的超链接。
参数记录单元50,用于记录用户输入的与所述超链接对应的超链接窗口的初始化参数。
本发明实施例中,由于所述初始化参数是用户自己输入的,因而可以保证超链接窗口的显示方式是用户自己期望的,提高了用户的体验。
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程 序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。

Claims (10)

  1. 一种超链接窗口的显示控制方法,其特征在于,包括如下步骤:
    监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口;
    获取所述超链接窗口的窗口句柄及预先记录的用户输入的所述超链接窗口的初始化参数;
    将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置函数,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口。
  2. 根据权利要求1所述的超链接窗口的显示控制方法,其特征在于,在监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口之前,还包括:
    根据用户的编辑操作,在文档中生成预定类型的超链接;
    记录用户输入的与所述超链接对应的超链接窗口的初始化参数。
  3. 根据权利要求1所述的超链接窗口的显示控制方法,其特征在于,所述超链接窗口为弹出式窗口。
  4. 根据权利要求1所述的超链接操作方法,其特征在于,所述初始化参数包括所述超链接窗口的大小、位置及是否置顶。
  5. 根据权利要求4所述的超链接窗口的显示控制方法,其特征在于,所述将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置函数,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口,具体为:
    将所述窗口句柄及所述初始化参数传递给操作系统内的窗口设置函数,以根据所述窗口句柄及所述初始化参数,在所述文档的指定位置显示指定大小的超链接窗口,并确定所述超链接窗口是否置顶。
  6. 根据权利要求1所述的超链接窗口的显示控制方法,其特征在于,所述窗口设置函数为win32下的SetWindowPos函数。
  7. 一种超链接窗口的显示控制装置,其特征在于,包括:
    超链接启动单元,用于监听在文档中添加的超链接,并在接收到打开所述超链接的指令时,启动与所述超链接对应的进程生成超链接窗口;
    获取单元,用于获取所述超链接窗口的窗口句柄及预先记录的用户输入的所述超链接窗口的初始化参数;
    传递单元,用于将所述窗口句柄及所述初始化参数传递给操作系统下的窗口设置函数,以根据所述窗口句柄及所述初始化参数在所述文档上显示所述超链接窗口。
  8. 根据权利要求7所述的超链接窗口的显示控制装置,其特征在于,还包括:
    超链接生成单元,用于根据用户的编辑操作,在文档中生成预定类型的超链接;
    参数记录单元,用于记录用户输入的与所述超链接对应的超链接窗口的初始化参数。
  9. 根据权利要求7所述的超链接操作装置,其特征在于,所述初始化参数包括所述超链接窗口的大小、位置及是否置顶。
  10. 根据权利要求7所述的超链接窗口的显示控制装置,其特征在于,所述窗口设置函数为win32下的SetWindowPos函数。
PCT/CN2016/113318 2016-03-09 2016-12-30 一种超链接窗口的显示控制方法及装置 WO2017152704A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610134404.9A CN105824789A (zh) 2016-03-09 2016-03-09 一种超链接窗口的显示控制方法及装置
CN201610134404.9 2016-03-09

Publications (1)

Publication Number Publication Date
WO2017152704A1 true WO2017152704A1 (zh) 2017-09-14

Family

ID=56987115

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113318 WO2017152704A1 (zh) 2016-03-09 2016-12-30 一种超链接窗口的显示控制方法及装置

Country Status (2)

Country Link
CN (1) CN105824789A (zh)
WO (1) WO2017152704A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10685335B2 (en) 2015-05-15 2020-06-16 Parker-Hannifin Corporation Integrated asset integrity management system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824789A (zh) * 2016-03-09 2016-08-03 广州视睿电子科技有限公司 一种超链接窗口的显示控制方法及装置
TWI778291B (zh) * 2019-09-09 2022-09-21 三竹資訊股份有限公司 最佳五檔與快捷帳務查詢之裝置與方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100204979A1 (en) * 2009-02-06 2010-08-12 Inventec Corporation System and method for magnifiedly displaying real-time translated word
CN101923454A (zh) * 2010-08-20 2010-12-22 同辉佳视(北京)信息技术有限公司 一种屏幕显示方法和装置
CN102799368A (zh) * 2012-06-29 2012-11-28 广州市动景计算机科技有限公司 在触控式浏览器上打开链接的方法及触控式浏览器系统
CN103778132A (zh) * 2012-10-19 2014-05-07 佳能株式会社 网页操作方法及设备、网页呈现方法及设备以及电子设备
CN105824789A (zh) * 2016-03-09 2016-08-03 广州视睿电子科技有限公司 一种超链接窗口的显示控制方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279517A (zh) * 2013-05-27 2013-09-04 中山爱科数字科技股份有限公司 一种网页内容的展示方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100204979A1 (en) * 2009-02-06 2010-08-12 Inventec Corporation System and method for magnifiedly displaying real-time translated word
CN101923454A (zh) * 2010-08-20 2010-12-22 同辉佳视(北京)信息技术有限公司 一种屏幕显示方法和装置
CN102799368A (zh) * 2012-06-29 2012-11-28 广州市动景计算机科技有限公司 在触控式浏览器上打开链接的方法及触控式浏览器系统
CN103778132A (zh) * 2012-10-19 2014-05-07 佳能株式会社 网页操作方法及设备、网页呈现方法及设备以及电子设备
CN105824789A (zh) * 2016-03-09 2016-08-03 广州视睿电子科技有限公司 一种超链接窗口的显示控制方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10685335B2 (en) 2015-05-15 2020-06-16 Parker-Hannifin Corporation Integrated asset integrity management system

Also Published As

Publication number Publication date
CN105824789A (zh) 2016-08-03

Similar Documents

Publication Publication Date Title
US11271986B2 (en) Document sharing through browser
US20030160813A1 (en) Method and apparatus for a dynamically-controlled remote presentation system
WO2017152704A1 (zh) 一种超链接窗口的显示控制方法及装置
US20170366858A1 (en) System and method for composing function programming for adult toy operation in synchronization with video playback
TW201743620A (zh) 視頻播放控制方法、裝置及視頻播放系統
WO2015078377A1 (zh) 一种桌面显示方法、装置及智能电视
CN107797833A (zh) 智能设备上应用程序的界面显示方法
US9268397B2 (en) Information processor, information processing method, and computer program product for processing information input by user
JP2007240813A (ja) 画像表示システム、画像表示装置、画像表示方法および画像表示プログラム
US20150326933A1 (en) Video reproduction apparatus, control method thereof, and computer-readable storage medium storing program
WO2017113721A1 (zh) 一种预览播放方法及装置
CN111726688A (zh) 网络教学中投屏画面自适应的方法以及装置
WO2024002120A1 (zh) 媒体内容展示方法、装置、设备及存储介质
WO2016165374A1 (zh) 一种实现多屏显示的方法及装置
JP2008262207A (ja) ダブルスクリーンによってスライドを投影する方法及び装置
JP2023535639A (ja) ビデオによるインタラクション方法、装置、デバイス及び記憶媒体
US9007383B2 (en) Creating presentations by capturing content of a simulated second monitor
US20150261699A1 (en) Output device and output system
JP2012038122A (ja) コンテンツ制御設定システムおよびコンテンツ制御設定方法
JP4425328B2 (ja) 投射型映像表示装置
JP4425327B2 (ja) 投射型映像表示装置
RU2805241C1 (ru) Способ, устройство, оборудование для озвучивания видео и носитель информации
JP4416692B2 (ja) 投射型映像表示装置
WO2016161906A1 (zh) 一种终端设备的控制方法、控制设备以及终端设备
WO2023065318A1 (zh) 个性化桌面管理方法、装置、交互平板、服务器及介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16893346

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16893346

Country of ref document: EP

Kind code of ref document: A1