New feature for EditorGadget

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
RobertRioja
User
User
Posts: 71
Joined: Thu May 02, 2019 3:57 am
Location: USA
Contact:

New feature for EditorGadget

Post by RobertRioja »

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.