Scaling of Textbox Caret
Posted: 25 Feb 2014, 13:21
Hi guys,
we have the following situation. Our unity noesis application main window is made with a wrapping viewbox that contains all other ui elements. The viewbox scales with the window resolution (in a pc standalone app), so all contained elements scale accordingly.
Now to the problem:
The textbox caret (input cursor) seems to be 1 pixel wide. This width does not scale with the viewbox, i.e. if you make the viewbox very large it still stays at 1 pixel width. This would not be a problem but the problem occurs on downscaling. The textbox caret will not be visible on certain display positions (i.e. x-positions). If you input a text, it appears and disappears depending on the width of the inputed characters,
Is there a way to fix this?
I looked into the internet and found some tutorials on how to customize the textbox caret. But it seems to be a lot of effort to achieve this for such a simple thing
http://www.codeproject.com/Articles/633 ... PF-TextBox
Is it possible to manipulate / align the position of the caret? Can you suggest an approach?
best regards,
Andreas
we have the following situation. Our unity noesis application main window is made with a wrapping viewbox that contains all other ui elements. The viewbox scales with the window resolution (in a pc standalone app), so all contained elements scale accordingly.
Now to the problem:
The textbox caret (input cursor) seems to be 1 pixel wide. This width does not scale with the viewbox, i.e. if you make the viewbox very large it still stays at 1 pixel width. This would not be a problem but the problem occurs on downscaling. The textbox caret will not be visible on certain display positions (i.e. x-positions). If you input a text, it appears and disappears depending on the width of the inputed characters,
Is there a way to fix this?
I looked into the internet and found some tutorials on how to customize the textbox caret. But it seems to be a lot of effort to achieve this for such a simple thing
http://www.codeproject.com/Articles/633 ... PF-TextBox
Is it possible to manipulate / align the position of the caret? Can you suggest an approach?
best regards,
Andreas