As you add lines to an EditorGadget, the last (bottom) lines might be below the bottom of the gadget's space. It would be better if as you add a line anywhere, the gadget automatically scrolls so that the new line is visible. Maybe this could be and option implemented as a new flag which could be called #PB_SCROLL:
Code: Select all
Result = AddGadgetItem(#Gadget, Position, Text$, ImageID , #PB_SCROLL)
There have been several posts regarding this need, but the solutions that others came up with are either OS dependent or are difficult to implement.