FontDialog.cs 863 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // System.Windows.Forms.FontDialog
  3. //
  4. // Author:
  5. // Joel Basson ([email protected])
  6. //
  7. //
  8. using System.Drawing;
  9. namespace System.Windows.Forms {
  10. /// <summary>
  11. /// Represents a Windows Font Dialog.
  12. ///
  13. /// </summary>
  14. public class FontDialog: Control{
  15. //String name1;
  16. Gtk.FontSelectionDialog font1 = new Gtk.FontSelectionDialog("");
  17. public FontDialog () : base () {
  18. }
  19. public void ShowDialog () {
  20. //Gtk.FontSelection file1 = new Gtk.FontSelection("");
  21. //font1.OkButton.Clicked += new EventHandler (font_selection_ok);
  22. //font1.CancelButton.Clicked += new EventHandler (font_selection_cancel);
  23. font1.Show();
  24. }
  25. //internal void font_selection_cancel (object o, EventArgs args){
  26. //
  27. // font1.Hide();
  28. //}
  29. //internal void font_selection_ok (object o, EventArgs args){
  30. //
  31. // font1.Hide();
  32. //}
  33. }
  34. }