![]() BBjNavigatorCreation Path| +--BBjSysGui | +--BBjWindow | +--BBjNavigator
DescriptionIn BBj 4.0 and higher, the BBjNavigator object provides methods for manipulating a GUI navigator control. The Navigator panel contains four buttons – "|<" (First), "<" (Previous), ">" (Next) and ">|" (Last). Clicking on the buttons fires events that can be handled based on the needs of the application. Implemented InterfacesDropTarget, Editable, Focusable, MouseWheelEnabled, RecordSetBindable, SimpleRecordSetBindable, TabTraversable CreationA BBjNavigator object is created through the following BBjWindow methods:
Methods of BBjNavigator
Methods of BBjNavigator implemented for DropTarget
Methods of BBjNavigator implemented for Editable
Methods of BBjNavigator implemented for Focusable
Methods of BBjNavigator implemented for MouseWheelEnabled
Methods of BBjNavigator implemented for RecordSetBindable
Methods of BBjNavigator implemented for SimpleRecordSetBindable
Methods of BBjNavigator implemented for TabTraversable
Methods of BBjNavigator inherited from BBjControlEvents
|
sysgui = unt open (sysgui)"X0" sysgui! = bbjapi().getSysGui() window! = sysgui!.addWindow(100,100,450,150,"Navigator",$00090003$) window!.setCallback(window!.ON_CLOSE,"eoj") navigator! = window!.addNavigator(101,50,50,350,50,"Navigator",$0000$) navigator!.setButtonWidth(50) process_events eoj: release |
With the default CSS styles, the BBjNavigator looks like this:
The BBjNavigator defines the following style names:
.BBjNavigator (The top level style)
.BBjNavigator-first (The "first" button)
.BBjNavigator-previous (The "previous" button)
.BBjNavigator-label (The label in the middle)
.BBjNavigator-next (The "next" button)
.BBjNavigator-last (The "last" button)
.BBjNavigator.bbj-disabled (Navigator is disabled)
.BBjNavigator.bbj-focused (Navigator is focused)
.BBjNavigator.bbj-readonly (Navigator is read-only)
The following CSS applies a green gradient to the Navigator:
.BBjNavigator, .BBjNavigator-first, .BBjNavigator-previous, .BBjNavigator-label, .BBjNavigator-next, .BBjNavigator-last { font-size: 16px !important; background: rgb(180,227,145); background: -moz-linear-gradient(top, rgba(180,227,145,1) 0%, rgba(97,196,25,1) 50%, rgba(180,227,145,1) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(180,227,145,1)), color-stop(50%,rgba(97,196,25,1)), color-stop(100%,rgba(180,227,145,1))); background: -webkit-linear-gradient(top, rgba(180,227,145,1) 0%,rgba(97,196,25,1) 50%,rgba(180,227,145,1) 100%); background: -o-linear-gradient(top, rgba(180,227,145,1) 0%,rgba(97,196,25,1) 50%,rgba(180,227,145,1) 100%); background: -ms-linear-gradient(top, rgba(180,227,145,1) 0%,rgba(97,196,25,1) 50%,rgba(180,227,145,1) 100%); background: linear-gradient(to bottom, rgba(180,227,145,1) 0%,rgba(97,196,25,1) 50%,rgba(180,227,145,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b4e391', endColorstr='#b4e391',GradientType=0 ); } .BBjNavigator-label { padding: 10px; } |
With those custom CSS styles, the Navigator looks like this:
Mobile touch-oriented browsers (e.g. Mobile Safari in iOS, Chrome in Android) wait for 300 milliseconds after the user taps an element before generating a click event. This delay makes applications feel sluggish when the user tries to click on buttons in rapid sequence. When the FAST_TOUCH_CLICK !OPTIONS setting is set to TRUE, BUI navigators on iOS and Android report ON_NAV_FIRST, ON_NAV_LAST, ON_NAV_NEXT and ON_NAV_PREVIOUS immediately when the user touches and releases their finger from the corresponding navigator buttons. This improves the responsiveness for those events, but introduces some side effects that the developer should be aware of. Because BUI is handling touch events on these buttons, normal double-tap and pinch-zoom gestures don't work. And because BUI is reporting the ON_NAV_* events immediately, it appears in the event stream before the navigator reports gaining focus. Some applications are sensitive to precise sequence of events.
REM Data-bound controls with a Standard Navigator |
CALLBACK Verb - Register BBj Subroutine
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.
Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.