Home | OS/2 Software | Rexx | Setting Read Only On/Off for Multiple-Line Entry Fields (VisProRexx)

Setting Read Only On/Off for Multiple-Line Entry Fields (VisProRexx)

Contributed by: Jerry Prather

I initially had a major problem of how to turn on and off the read-only property for multi-line fields. The manual implies that it is possible, but doesn’t show a command. I forget not where I finally found the answer, but the following works:

Set Read-only off:

CALL VpItem window,ITEMID,’SETSTYLEBIT’,5,0

Set Read-only on:

CALL VpItem window,ITEMID,’SETSTYLEBIT’,5,1