I'm using a prededefined office style lib in my app.
I like to override some appearance in a UltraWinGrid: I have multiline text in a cell. If enter edit mode the text appears selected and it moves a little bit to the right. Sometimes this forces a additional line break and not all the text is visible anymore.
Which appearance property I have to override so that text in edit mode is placed always at the some position (margins,?). Is it possible to change it directly in the style library?
Thanks for any help.
Markus
Hi Mike,
sorry if I explained maybe not correct. I did not modify the ISL file from your default. Therefore I did not expect that the inbox control font affect all controls.
However, playing around with switching GDIplus rendering on/off and different ScaleMode of the form, I'm not able to achieve my requirements as I told you. The text is still moved a little bit in edit mode :-((
It seems that you don't have a solution either. Therefore we can close this thread.
Regards
Hi Markus,
mac_swit said:In the ISL file, the font you mentioned is only set to inbox controls.
That's not the case in the isl file you posted with your sample project. You are indeed setting the font on a few of the inbox controls specifically. But you are also setting the font on the Base UIRole to Segoe UI. So that will affect all of the Infragistics controls in the whole application.
It's the same in the new isl file you posted here.
mac_swit said:Is it possible to turn off all system settings so that the text looks every time in default font (MS Sans Serif 8.25) or any other font I like?
I'm not sure it's possible to stop Windows from changing the font size. This is part of the operating system. You can try setting the ScaleMode on the form. That might do it.
In the ISL file, the font you mentioned is only set to inbox controls. I could not find any other font setting. I have attached the ISL file I'm using. Please tell me where I should remove the font for UltraWinGrid.
The "master" criteria of my column width is the data in band1 (no indentation). The text users can edit and we talking about is in band2 (see attached pics). The last '1' disappears in edit mode. If so, it's even possible to AutoSize while the cell is in edit mode?
Is it possible to turn off all system settings so that the text looks every time in default font (MS Sans Serif 8.25) or any other font I like?
If I use global app style and default font I expect that this is used at runtime. Is that not possible?
Thank you for your help.
The sample application you posted isn't setting any fonts in code, but the isl file you are loading is changing the font to SegoeUI. So that's why the text is changing.
You could remove this from the isl file or use some other font, but your users could have their system settings set to use large fonts or small fonts and that would cause you the same issue.
The best thing to do is to autosize the columns. If you want all of the columns to be the same size, then what you could do is AutoSize each column, then find the one with the largest width and use that width for every column.
I have found a post, where you explained from where the app stylists picks the font:
http://community.infragistics.com/forums/p/55451/285266.aspx#285266
Knowing this, I see in VS2010 that the font is Microsoft Sans Serif 8.25pt (Default). I did not change the font at runtime.
To solve my problem, do you suggest another font to use?