BBjInputT::setHighlight

Description

In BBj 24.00 and higher, this method sets whether to highlight the text in the control when focus is gained by tabbing into the control.

Syntax

Return Value Method
void setHighlight(boolean highlight)

Parameters

Parameter Description
highlight Specifies whether the text is to be highlighted on focus.

Return Value

None.

Remarks

By default, the text is not highlighted on focus.

Example

rem ' BBjInputT::setHighlight

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
sysgui!.setScale(2,2)
window! = sysgui!.addWindow(25,25,150,150,"BBjInputT",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
inputt! = window!.addInputT(101,25,25,100,25)
inputt!.setHighlight(1)
inputt!.setPlaceholder(inputt!.getMask())
inputt!.setToolTipText(inputt!.getMask())
inputt!.focus()
print "getHighlight: ",inputt!.getHighlight()
mask$ = "%hz:%mz:%sz %a"
inputt! = window!.addInputT(102,25,75,100,25,$0008$,mask$)
inputt!.setPlaceholder(inputt!.getMask())
inputt!.setToolTipText(inputt!.getMask())
print "getHighlight: ",inputt!.getHighlight()
process_events

eoj:
release

ClosedVersion History

  • BBj 24.00: BBjInputT::setHighlight added.

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.