Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.7 AddTick Method

Description:

Adds a graduation mark ("tick") at the specified position.

It is only effective if the AutoTick property is False.

Used in controls:

Slider

Used in objects:

None.

Parameters:

VT_I4 - TickPositionS9(9) COMP-5

Description of Parameters:

Specifies the position where the tick should be added.

The TickPosition property is an array containing the positions of all the ticks

Return value:

VT_I4 - ReturnValueS9(9) COMP-5

The total number of ticks added using AddTick methods.

Example:

 WORKING-STORAGE SECTION.
 01 lPos		PIC S9(9) COMP-5.
 01 ReturnValue	PIC S9(9) COMP-5.
 PROCEDURE DIVISION.
* Turn off any auto tick marks
  MOVE POW-FALSE 
    TO "AutoTick" OF CmSlider1
* Create a Tickmark at position 20
  MOVE 20 TO lPos
  INVOKE CmSlider1 "AddTick" 
    USING     lPos 
    RETURNING ReturnValue

Backward compatibility
method name:

None.