Is it posible to get the line number of the first visible line and how many are visible in the GambasEditor? Also what should the ToPos, ToLine and ToColumn return as integer. I did found something in the src but cryptic QMAX(QMIN(pos-.lines)) ;( Ron