Release Summary : 2. Changes to Existing Features : Character Width Settings for EntryFields Now Definable
 
Share this page                  
Character Width Settings for EntryFields Now Definable
In previous versions of OpenROAD, the setting of the EntryField class's UseWidestCharacter attribute was derived from a call to the underlying window manager, GetTextMetrics. For some typeface settings, such as TF_SYSTEM or TF_COURIER, this logic produced satisfactory results, preventing characters from being clipped in field displays. For other typeface settings mapped to TrueType fonts, GetTextMetrics produced unusable results. In addition, once the width was set for any combination of TF_* typeface, font name, and font size, it could not be changed. This created problems in very narrow EntryField displays, particularly in TableFields and constructs such as calendars.
This version of OpenROAD makes TrueType widest character settings usable in common situations. It also lets you define exact widest character settings so that you can tune your EntryField text displays in different circumstances. These changes are compatible with existing applications and Unicode-enabled applications.