fd2pascal.1 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .TH fd2pascal 1 "12 November 2004" "Free Pascal" "forms description to pascal conversion"
  2. .SH NAME
  3. fd2pascal \- Free Pascal forms description to pascal program converter
  4. .SH SYNOPSIS
  5. .B fd2pascal [-compensate] [-altformat] [-main] [-callback] filename
  6. .SH DESCRIPTION
  7. .B fd2pascal
  8. reads a XForms designer file (
  9. .I .fd
  10. ) and creates pascal code to create the form
  11. described in the file. The pascal code is written to a file with the same
  12. name as the input file, but with extension
  13. .I .pp
  14. if a file with that name already exists, then it will be renamed to a file
  15. with the extension
  16. .I .bak
  17. appended.
  18. .SH OPTIONS
  19. fd2pascal has a small number of options to control its behaviour:
  20. .TP
  21. .B \-altformat
  22. By default, a record type is emitted for the form definition, with a field
  23. for each widget (object) on the form. The alternate form declares a global
  24. variable for the form and each widget on the form.
  25. .TP
  26. .B \-compensate
  27. If this option is given then a call to fl_adjust_form_size is emitted after
  28. the form is created.
  29. .TP
  30. .B \-callback
  31. If this option is given, then a callback procedure is generated for each
  32. widget on the form.
  33. .TP
  34. .B \-main
  35. By default, a unit is created which can be included in the uses clause of
  36. a program. If this option is specified, a program file is emitted instead.
  37. .SH SEE ALSO
  38. .IP
  39. .BR ppc386 (1)