BBjControl::unsetStyle

Description

In BBj 23.00 and higher, this method unsets a CSS property on the control.

Syntax

Return Value Method
void unsetStyle(String property)

Parameters

Parameter Description
property Specifies the CSS property to be unset on the control.

Return Value

None.

Remarks

CSS settings have no effect on the GUI client.

For more details, see the CSS API.

Example

rem ' BBjControl::unsetStyle Example

rem ' unsetStyle

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()

window! = sysgui!.addWindow(50,50,325,150,"unsetStyle",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")

text$ = "The quick brown fox jumps over the lazy dog."
text! = window!.addStaticText(100,25,25,275,50,text$)

color! = window!.addCheckBox(101,25,75,275,25,"set color property",$$)
color!.setCallback(color!.ON_CHECK_ON,"setStyle")
color!.setCallback(color!.ON_CHECK_OFF,"unsetStyle")

process_events

eoj:
release

setStyle:
    text!.setStyle("color","red")
return

unsetStyle:
    text!.unsetStyle("color",err=*next); rem ' BBj 23+
return

ClosedVersion History

  • BBj 23.00: BBjControl::unsetStyle introduced

See Also

BBjAPI

BBjSysGui

BBjWindow

CSS API

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