HeaderBar: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
[[file:HeaderBar.jpg]] | [[file:HeaderBar.jpg]] | ||
== Description == | |||
The HeaderBar control displays a title and optional left and right buttons at the top of the form. Buttons can be text, an icon or both. When clicked, <HeaderBarID>_onclick(''choice'') is called. The name of the button which is called is in choice. | The HeaderBar control displays a title and optional left and right buttons at the top of the form. Buttons can be text, an icon or both. When clicked, <HeaderBarID>_onclick(''choice'') is called. The name of the button which is called is in choice. | ||
Line 11: | Line 11: | ||
To be safe, leave a bit of space under the HeaderBar. Its height differs from device to device. | To be safe, leave a bit of space under the HeaderBar. Its height differs from device to device. | ||
== Properties == | |||
Standard [[properties and methods|properties]] are supported, plus: | Standard [[properties and methods|properties]] are supported, plus: | ||
Line 27: | Line 27: | ||
|} | |} | ||
== Events == | |||
Standard [[events|events]] are supported. | Standard [[events|events]] are supported. | ||
== Example == | |||
<pre> | <pre> | ||
Line 39: | Line 39: | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
(message box showing “Button ‘left’ clicked.”) | (message box showing “Button ‘left’ clicked.”) | ||
</pre> | </pre> | ||
[[Category:Language Reference]] |
Revision as of 16:38, 17 August 2012
jQuery
Description
The HeaderBar control displays a title and optional left and right buttons at the top of the form. Buttons can be text, an icon or both. When clicked, <HeaderBarID>_onclick(choice) is called. The name of the button which is called is in choice.
To add a control to your app, choose the control’s icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the control: usually, just onclick.
To be safe, leave a bit of space under the HeaderBar. Its height differs from device to device.
Properties
Standard properties are supported, plus:
leftButtonIcon | Names of icon for left button. Use false for no icon, or alert, arrow-d, arrow-l ,arrow-r, arrow-u ,back, check, delete, forward, gear, grid, home, info, minus, plus, refresh, search, star. Design time only. |
leftButtonName | The name of the left icon. Design time only. |
rightButtonIcon | Names of icon for right button. Use false for no icon, or alert, arrow-d, arrow-l ,arrow-r, arrow-u ,back, check, delete, forward, gear, grid, home, info, minus, plus, refresh, search, star. Design time only. |
rightButtonName | The name of the right icon. Design time only. |
title | The title which appears in the center of the bar. Design time only. |
Events
Standard events are supported.
Example
Function HeaderBar1_onclick(button) MsgBox "Button '" & button & "' clicked." End Function
Output
(message box showing “Button ‘left’ clicked.”)