AddPanel Method (STATUSBAR)


PLBCMP GUI Only

 

The AddPanel method inserts a new panel to a STATUSBAR object. The method uses the following format:

 

[label]

{object}.AddPanel

[GIVING {return}] USING [*Width=]{width}[:

 

 

[*AutoSize=]{autosize}][:

 

 

[*BdrStyle=]{bdrstyle}][:

 

 

[*MinWidth=]{minwidth}][:

 

 

[*Text=]{text}][:

 

 

[*RunName=]{runname}][:

 

 

[*ToolTip=]{tooltip}]:

 

 

[*UserData=]{userdata}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A STATUSBAR to which a panel is added.

return

Optional. A STATUSPANEL object that gets the return value.

width

Required. A decimal number or Numeric Variable that specifies the width of the panel. (see WIDTH property)

autosize

Optional. A decimal number or Numeric Variable for the autosize type of the panel. (see AUTOSIZE property)

bdrstyle

Optional. A decimal number or Numeric Variable for the border style of the panel. (see BDRSTYLE property)

minwidth

Optional. A decimal number or Numeric Variable that specifies the minimum width of the panel. (see MINWIDTH property)

text

Optional. A Character String Variable or literal that specifies the text that is displayed in the panel. (see TEXT property)

runname

Optional. A Character String Variable or literal that specifies the run-time name of the panel. (see RUNNAME property)

tooltip

Optional. A Character String Variable or literal that specifies the tool tip that is displayed for the panel. (see TOOLTIP property)

userdata

Optional. A Character String Variable or literal that specifies the user defined data. (see UserData property)

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. If the value returned is zero, the ZERO Condition Flag is set.

  2. The OVER and EOS Condition Flags are always cleared.

  3. The created panel can be accessed through the PANELS collection.

  4. For improved performance in the Application Server environment, do not specify the optional return value and parameters unless needed.

 

 

See Also: Example Code, Method Syntax, STATUSBAR Methods

 



PL/B Language Reference STATUSBAR Methods GetPanel Method (STATUSBAR)