Tom Verhoeff wrote:
On Mon, Aug 08, 2005 at 01:03:55PM +0200, Vincent Snijders wrote:

Tom Verhoeff wrote:

I am in the process of converting a fairly large Delphi (6) project
to Lazarus.  I use FPC 2.0.0 with the most recent Lazarus from SVN
(revision 7490, which compiled fine; though the Lazarus IDE keeps giving
me Access violations, which I simply ignore) on Mac OS X (Darwin).

It would be interesting to know, what causes the access violations.


All I can report is the following output in the terminal from which
lazarus was started:

TApplication.HandleException Access violation
  Stack trace:
  $00120B40
  $00314340
  $0012138C
  $0011FCDC
  $0000F150
  $00122048
  $00116A28
  $001208BC
  $0002FCA4
  $00030138
  $001C0684
  $001C05A4
  $001EBF6C
  $03573198
  $03571F40
  $0357262C
  $044A4C6C
TApplication.HideAllFormsWithStayOnTop :THintWindow
TApplication.HideAllFormsWithStayOnTop :THintWindow


When converting some forms, I run into the problem that for some reason
TEdit objects cannot have Font properties.  I also tried it in a simple
Hello World project, and indeed, the Object Inspector shows no Font
property for a TEdit component on the form.

Only published properties are shown in the object inspector and the TFont property is public, not published.


Well, the obvious next question is:

  *  Why are public properties not handled the same way in Lazarus
     as they seem to be handeled in Delphi?

They are handled the same.

Or maybe Font should be a published property?

It should, however, we have/had problems in setting font info in the different widgetsets. On GTK fonts are merely defind by themes. To avoid problems we have unpublished the font property until it works OK.

Anyway, my Delphi form files have Font properties defined for TEdit objects,
and Delphi generates/reads such .dfm files.  Why does Lazarus treat
the Font property differently?

See above.

Does this mean that I need to manipulate font information for such objects
dynamically (i.e. in the .pas code, rather than in .lfm)?

You can try, but no guaranties. If everything works for you, we can retink of enabling the property.

Marc

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to