Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Font size changing Collapse All
Subject Author Date
Offer Har Mar 4, 2009 - 6:48 PM

Dear Support,


I have s requirement to be able to change the font size, which will change all font sizes in all my application.


Does Prof-UIS support such a thing?


Thanks,


Ron.

Technical Support Mar 9, 2009 - 10:37 AM

Dialogs are loaded from dialog template resources. If you have two or more localized versions of some dialog, their dialog templates contain different localized window texts of dialog controls. As a result, the text length can be very different in each localization and affect to size and position of dialog controls. That is why dialogs and form views should be re-created if you need on-the-fly language changing.

Offer Har Mar 9, 2009 - 10:49 AM

Thanks for the explanation.


1) Do you have a sample of how this is done?


2) What will happen with the Prof-UIS grids? Will they inherit the font size of the dialog, or do I need to set this one manually?


3) What will happen with all other controls like CExtLabel, CExtEdit? do they all derive from the font defined in the dialog template, or are there any exceptions?


Ron.


 


 

Technical Support Mar 10, 2009 - 8:16 AM

We do not have such sample. But this task is not difficult. Just destroy dialogs using the CWnd::DestroyWindow() method or ::DestroyWindow() Win32 API and create the again. The grid controls does not use the parent window font. They always use font provided by the CExtScrollItemWnd::OnSiwGetDefaultFont() method. If the dialog window assigns its font to the child grid window, then you will see dialog font in this grid. If not, then the grid window will use the paint manager’s font which is typically the same as the default font for dialogs. The common controls dropped into dialog template resource will use the dialog font.

Technical Support Mar 5, 2009 - 7:59 AM

The FunnyBars sample application does this on the fly.

Offer Har Mar 5, 2009 - 11:20 AM

This sample changes menus, tooltips, but does not change dialogs - how do I change them as well?


Also - I need to change the font of dialog titles,including the application title itself.


Thanks,


Ron.