BBjInputT::setRestore

Description

In BBj 24.00 and higher, this method sets the restore value of the BBjInputT control.

Syntax

Return Value Method
void setRestore(string restore)

Parameters

Parameter Description
restore Specifies the restore value.

Return Value

None.

Remarks

The restore string is the text representation of the time that appears when a user hits the restore key (usually ESC) or by calling the BBjInputT::restore 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::setRestore added.

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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