BBjInputN::getNegateable

Description

Returns whether the BBjInputN control will accept negative values.

Syntax

Return Value

Method

boolean

getNegateable()

Parameters

None.

Return Value

Returns whether this BBjInputN control will accept negative values

Remarks

Negative values are initially accepted unless the !IRULES creation flag $10$ is specified.

Example

rem ' negateable

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,350,250,"BBjInputN Negateable",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
mask$ = "-$###,###,##0.00"
value = -123
input1! = window!.addInputN(101,25,25,150,25,$$,mask$,$00$,0,value)
flags$ = iff(input1!.getNegateable(),$0004$,$0000$)
check1! = window!.addCheckBox(102,200,25,125,25,"Negateable",flags$)
check1!.setCallback(check1!.ON_CHECK_ON,"check")
check1!.setCallback(check1!.ON_CHECK_OFF,"uncheck")
input2! = window!.addInputN(103,25,75,150,25,$$,mask$,$10$,0,value)
flags$ = iff(input2!.getNegateable(),$0004$,$0000$)
check2! = window!.addCheckBox(104,200,75,125,25,"Negateable",flags$)
check2!.setCallback(check2!.ON_CHECK_ON,"check")
check2!.setCallback(check2!.ON_CHECK_OFF,"uncheck")
input3! = window!.addInputNSpinner(105,25,125,150,25,$$,mask$,$00$,0,value)
flags$ = iff(input3!.getNegateable(),$0004$,$0000$)
check3! = window!.addCheckBox(106,200,125,125,25,"Negateable",flags$)
check3!.setCallback(check3!.ON_CHECK_ON,"check")
check3!.setCallback(check3!.ON_CHECK_OFF,"uncheck")
input4! = window!.addInputNSpinner(107,25,175,150,25,$$,mask$,$10$,0,value)
flags$ = iff(input4!.getNegateable(),$0004$,$0000$)
check4! = window!.addCheckBox(108,200,175,125,25,"Negateable",flags$)
check4!.setCallback(check4!.ON_CHECK_ON,"check")
check4!.setCallback(check4!.ON_CHECK_OFF,"uncheck")
process_events

eoj:
release

check:
    event! = sysgui!.getLastEvent()
    check! = event!.getControl()
    input! = window!.getInputN(check!.getID()-1)
    input!.setNegateable(1)
return

uncheck:
    event! = sysgui!.getLastEvent()
    check! = event!.getControl()
    input! = window!.getInputN(check!.getID()-1)
    input!.setNegateable(0)
return

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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