Board index » delphi » Fonts in TPW TEdit.
eta...@festival.ed.ac.uk (Fiona Stephen)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Fonts in TPW TEdit.
I am currently writing an application for private use. Basically,
I want to be able to read a file and display it for editting and then print it off or save it. I will deal with the printing later but at the moment I just want to be able to edit it. I have used the distribution stdwnds.pas and stdwnds.res to make use of the TFileWindow object defined there and everything works as it is supposed to. The problem is that I want to change the font of the text so that it is of fixed width (modern) rather than variable width. Is there a simple way to do this? I have traced back through the object heirarchy and cannot find a method or attr or field to change. I have tried overriding the paint method but that is ignored. The only way I can think of tackling it is to define the TEdit object in a resource and change the FONT there. However, doesn't the new object effectively occupy a new window seperate from the parent window containing the edit menu? I am surprised that the manual does not contain the relevant information if such a change is possible and would be equally surprised if it were not. I assume that the same solution would be applied to TStatic objects. Thanks to anyone who replies, Fiona Stephen |