Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

[RESOLVED] How to align text vetically?

$
0
0
I'm using a floating textbox to edit the cells of a flexgrid, as the cells in it don't not have the SelStart and SelLength capabilities. Whenever the arrowkeys are pushed the textbox moves accordingly to place itself on the target cell.

The textbox is adjusted to the size of the flexgrid cells -the border widths are taken into account so that it fits exactly inside. However, it turns out the vertical alignment is different, in the textbox text is always printed at the same vertical offset from the top so it becomes vertically misaligned with the text in the flexgrid cells as in the attached figure.

It's just an ugly aesthetic effect, but if it has an easy solution I'd like to fix it.

Name:  grid.png
Views: 40
Size:  1.4 KB
Attached Images
 

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>