Header: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 44: Line 44:


[[Category:General]]
[[Category:General]]
[[Category:Common]]

Revision as of 22:13, 9 March 2019

Description

The Header control puts a simple header at the top of the screen. It also acts as a container, which means other controls, like buttons, can be dragged and dropped into it.

You can make a Header into a footer by setting bottom to 0 and putting "position:absolute;" into style.

Properties

Standard properties are supported, plus:

addChild(control) control is added to the Header. Runtime.
Header1.childNodes[1].textContent The text of the title as plain text. Runtime.
textContent The text of the title as plain text. Design time.

Events

Standard events are supported. However, events are not usually associated with the control.

Example (Basic)

Function Header1_onclick()
  MsgBox "Header clicked!"
End Function

Example (JavaScript)

Header1.onclick = function() {
    NSB.MsgBox("Header clicked!");
};