BBjInputT::restore

Description

In BBj 24.00 and higher, this method sets the text in the BBjInputT control to the restore string.

Syntax

Return Value Method
void restore()

Parameters

None.

Return Value

None.

Remarks

The restore string is set in the creation of the BBjInputT control or by calling the BBjInputT::setRestore method.

Example

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(50,50,200,200,"BBjInputT",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
inputt! = window!.addInputT(101,25,25,150,25,$0008$)
inputt!.focus()
print "getRestore: ",inputt!.getRestore()
inputt! = window!.addInputT(102,25,75,150,25,$0008$)
inputt!.setRestore("12pm")
print "getRestore: ",inputt!.getRestore()
restore! = window!.addButton(1,25,125,150,25,"Restore",$$)
restore!.setCallback(restore!.ON_BUTTON_PUSH,"restore")
process_events

eoj:
release

restore:
    inputt!.restore()
return

ClosedVersion History

  • BBj 24.00: BBjInputT::restore added.

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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