Textarea tab widths "broken"

BlitzMax Forums/BlitzMax GUI Programming/Textarea tab widths "broken"

Yup Brucey, that's what *I* expected it to do. But it doesn't (at least on win32, but from what skid says, everywhere else), the tabs always keep the same screen size. Try the example above and you'll see it happening if you select one of the tabs in the textbox.

I think what skid's saying is right for proportional fonts. I think you do want the tab size to be based on a screen size, and for that size to be fixed and not vary with font size. It's a bit more questionable for fixed width fonts, but probably stil correct.

I think the ideal would be to be able to choose whether it is working in pixels, or in characters. At the moment, it's neither! If I set it to 4, I get an approx 30-40 pixel wide tab. So what does "4" mean?

I'd personally like to see a SetTextAreaTabs size , format option, where I can specify if the tab is based on pixels, or characters. However, I can work around this by setting the tab size based on the current font width (and multiplying it by some magic number, yet to be determined).