CN105549867A - Method for displaying information prompt box in .NET window form program - Google Patents

Method for displaying information prompt box in .NET window form program Download PDF

Info

Publication number
CN105549867A
CN105549867A CN201410608266.4A CN201410608266A CN105549867A CN 105549867 A CN105549867 A CN 105549867A CN 201410608266 A CN201410608266 A CN 201410608266A CN 105549867 A CN105549867 A CN 105549867A
Authority
CN
China
Prior art keywords
display
information
control
prompting frame
display information
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.)
Granted
Application number
CN201410608266.4A
Other languages
Chinese (zh)
Other versions
CN105549867B (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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201410608266.4A priority Critical patent/CN105549867B/en
Publication of CN105549867A publication Critical patent/CN105549867A/en
Application granted granted Critical
Publication of CN105549867B publication Critical patent/CN105549867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention discloses a method for displaying an information prompt box in an .NET window form program, and belongs to the field of information display. The method comprises the steps of calling a display information prompt box; judging whether an object is built; if no, entering the next step, and otherwise skipping to the second next step; building a new display information prompt box object; calling the current display information prompt box object, keeping statistics on a current information list, computing and redrawing the display size of a control; displaying the control; judging whether a set time threshold is exceeded or the control is clicked; if yes, entering the next step, and otherwise returning to the previous step to continuously display the control; and closing the control. The method can be used for displaying the information prompt box in a popping manner in the window form program, and can display in multiple lines according to the amount of the content and disappear after staying for set time or clicking.

Description

A kind of for .NET forms program display information prompting frame method
Technical field
The present invention relates to technical field of information display, be specifically related to a kind of for .NET forms program display information prompting frame method.
Background technology
In .NET forms program development techniques, usually use MessageBox.Show method to show a message box, but this message box has many defects:
1. can only point out respectively and cannot show simultaneously during many information needs order displays;
2. the main thread that can block current interface when a message box is in display cannot carry out other operation.
Therefore need a kind of can show any bar data message prompting frame and do not affect other operations that master routine carries out.
Summary of the invention
In view of the above problems, propose the present invention in case provide a kind of overcome the problems referred to above or solve the problem at least in part for .NET forms program display information prompting frame method, realize show simultaneously multiple messages point out.
According to one aspect of the present invention, provide a kind of for .NET forms program display information prompting frame method, comprise the following steps:
Step (1), call display information prompting frame;
Step (2), judge whether object is set up; If do not set up, then enter next step, on the contrary the step of jumping to (4);
Step (3), set up new display information prompting frame object;
Step (4), call current described display information prompting frame object;
Step (5), the list of statistics current information, calculate and redraw control display size;
Step (6), display control;
Step (7), judge whether to exceed setting time threshold or click described control; If so, then next step is entered; Otherwise the step of getting back to (6) continues display control;
Step (8), close described control.
Further, described step (5) specifically comprises:
When calling a display information, whether retrieval current control has existed other information displaying;
If other information show, then perform following operation:
Calculate the space of display required for all information;
Fresh information is loaded into display queue backmost;
Redraw described control and again demonstrate information.
Further, described step (5) also comprises:
When calling a display information, whether retrieval current control has existed other information displaying;
If without other information displaying, newly show an information.
Further, described method also comprises: the size automatically calculating the display of described display information prompting frame when simultaneously showing many recent information.
Further, the pattern of the self-defined display of described control.
Further, the pattern of described self-defined display comprises replacing background, changes display font, size, color.
Provided by the invention for .NET forms program display information prompting frame method, the method uses separate window body weight to paint display control, can not be clogged to main interface thread, and while display message, main thread can carry out other task process.Meanwhile, display information prompting frame can demonstrate many recent information simultaneously and automatically calculate the size of display information prompting frame display, can manually or the user friendly operation of time-out closedown display information prompting frame.Again on the one hand, control can the pattern of self-defined display, as changed background, changing display font, size, color etc.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Figure of description only for illustrating the object of preferred implementation, and does not think limitation of the present invention.Apparently, accompanying drawing described below is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 show according to the embodiment of the present invention one for .NET forms program display information prompting frame method flow diagram.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
It should be noted that, in the middle of instructions and claim, employ some vocabulary to censure specific components.Those skilled in the art should be appreciated that hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of noun the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " or " comprising " as mentioned in the middle of instructions and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to ".Instructions subsequent descriptions is for implementing better embodiment of the present invention, and right described description is for the purpose of the rule of instructions, and is not used to limit scope of the present invention.Protection scope of the present invention is when being as the criterion depending on the claims person of defining.
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing for several specific embodiment, and each accompanying drawing does not form the restriction to the embodiment of the present invention.
Embodiment one, for .NET forms program display information prompting frame method.
Below in conjunction with Fig. 1, the method for the present embodiment one is described in detail.
Fig. 1 be the embodiment of the present invention one for .NET forms program display information prompting frame method flow diagram, as shown in Figure 1, the embodiment of the present invention comprises the following steps:
Step S101, call display information prompting frame;
Step S102, judge whether object is set up; If do not set up, then enter next step, otherwise jump to step S104;
Step S103, set up new display information prompting frame object;
Step S104, call current described display information prompting frame object;
Step S105, the list of statistics current information, calculate and redraw control display size;
Step S106, display control;
Step S107, judge whether to exceed setting time threshold or click described control; If so, then next step is entered; Otherwise the step of getting back to (6) continues display control;
Step S108, close described control.
The present embodiment is preferred, and described step S105 specifically comprises:
When calling a display information, whether retrieval current control has existed other information displaying;
If other information show, then perform following operation:
Calculate the space of display required for all information;
Fresh information is loaded into display queue backmost;
Redraw described control and again demonstrate information.
The present embodiment is preferred, and described step S105 also comprises:
When calling a display information, whether retrieval current control has existed other information displaying;
If without other information displaying, newly show an information.
The present embodiment is preferred, and described method also comprises: the size automatically calculating the display of described display information prompting frame when simultaneously showing many recent information.
The present embodiment is preferred, the pattern of the self-defined display of described control.Concrete, the pattern of described self-defined display comprises changes background, change display font, size, color.
The embodiment of the present invention is a kind of for .NET forms program display information prompting frame method, the method sets up an information prompting frame voluntarily for showing information, the information pointed out when repeatedly calling described information prompting frame can Overlapping display and described information prompting frame can automatically close or manually click described information prompting frame arbitrary portion and close described information prompting frame downwards after the displaying time of setting, and information shown before after closing described information prompting frame is cleared.
Concrete, the method for .NETWINFORM forms program display information prompting frame is as described below:
Message box control itself uses singleton pattern, when call open a message box time, detect original object and whether exist, directly call existing object if exist and do not create object separately, thus saving resource.Wherein, described singleton pattern refers to: only comprise the special defects that is called as single routine class in core texture.Can a class example and this example be only had to be easy to extraneous access in guarantee system by singleton pattern, thus the convenient control to example number save system resource.
When calling a display information, described message box control is first retrieved current control and whether there are other information displaying, if other information show, then calculate and need to show all spaces required for information, fresh information is loaded into display queue backmost, then redraws control and again demonstrate information; If without other information displaying, newly show an information.
In the process of control display, after clicking the time of control or wait setting, control can be closed display, and clears out information list data, can again show from an information during display next time.
The beneficial effect that the present invention has: control uses separate window body weight to paint display control, can not be clogged to main interface thread, while display message, main thread can carry out other task process.On the other hand, information prompting frame can demonstrate many recent information with the display mode of queue and the size of automatically computing information prompting frame display simultaneously, can manual or overtime closing information prompting frame with user friendly operation.The customizable design of pattern height of display, namely control can the pattern of self-defined display, as changed background, changing display font, size, color etc.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (6)

1., for a .NET forms program display information prompting frame method, it is characterized in that, comprise the following steps:
Step (1), call display information prompting frame;
Step (2), judge whether object is set up; If do not set up, then enter next step, on the contrary the step of jumping to (4);
Step (3), set up new display information prompting frame object;
Step (4), call current described display information prompting frame object;
Step (5), the list of statistics current information, calculate and redraw control display size;
Step (6), display control;
Step (7), judge whether to exceed setting time threshold or click described control; If so, then next step is entered; Otherwise the step of getting back to (6) continues display control;
Step (8), close described control.
2. according to claim 1 for .NET forms program display information prompting frame method, it is characterized in that: described step (5) specifically comprises:
When calling a display information, whether retrieval current control has existed other information displaying;
If other information show, then perform following operation:
Calculate the space of display required for all information;
Fresh information is loaded into display queue backmost;
Redraw described control and again demonstrate information.
3. according to claim 1 and 2 for .NET forms program display information prompting frame method, it is characterized in that: described step (5) also comprises:
When calling a display information, whether retrieval current control has existed other information displaying;
If without other information displaying, newly show an information.
4. arbitrary described for .NET forms program display information prompting frame method according to claims 1 to 3, it is characterized in that: described method also comprises: the size automatically calculating the display of described display information prompting frame when simultaneously showing many recent information.
5. arbitrary described for .NET forms program display information prompting frame method according to Claims 1-4, it is characterized in that: the pattern of the self-defined display of described control.
6. according to claim 5 for .NET forms program display information prompting frame method, it is characterized in that: the pattern of described self-defined display comprises changes background, change display font, size, color.
CN201410608266.4A 2014-11-03 2014-11-03 One kind being used for .NET forms program display information alert frame method Active CN105549867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410608266.4A CN105549867B (en) 2014-11-03 2014-11-03 One kind being used for .NET forms program display information alert frame method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410608266.4A CN105549867B (en) 2014-11-03 2014-11-03 One kind being used for .NET forms program display information alert frame method

Publications (2)

Publication Number Publication Date
CN105549867A true CN105549867A (en) 2016-05-04
CN105549867B CN105549867B (en) 2019-09-17

Family

ID=55829077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410608266.4A Active CN105549867B (en) 2014-11-03 2014-11-03 One kind being used for .NET forms program display information alert frame method

Country Status (1)

Country Link
CN (1) CN105549867B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113416A (en) * 2019-05-07 2019-08-09 北京字节跳动网络技术有限公司 Method and apparatus for showing information
CN111385240A (en) * 2018-12-27 2020-07-07 北京奇虎科技有限公司 Method and device for reminding access of equipment in network and computing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070203985A1 (en) * 2006-02-15 2007-08-30 Abernethy Michael N Jr Response linking in instant messaging
CN101483537A (en) * 2009-02-12 2009-07-15 周佺喜 Method for real-time displaying website user status in webpage instant communication
CN101493751A (en) * 2009-02-09 2009-07-29 深圳市步科电气有限公司 Multi-window manager of embedded graph system
CN103235688A (en) * 2013-04-17 2013-08-07 昆山富泰科电脑有限公司 Method and graphical user interface for processing messages rapidly in intelligent device notification bar
CN103648038A (en) * 2013-11-15 2014-03-19 乐视致新电子科技(天津)有限公司 Form display control method and control apparatus of intelligent television

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070203985A1 (en) * 2006-02-15 2007-08-30 Abernethy Michael N Jr Response linking in instant messaging
CN101493751A (en) * 2009-02-09 2009-07-29 深圳市步科电气有限公司 Multi-window manager of embedded graph system
CN101483537A (en) * 2009-02-12 2009-07-15 周佺喜 Method for real-time displaying website user status in webpage instant communication
CN103235688A (en) * 2013-04-17 2013-08-07 昆山富泰科电脑有限公司 Method and graphical user interface for processing messages rapidly in intelligent device notification bar
CN103648038A (en) * 2013-11-15 2014-03-19 乐视致新电子科技(天津)有限公司 Form display control method and control apparatus of intelligent television

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SKYLINETHJ: "可自动关闭JS消息提示框", 《CSDN: HTTPS://BLOG.CSDN.NET/SKYLINETHJ/ARTICLE/DETAILS/7928492》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385240A (en) * 2018-12-27 2020-07-07 北京奇虎科技有限公司 Method and device for reminding access of equipment in network and computing equipment
CN110113416A (en) * 2019-05-07 2019-08-09 北京字节跳动网络技术有限公司 Method and apparatus for showing information

Also Published As

Publication number Publication date
CN105549867B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN104898952A (en) Terminal screen splitting implementing method and terminal
KR101519575B1 (en) Touch gesture for detailed display
CN106258011A (en) For reducing, the CPU/GPU DCVS of the power consumption during graphic frame processes is collaborative to be optimized
CN103106027A (en) Method and apparatus for designating entire area using partial area touch in a portable equipment
CN103593108A (en) Method for providing user interface having multi-tasking function, and mobile communication device
CN104063125B (en) A kind of desktop icon management method and device
CN104503682A (en) Method for processing screen display window and mobile terminal
CN103645950A (en) Computer acceleration method and device
CN105988860A (en) Method for executing application program and mobile device
WO2022068805A1 (en) Icon moving method and apparatus, and electronic device
CN105677351B (en) The compatible display methods of multiwindow and device
CN104866206A (en) Method for moving picture data, and mobile terminal
CN104133615A (en) Terminal screen lock interface processing method
CN105930119A (en) Display control method and device of intelligent terminal
CN107463322A (en) Display control method and device, terminal installation and computer-readable recording medium
CN111580899B (en) Layered structure-based message popup window system and electronic equipment
CN105549867A (en) Method for displaying information prompt box in .NET window form program
CN106406650B (en) A kind of icon display method and equipment
CN107734138A (en) The display methods and device of notification message, computer installation and storage medium
CN105472679A (en) Communication terminal network switching method and device
CN101996063B (en) Method for rapidly closing multiple splicing wall windows
CN106033292A (en) Method and device for controlling display object
CN103902186A (en) Method for decomposing folder in desktop application
CN106503543A (en) A kind of method and apparatus of management application program
CN104915208A (en) Application program head image display controlling method and application program head image display controlling device

Legal Events

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