2006-09-24, 02:55
is it possible to place text in a textbox witout having all of the lefthand whitespace stripped off of each line I've written a workaround for this by inserting one non space charachter followed by 7 spaces and then appying expandtabs(8) to each line before adding them to the textbox and then positioning the left hand margin off of the screen so the left hand column of charachters can't be seen and all tabs appear correctly. But this seems a poor way of handling things, but it works.
Also when a textbox is created on a system where the video calibration has been modified to fit a given screens overscan, the size of the textbox is modified to fit within the new display size is there a command to get the actual size the text box is resized to or does anyone know an equation to find the exact values. I'm currently using textbox.width * (calibrated.width / full.width ) which seems fairlt good on pixel ratios of 1 but varies as the pixel ratio drifts further from 1. I'm using this to calculate the number of charachters I can have per line for my word wrapping.
Also when a textbox is created on a system where the video calibration has been modified to fit a given screens overscan, the size of the textbox is modified to fit within the new display size is there a command to get the actual size the text box is resized to or does anyone know an equation to find the exact values. I'm currently using textbox.width * (calibrated.width / full.width ) which seems fairlt good on pixel ratios of 1 but varies as the pixel ratio drifts further from 1. I'm using this to calculate the number of charachters I can have per line for my word wrapping.