Hi
I am using an UltraTextEditor in a gridbaglayout panel. its is set to dock so that the UTE expands to fill the space given to it.
I have set multiline on so that it does actually fill the space and have set Text Align to middle and centre, hoping that the text will sit in the middle of the UTE in the same way that it does with a label.
However it doesn't, the text sits in the middle of the horizontal axis, but at the top of the box. Is there anything I can do to make it sit in the middle of the vertical axis in the same way an ultralabel works?
My application resizes the windows based on the screen size, and on big displays it looks a bit rubbish.
I am also looking for a way to get the font to resize based on the size of the UTE control so it propotionally readjusts according to the space it has.
Thanks in advance
I'm honestly not sure if CreationFilters or DrawFilters have any detailed documentation anywhere. They are basically for advanced users who want to customize the UIElements of a control.
It sounds like what you are describing would be easier to accomplish by imply generating an image (Bitmap) on the fly.
Hi Mike
Originally I was using an ultra label, but there are times when it is easier to key the value in.
Can you point me to documentation on using Creation and Draw filters, the next thing I want to do is create a sizable button with a scaling vector based Arrow in it, as bitmaps get lumpy and dont scale automatically
Hi Larry,
Glad to hear it.
Out of curiosity - if this is a touchscreen application, then why does the UltraTextEditor ever have to enter edit mode? And if it does not have to enter edit mode, why use an UltraTextEditor? Wouldn't an UltraLabel or UltraFormattedLinkLabel make more sense? Using one of those controls, you would not need a CreationFilter.
Hello Mike
I got it to work, Many Thanks!
It would be nice if it worked in edit mode as well but the results are excellent!
I am having a go but I'm not quite sure how to do this creation filter on anUltraTextEditor
I am creating a user control that is basically a number spinner optimised for touch screen epos interfaces (it has big buttons!) and the UltraTextEditor is the Text box part of the control