Buchempfehlung
MySQL kurz & gut
MySQL kurz & gut
Das preiswerte Taschen- buch stellt MySQL-rele- vante Inhalte systematisch und knapp dar, sodass es sich optimal zum Nach- schlagen beim Pro- grammieren eignet. [Mehr Infos...]
FreeBASIC-Chat
Es sind Benutzer im FreeBASIC-Chat online.
(Stand:  )
FreeBASIC bei Twitter
Twitter FreeBASIC-Nachrichten jetzt auch über Twitter erhalten. Follow us!

fb:porticula NoPaste

Info
Info / Hilfe
Liste
Übersicht / Liste
Neu
Datei hochladen
Suche
Quellcode suchen
Download
Dateidownload

GTK Pointer Problem - 3 mte_option_103.bas

Uploader:Mitgliedrieselkalk
Datum/Zeit:03.08.2010 21:00:31

'- rieselkalk 2010
'- mte_option_103.bas

'- An diesem Modul habe ich mir fast die Zähne ausgebissen. Wie bekommt man
'- die Daten zum Abschluß in die übergebenen Variable. Jetzt wo es fertig ist,
'- ist es ganz Simple. Dies ist so etwas, wo ich meinte, das viele Dinge nicht
'- in irgend welchen Tutorials stehen. Des weiteren kann man hier an diesem Modul
'- auch ganz gut den Unterschied zur Windows Programmierung mit VB erkennen.
' =============================================================================
'- UTF8 Zeichensatz Ä 195 132, Ö 195 150, Ü 195 156, ß 195 159, ä 195 164, ö 195 182, ü 195 188

Enum
  E_ZOLL
  E_ZENTIMETER
  E_PIXEL
  E_PICA
End Enum

Enum
  E_WRAP_NONE
  E_WRAP_CHAR
  E_WRAP_WORD
End Enum

Enum
  E_JUSTIFY_LEFT
  E_JUSTIFY_RIGHT
  E_JUSTIFY_CENTER
  E_JUSTIFY_FILL
End Enum

'- Type für die Einstellung (Option) Daten
'- Für das ganze Programm wichtig
Type t_mte_od
    As gint tooltips                                                        '- Tooltips EIN/AUS
    As gint editable
    As gint cursor_visible
    As gint measurement_unit                                        '- Maßeinheit für das Lineal
    As gint wrap_mode                                                   '- Art des Zeilenumbruchs
    As gchar Ptr pixels_above_lines                         '- Der Abstand vor einem Absatz in Pixel
    As gchar Ptr pixels_below_lines                         '- Der Abstand nach einem Absatz in Pixel
    As gchar Ptr    pixels_inside_wrap                      '- Der Abstand zwischen aufeinander umbrochenen Zeilen
    As gint justification                                           '- Satzausrichtung
    As gchar Ptr left_margin                                        '- Breite des linken Randes
    As gchar Ptr right_margin                                       '- Breite des rechten Randes
    As gchar Ptr indent                                                 '- Einrücktiefe von Absätzen
End Type

'- Option Variablen anlegen
  Dim Shared mte_od As t_mte_od
  Dim Shared p_mte_od As t_mte_od Ptr

'- Option Variablen Wert zuweisen
  p_mte_od = @mte_od
    p_mte_od->tooltips = TRUE                                        '- Tooltips EIN/AUS
    p_mte_od->measurement_unit = E_ZENTIMETER        '- Maßeinheit für das Lineal
    p_mte_od->wrap_mode =    E_WRAP_CHAR                     '- Art des Zeilenumbruchs
    p_mte_od->pixels_above_lines =   @"10"               '- Der Abstand vor einem Absatz in Pixel
    p_mte_od->pixels_below_lines =   @"10"               '- Der Abstand nach einem Absatz in Pixel
    p_mte_od->pixels_inside_wrap = @"10"             '- Der Abstand zwischen aufeinander umbrochenen Zeilen
    p_mte_od->justification =    E_JUSTIFY_LEFT      '- Satzausrichtung
    p_mte_od->left_margin =  @"10"                               '- Breite des linken Randes
    p_mte_od->right_margin = @"10"                           '- Breite des rechten Randes
    p_mte_od->indent = @"10"                                     '- Einrücktiefe von Absätzen
  p_mte_od->editable = TRUE
  p_mte_od->cursor_visible = TRUE




'- Nur für dieses Modul wichtig
'- Type für den Einstellungs (Option) Dialog
'- Alle Widget die mit der Dateneingabe zu tun haben
Type t_mte_o
    As t_mte_od Ptr p_daten

'- Notebook Blatt Maßeinheiten
  As GtkWidget Ptr p_radiobutton_zoll
  As GtkWidget Ptr p_radiobutton_zentimeter
  As GtkWidget Ptr p_radiobutton_punkte
  As GtkWidget Ptr p_radiobutton_pica

'- Notebook Blatt Zeilenumbruch
  As GtkWidget Ptr p_radiobutton_none
  As GtkWidget Ptr p_radiobutton_zeichenweiser
  As GtkWidget Ptr p_radiobutton_wortweise

'- Notebook Blatt Abstand vor einem Absatz in Pixel
  As GtkWidget Ptr p_entry_abstand_zwischen
  As GtkWidget Ptr p_entry_abstand_vor
  As GtkWidget Ptr p_entry_abstand_nach

'- Notebook Blatt Satzausrichtung
  As GtkWidget Ptr p_radiobutton_links
  As GtkWidget Ptr p_radiobutton_zentriert
  As GtkWidget Ptr p_radiobutton_rechts
  As GtkWidget Ptr p_radiobutton_blocksatz

'- Notebook Blatt Ränder
  As GtkWidget Ptr p_entry_rand_links
  As GtkWidget Ptr p_entry_rand_rechts
  As GtkWidget Ptr p_entry_rand_tiefe

'- Notebook Blatt Sonstiges
  As GtkWidget Ptr p_checkbutton_tooltip
  As GtkWidget Ptr p_checkbutton_editable
  As GtkWidget Ptr p_checkbutton_cursor_visible
End Type


Sub mte_on_menuitem_option_okbutton_activate Cdecl (ByVal widget as GtkWidget ptr, Byref p_ud as t_mte_o Ptr)
'Sub mte_on_menuitem_option_okbutton_activate Cdecl (ByVal widget as GtkWidget ptr, ByVal p_ud as t_mte_o Ptr)
  Print "++++++++++++++++++++++++++++++++++++"
  Print "okbutton"
  Print "------------------------------------"
'  g_print ("%s", p_ud->p_daten->left_margin)
  Print ""
'  gtk_entry_set_text (GTK_ENTRY (p_ud->p_entry_rand_links), "Hallo")
  gtk_entry_set_text (GTK_ENTRY (p_ud->p_entry_rand_links), ("999"))
End Sub

Sub mte_on_menuitem_option_chancelbutton_activate Cdecl (ByVal widget as GtkWidget ptr, Byval p_ud as t_mte_od Ptr)
  Print "************************************"
  Print "chancelbutton"
  Print "------------------------------------"
  g_print ("%s", p_ud->left_margin)
  Print ""

End Sub


Function mte_ShowOptionDialog (ByRef p_data As t_mte_od Ptr) As gint

  Dim As GtkWidget Ptr p_dialog_1
  Dim As GtkWidget Ptr p_dialog_vbox_1
  Dim As GtkWidget Ptr p_notebook_1

'- Notebook Blatt Maßeinheiten
  Dim As GtkWidget Ptr p_hbox_11
  Dim As GtkWidget Ptr p_frame_11
  Dim As GtkWidget Ptr p_label_11
  Dim As GtkWidget Ptr p_label_1x
  Dim As GtkWidget Ptr p_alignment_11
  Dim As GtkWidget Ptr p_vbox_11
  Dim As GSList Ptr p_masseinheiten_group = NULL

  Dim As GtkWidget Ptr p_frame_12
  Dim As GtkWidget Ptr p_label_12
  Dim As GtkWidget Ptr p_alignment_12
  Dim As GtkWidget Ptr p_vbox_12

'- Notebook Blatt Zeilenumbruch
  Dim As GtkWidget Ptr p_hbox_21
  Dim As GtkWidget Ptr p_frame_21
  Dim As GtkWidget Ptr p_label_21
  Dim As GtkWidget Ptr p_label_2x
  Dim As GtkWidget Ptr p_alignment_21
  Dim As GtkWidget Ptr p_vbox_21
  Dim As GSList Ptr p_zeilenumbruch_group = NULL

  Dim As GtkWidget Ptr p_frame_22
  Dim As GtkWidget Ptr p_label_22
  Dim As GtkWidget Ptr p_alignment_22
  Dim As GtkWidget Ptr p_vbox_22

'- Notebook Blatt Abstand vor einem Absatz in Pixel
  Dim As GtkWidget Ptr p_hbox_31
  Dim As GtkWidget Ptr p_frame_31
  Dim As GtkWidget Ptr p_fixed_31
  Dim As GtkWidget Ptr p_label_abstand_vor
  Dim As GtkWidget Ptr p_label_abstand_zwischen
  Dim As GtkWidget Ptr p_label_abstand_nach
  Dim As GtkWidget Ptr p_label_31

  Dim As GtkWidget Ptr p_frame_32
  Dim As GtkWidget Ptr p_label_32
  Dim As GtkWidget Ptr p_label_3x

'- Notebook Blatt Satzausrichtung
  Dim As GtkWidget Ptr p_hbox_41
  Dim As GtkWidget Ptr p_frame_41
  Dim As GtkWidget Ptr p_vbox_41
  Dim As GSList Ptr p_ausrichtung_group = NULL
  Dim As GtkWidget Ptr p_label_41

  Dim As GtkWidget Ptr p_frame_42
  Dim As GtkWidget Ptr p_label_42
  Dim As GtkWidget Ptr p_label_4x

'- Notebook Blatt Ränder
  Dim As GtkWidget Ptr p_hbox_51
  Dim As GtkWidget Ptr p_frame_51
  Dim As GtkWidget Ptr p_fixed_51
  Dim As GtkWidget Ptr p_label_rand_tiefe
  Dim As GtkWidget Ptr p_label_rand_links
  Dim As GtkWidget Ptr p_label_rand_rechts
  Dim As GtkWidget Ptr p_label_51

  Dim As GtkWidget Ptr p_frame_52
  Dim As GtkWidget Ptr p_label_52
  Dim As GtkWidget Ptr p_label_5x

'- Notebook Blatt Sonstiges
  Dim As GtkWidget Ptr p_hbox_61
  Dim As GtkWidget Ptr p_frame_61
  Dim As GtkWidget Ptr p_vbox_61
  Dim As GtkWidget Ptr p_label_61

  Dim As GtkWidget Ptr p_frame_62
  Dim As GtkWidget Ptr p_label_62
  Dim As GtkWidget Ptr p_label_6x

  Dim As GtkTooltips Ptr p_tooltips_1

'- Button und Sonstiges
  Dim As GtkWidget Ptr p_dialog_action_area_1
  Dim As GtkWidget Ptr p_cancelbutton_1
  Dim As GtkWidget Ptr p_okbutton_1

  Dim p_msg As gchar Ptr

'- Pointer für Dateneingabe Widget's anlegen
  Dim mte_o As t_mte_o
  Dim p_mte_o As t_mte_o Ptr

  p_mte_o = @mte_o
'- Daten übernahme  in den Widget's Pointer
  p_mte_o->p_daten = p_data

  mte_ShowOptionDialog = TRUE
  p_tooltips_1 = gtk_tooltips_new()

  p_dialog_1 = gtk_dialog_new ()
  gtk_widget_set_name (p_dialog_1, "p_dialog_1")
  gtk_window_set_title (GTK_WINDOW (p_dialog_1), ("Einstellungen"))
  gtk_window_set_modal (GTK_WINDOW (p_dialog_1), TRUE)
  gtk_window_set_resizable (GTK_WINDOW (p_dialog_1), FALSE)
  gtk_window_set_position (GTK_WINDOW (p_dialog_1), GTK_WIN_POS_CENTER)

  p_dialog_vbox_1 = GTK_DIALOG (p_dialog_1)->vbox
  gtk_widget_set_name (p_dialog_vbox_1, "p_dialog_vbox_1")
  gtk_widget_show (p_dialog_vbox_1)

  p_notebook_1 = gtk_notebook_new ()
  gtk_widget_set_name (p_notebook_1, "p_notebook_1")
  gtk_widget_show (p_notebook_1)
  gtk_box_pack_start (GTK_BOX (p_dialog_vbox_1), p_notebook_1, TRUE, TRUE, 0)

'--------------------
'- 1.1 Notebook eintrag
'- Masseinheiten
  p_hbox_11 = gtk_hbox_new (FALSE, 0)
  gtk_widget_set_name (p_hbox_11, "p_hbox_11")
  gtk_widget_show (p_hbox_11)
  gtk_container_add (GTK_CONTAINER (p_notebook_1), p_hbox_11)
  gtk_container_set_border_width (GTK_CONTAINER (p_hbox_11), 3)

  p_frame_11 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_11, "p_frame_11")
  gtk_widget_show (p_frame_11)
  gtk_box_pack_start (GTK_BOX (p_hbox_11), p_frame_11, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_11), 3)

  p_label_11 = gtk_label_new ("Masseinheiten")
  gtk_widget_set_name (p_label_11, "p_label_11")
  gtk_widget_show (p_label_11)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_11), p_label_11)
  gtk_label_set_use_markup (GTK_LABEL (p_label_11), TRUE)
  gtk_label_set_justify (GTK_LABEL (p_label_11), GTK_JUSTIFY_LEFT)

  p_label_1x= gtk_label_new ("Einheiten")
  gtk_widget_set_name (p_label_1x, "p_label_1x")
  gtk_widget_show (p_label_1x)
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (p_notebook_1), _
                              gtk_notebook_get_nth_page (GTK_NOTEBOOK (p_notebook_1), 0), p_label_1x)
  gtk_label_set_justify (GTK_LABEL (p_label_1x), GTK_JUSTIFY_LEFT)

  p_alignment_11 = gtk_alignment_new (0.5, 0.5, 1, 1)
  gtk_widget_set_name (p_alignment_11, "p_alignment_11")
  gtk_widget_show (p_alignment_11)
  gtk_container_add (GTK_CONTAINER (p_frame_11), p_alignment_11)
  gtk_container_set_border_width (GTK_CONTAINER (p_alignment_11), 12)

  p_vbox_11 = gtk_vbox_new (FALSE, 0)
  gtk_widget_set_name (p_vbox_11, "p_vbox_11")
  gtk_widget_show (p_vbox_11)
  gtk_container_add (GTK_CONTAINER (p_alignment_11), p_vbox_11)

  p_mte_o->p_radiobutton_zoll = gtk_radio_button_new_with_mnemonic (NULL, ("Zoll"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_zoll, "p_radiobutton_zoll")
  gtk_widget_show (p_mte_o->p_radiobutton_zoll)
  gtk_box_pack_start (GTK_BOX (p_vbox_11), p_mte_o->p_radiobutton_zoll, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_zoll), p_masseinheiten_group)
  p_masseinheiten_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_zoll))
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_radiobutton_zoll, _
                       ("Zeigt das Lineal in Zoll an"), NULL)

  p_mte_o->p_radiobutton_zentimeter = gtk_radio_button_new_with_mnemonic (NULL, ("Zentimeter"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_zentimeter, "p_radiobutton_zentimeter")
  gtk_widget_show (p_mte_o->p_radiobutton_zentimeter)
  gtk_box_pack_start (GTK_BOX (p_vbox_11), p_mte_o->p_radiobutton_zentimeter, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_zentimeter), p_masseinheiten_group)
  p_masseinheiten_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_zentimeter))
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_radiobutton_zentimeter, _
                       ("Zeigt das Lineal in Zentimeter an"), NULL)

'- p_radiobutton_zentimeter aktivieren
  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_zentimeter),TRUE)

  p_mte_o->p_radiobutton_punkte = gtk_radio_button_new_with_mnemonic (NULL, ("Punkte"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_punkte, "p_radiobutton_punkte")
  gtk_widget_show (p_mte_o->p_radiobutton_punkte)
  gtk_box_pack_start (GTK_BOX (p_vbox_11), p_mte_o->p_radiobutton_punkte, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_punkte), p_masseinheiten_group)
  p_masseinheiten_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_punkte))
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_radiobutton_punkte, _
                       ("Zeigt das Lineal in Punkte an"), NULL)

  p_mte_o->p_radiobutton_pica = gtk_radio_button_new_with_mnemonic (NULL, ("Pica"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_pica, "p_radiobutton_pica")
  gtk_widget_show (p_mte_o->p_radiobutton_pica)
  gtk_box_pack_start (GTK_BOX (p_vbox_11), p_mte_o->p_radiobutton_pica, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_pica), p_masseinheiten_group)
  p_masseinheiten_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_pica))
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_radiobutton_pica, _
                       ("Zeigt das Lineal in Pica an"), NULL)

'--------------------
'- 1.2 Notebook eintrag
'- Masseinheiten sonstiges
  p_frame_12 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_12, "p_frame_12")
  gtk_widget_show (p_frame_12)
  gtk_box_pack_start (GTK_BOX (p_hbox_11), p_frame_12, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_12), 3)

  p_label_12 = gtk_label_new ("#")
  gtk_widget_set_name (p_label_12, "p_label_12")
  gtk_widget_show (p_label_12)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_12), p_label_12)
  gtk_label_set_use_markup (GTK_LABEL (p_label_12), TRUE)
  gtk_label_set_justify (GTK_LABEL (p_label_12), GTK_JUSTIFY_LEFT)

  p_alignment_12 = gtk_alignment_new (0.5, 0.5, 1, 1)
  gtk_widget_set_name (p_alignment_12, "p_alignment_12")
  gtk_widget_show (p_alignment_12)
  gtk_container_add (GTK_CONTAINER (p_frame_12), p_alignment_12)

  p_vbox_12 = gtk_vbox_new (FALSE, 0)
  gtk_widget_set_name (p_vbox_12, "p_vbox_12")
  gtk_widget_show (p_vbox_12)
  gtk_container_add (GTK_CONTAINER (p_alignment_12), p_vbox_12)

'--------------------
'- 2.1 Notebook eintrag
'- Zeilenumbruch
  p_hbox_21 = gtk_hbox_new (FALSE, 0)
  gtk_widget_set_name (p_hbox_21, "p_hbox_21")
  gtk_widget_show (p_hbox_21)
  gtk_container_add (GTK_CONTAINER (p_notebook_1), p_hbox_21)
  gtk_container_set_border_width (GTK_CONTAINER (p_hbox_21), 3)

  p_frame_21 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_21, "p_frame_21")
  gtk_widget_show (p_frame_21)
  gtk_box_pack_start (GTK_BOX (p_hbox_21), p_frame_21, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_21), 3)

  p_label_21 = gtk_label_new ("Zeilenumbruch")
  gtk_widget_set_name (p_label_21, "p_label_21")
  gtk_widget_show (p_label_21)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_21), p_label_21)
  gtk_label_set_use_markup (GTK_LABEL (p_label_21), TRUE)
  gtk_label_set_justify (GTK_LABEL (p_label_21), GTK_JUSTIFY_LEFT)

  p_label_2x = gtk_label_new ("Umbruch")
  gtk_widget_set_name (p_label_2x, "p_label_2x")
  gtk_widget_show (p_label_2x)
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (p_notebook_1), _
                              gtk_notebook_get_nth_page (GTK_NOTEBOOK (p_notebook_1), 1), p_label_2x)
  gtk_label_set_justify (GTK_LABEL (p_label_2x), GTK_JUSTIFY_LEFT)

  p_alignment_21 = gtk_alignment_new (0.5, 0.5, 1, 1)
  gtk_widget_set_name (p_alignment_21, "p_alignment_21")
  gtk_widget_show (p_alignment_21)
  gtk_container_add (GTK_CONTAINER (p_frame_21), p_alignment_21)

  p_vbox_21 = gtk_vbox_new (FALSE, 0)
  gtk_widget_set_name (p_vbox_21, "p_vbox_21")
  gtk_widget_show (p_vbox_21)
  gtk_container_add (GTK_CONTAINER (p_alignment_21), p_vbox_21)
  gtk_container_set_border_width (GTK_CONTAINER (p_vbox_21), 12)

  p_mte_o->p_radiobutton_none = gtk_radio_button_new_with_mnemonic (NULL, ("Kein Umbruch"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_none, "p_radiobutton_none")
  gtk_widget_show (p_mte_o->p_radiobutton_none)
  gtk_box_pack_start (GTK_BOX (p_vbox_21), p_mte_o->p_radiobutton_none, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_none), p_zeilenumbruch_group)
  p_zeilenumbruch_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_none))

  p_mte_o->p_radiobutton_zeichenweiser = gtk_radio_button_new_with_mnemonic (NULL, ("Zeicheneiser Umbruch"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_zeichenweiser, "p_radiobutton_zeichenweiser")
  gtk_widget_show (p_mte_o->p_radiobutton_zeichenweiser)
  gtk_box_pack_start (GTK_BOX (p_vbox_21), p_mte_o->p_radiobutton_zeichenweiser, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_zeichenweiser), p_zeilenumbruch_group)
  p_zeilenumbruch_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_zeichenweiser))

'- p_radiobutton_zeichenweiser aktivieren
  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_zeichenweiser),TRUE)

  p_mte_o->p_radiobutton_wortweise = gtk_radio_button_new_with_mnemonic (NULL, ("Wortweiser Umbruch"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_wortweise, "p_radiobutton_wortweise")
  gtk_widget_show (p_mte_o->p_radiobutton_wortweise)
  gtk_box_pack_start (GTK_BOX (p_vbox_21), p_mte_o->p_radiobutton_wortweise, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_wortweise), p_zeilenumbruch_group)
  p_zeilenumbruch_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_wortweise))

'--------------------
'- 2.2 Notebook eintrag
'- Zeilenumbruch sonstiges
  p_frame_22 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_22, "p_frame_22")
  gtk_widget_show (p_frame_22)
  gtk_box_pack_start (GTK_BOX (p_hbox_21), p_frame_22, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_22), 3)

  p_label_22 = gtk_label_new ("#")
  gtk_widget_set_name (p_label_22, "p_label_22")
  gtk_widget_show (p_label_22)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_22), p_label_22)
  gtk_label_set_use_markup (GTK_LABEL (p_label_22), TRUE)
  gtk_label_set_justify (GTK_LABEL (p_label_22), GTK_JUSTIFY_LEFT)

  p_alignment_22 = gtk_alignment_new (0.5, 0.5, 1, 1)
  gtk_widget_set_name (p_alignment_22, "p_alignment_22")
  gtk_widget_show (p_alignment_22)
  gtk_container_add (GTK_CONTAINER (p_frame_22), p_alignment_22)

  p_vbox_22 = gtk_vbox_new (FALSE, 0)
  gtk_widget_set_name (p_vbox_22, "p_vbox_22")
  gtk_widget_show (p_vbox_22)
  gtk_container_add (GTK_CONTAINER (p_alignment_22), p_vbox_22)
  gtk_container_set_border_width (GTK_CONTAINER (p_vbox_22), 12)

'- Dialog action Area
  p_dialog_action_area_1 = GTK_DIALOG (p_dialog_1)->action_area
  gtk_widget_set_name (p_dialog_action_area_1, "p_dialog_action_area_1")
  gtk_widget_show (p_dialog_action_area_1)
  gtk_button_box_set_layout (GTK_BUTTON_BOX (p_dialog_action_area_1), GTK_BUTTONBOX_END)

'- Dialog action Button
  p_cancelbutton_1 = gtk_button_new_from_stock ("gtk-cancel")
  gtk_widget_set_name (p_cancelbutton_1, "p_cancelbutton_1")
  gtk_widget_show (p_cancelbutton_1)
  gtk_dialog_add_action_widget (GTK_DIALOG (p_dialog_1), p_cancelbutton_1, GTK_RESPONSE_CANCEL)
  GTK_WIDGET_SET_FLAGS (p_cancelbutton_1, GTK_CAN_DEFAULT)

  p_okbutton_1 = gtk_button_new_from_stock ("gtk-ok")
  gtk_widget_set_name (p_okbutton_1, "p_okbutton_1")
  gtk_widget_show (p_okbutton_1)
  gtk_dialog_add_action_widget (GTK_DIALOG (p_dialog_1), p_okbutton_1, GTK_RESPONSE_OK)
  GTK_WIDGET_SET_FLAGS (p_okbutton_1, GTK_CAN_DEFAULT)

'--------------------
'- 3.1 Notebook eintrag Absatz
'- Der Abstand vor einem Absatz in Pixel
  p_hbox_31 = gtk_hbox_new (FALSE, 0)
  gtk_widget_set_name (p_hbox_31, "p_hbox_31")
  gtk_widget_show (p_hbox_31)
  gtk_container_add (GTK_CONTAINER (p_notebook_1), p_hbox_31)

  p_frame_31 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_31, "p_frame_31")
  gtk_widget_show (p_frame_31)
  gtk_box_pack_start (GTK_BOX (p_hbox_31), p_frame_31, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_31), 3)

  p_fixed_31 = gtk_fixed_new ()
  gtk_widget_set_name (p_fixed_31, "p_fixed_31")
  gtk_widget_show (p_fixed_31)
  gtk_container_add (GTK_CONTAINER (p_frame_31), p_fixed_31)
  gtk_container_set_border_width (GTK_CONTAINER (p_fixed_31), 12)

  p_mte_o->p_entry_abstand_zwischen = gtk_entry_new_with_max_length (6)
  gtk_widget_set_name (p_mte_o->p_entry_abstand_zwischen, "p_entry_abstand_zwischen")
  gtk_widget_show (p_mte_o->p_entry_abstand_zwischen)
  gtk_fixed_put (GTK_FIXED (p_fixed_31), p_mte_o->p_entry_abstand_zwischen, 128, 32)
  gtk_widget_set_usize (p_mte_o->p_entry_abstand_zwischen, 50, 20)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_entry_abstand_zwischen, _
  ("Der Abstand zwischen aufeinanderfolgenden umbrochenen Zeilen in einem Absatz in Pixel"), NULL)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_abstand_zwischen), ("0"))
  gtk_entry_set_invisible_char (GTK_ENTRY (p_mte_o->p_entry_abstand_zwischen), 9679)

  p_mte_o->p_entry_abstand_vor = gtk_entry_new_with_max_length (6)
  gtk_widget_set_name (p_mte_o->p_entry_abstand_vor, "p_entry_abstand_vor")
  gtk_widget_show (p_mte_o->p_entry_abstand_vor)
  gtk_fixed_put (GTK_FIXED (p_fixed_31), p_mte_o->p_entry_abstand_vor, 128, 0)
  gtk_widget_set_usize (p_mte_o->p_entry_abstand_vor, 50, 20)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_entry_abstand_vor, _
                       ("Der Abstand vor einem Absatz in Pixel"), NULL)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_abstand_vor), ("0"))
  gtk_entry_set_invisible_char (GTK_ENTRY (p_mte_o->p_entry_abstand_vor), 9679)

  p_mte_o->p_entry_abstand_nach = gtk_entry_new_with_max_length (6)
  gtk_widget_set_name (p_mte_o->p_entry_abstand_nach, "p_entry_abstand_nach")
  gtk_widget_show (p_mte_o->p_entry_abstand_nach)
  gtk_fixed_put (GTK_FIXED (p_fixed_31), p_mte_o->p_entry_abstand_nach, 128, 64)
  gtk_widget_set_usize (p_mte_o->p_entry_abstand_nach, 50, 20)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_entry_abstand_nach, _
                       ("Der Abstand nach einem Absatz in Pixel"), NULL)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_abstand_nach), ("0"))
  gtk_entry_set_invisible_char (GTK_ENTRY (p_mte_o->p_entry_abstand_nach), 9679)
  gtk_entry_set_width_chars (GTK_ENTRY (p_mte_o->p_entry_abstand_nach), 6)

  p_label_abstand_vor = gtk_label_new (("Vor dem Absatz:"))
  gtk_widget_set_name (p_label_abstand_vor, "p_label_abstand_vor")
  gtk_widget_show (p_label_abstand_vor)
  gtk_fixed_put (GTK_FIXED (p_fixed_31), p_label_abstand_vor, 0, 0)
  gtk_widget_set_usize (p_label_abstand_vor, 132, 20)
  gtk_label_set_justify (GTK_LABEL (p_label_abstand_vor), GTK_JUSTIFY_RIGHT)

  p_label_abstand_zwischen = gtk_label_new (("Zwischen den Zeilen:"))
  gtk_widget_set_name (p_label_abstand_zwischen, "p_label_abstand_zwischen")
  gtk_widget_show (p_label_abstand_zwischen)
  gtk_fixed_put (GTK_FIXED (p_fixed_31), p_label_abstand_zwischen, 0, 32)
  gtk_widget_set_usize (p_label_abstand_zwischen, 132, 20)
  gtk_label_set_justify (GTK_LABEL (p_label_abstand_zwischen), GTK_JUSTIFY_RIGHT)

  p_label_abstand_nach = gtk_label_new (("Nach dem Absatz:"))
  gtk_widget_set_name (p_label_abstand_nach, "p_label_abstand_nach")
  gtk_widget_show (p_label_abstand_nach)
  gtk_fixed_put (GTK_FIXED (p_fixed_31), p_label_abstand_nach, 0, 64)
  gtk_widget_set_usize (p_label_abstand_nach, 132, 20)
  gtk_label_set_justify (GTK_LABEL (p_label_abstand_nach), GTK_JUSTIFY_RIGHT)

  p_label_31 = gtk_label_new (("Absatzabstand"))
  gtk_widget_set_name (p_label_31, "p_label_31")
  gtk_widget_show (p_label_31)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_31), p_label_31)
  gtk_label_set_justify (GTK_LABEL (p_label_31), GTK_JUSTIFY_LEFT)

  p_frame_32 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_32, "p_frame_32")
  gtk_widget_show (p_frame_32)
  gtk_box_pack_start (GTK_BOX (p_hbox_31), p_frame_32, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_32), 3)

  p_label_32 = gtk_label_new ("#")
  gtk_widget_set_name (p_label_32, "p_label_32")
  gtk_widget_show (p_label_32)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_32), p_label_32)
  gtk_label_set_justify (GTK_LABEL (p_label_32), GTK_JUSTIFY_LEFT)

  p_label_3x = gtk_label_new ("Abstand")
  gtk_widget_set_name (p_label_3x, "p_label_3x")
  gtk_widget_show (p_label_3x)
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (p_notebook_1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (p_notebook_1), 2), p_label_3x)
  gtk_label_set_justify (GTK_LABEL (p_label_3x), GTK_JUSTIFY_LEFT)

'--------------------
'- 4.1 Notebook eintrag Satzausrichtung
'- Die Art der Satzausrichtung
  p_hbox_41 = gtk_hbox_new (FALSE, 0)
  gtk_widget_set_name (p_hbox_41, "p_hbox_41")
  gtk_widget_show (p_hbox_41)
  gtk_container_add (GTK_CONTAINER (p_notebook_1), p_hbox_41)

  p_frame_41 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_41, "p_frame_41")
  gtk_widget_show (p_frame_41)
  gtk_box_pack_start (GTK_BOX (p_hbox_41), p_frame_41, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_41), 3)

  p_vbox_41 = gtk_vbox_new (FALSE, 0)
  gtk_widget_set_name (p_vbox_41, "p_vbox_41")
  gtk_widget_show (p_vbox_41)
  gtk_container_add (GTK_CONTAINER (p_frame_41), p_vbox_41)
  gtk_container_set_border_width (GTK_CONTAINER (p_vbox_41), 12)

  p_msg  = g_strconcat(@"Linksb", @Chr(195), @Chr(188), @"ndig" ,NULL)
  p_mte_o->p_radiobutton_links = gtk_radio_button_new_with_mnemonic (NULL, p_msg)
  g_free(p_msg)
  gtk_widget_set_name (p_mte_o->p_radiobutton_links, "p_radiobutton_links")
  gtk_widget_show (p_mte_o->p_radiobutton_links)
  gtk_box_pack_start (GTK_BOX (p_vbox_41), p_mte_o->p_radiobutton_links, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_links), p_ausrichtung_group)
  p_ausrichtung_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_links))

  p_mte_o->p_radiobutton_zentriert = gtk_radio_button_new_with_mnemonic (NULL, ("Mittig"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_zentriert, "p_radiobutton_zentriert")
  gtk_widget_show (p_mte_o->p_radiobutton_zentriert)
  gtk_box_pack_start (GTK_BOX (p_vbox_41), p_mte_o->p_radiobutton_zentriert, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_zentriert), p_ausrichtung_group)
  p_ausrichtung_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_zentriert))

  p_msg  = g_strconcat(@"Rechtsb", @Chr(195), @Chr(188), @"ndig" ,NULL)
  p_mte_o->p_radiobutton_rechts = gtk_radio_button_new_with_mnemonic (NULL, p_msg)
  g_free(p_msg)
  gtk_widget_set_name (p_mte_o->p_radiobutton_rechts, "p_radiobutton_rechts")
  gtk_widget_show (p_mte_o->p_radiobutton_rechts)
  gtk_box_pack_start (GTK_BOX (p_vbox_41), p_mte_o->p_radiobutton_rechts, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_rechts), p_ausrichtung_group)
  p_ausrichtung_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_rechts))

  p_mte_o->p_radiobutton_blocksatz = gtk_radio_button_new_with_mnemonic (NULL, ("Blocksatz"))
  gtk_widget_set_name (p_mte_o->p_radiobutton_blocksatz, "p_radiobutton_blocksatz")
  gtk_widget_show (p_mte_o->p_radiobutton_blocksatz)
  gtk_box_pack_start (GTK_BOX (p_vbox_41), p_mte_o->p_radiobutton_blocksatz, FALSE, FALSE, 0)
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_blocksatz), p_ausrichtung_group)
  p_ausrichtung_group = gtk_radio_button_group (GTK_RADIO_BUTTON (p_mte_o->p_radiobutton_blocksatz))

  p_label_41 = gtk_label_new ("Satzausrichtung")
  gtk_widget_set_name (p_label_41, "p_label_41")
  gtk_widget_show (p_label_41)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_41), p_label_41)
  gtk_label_set_justify (GTK_LABEL (p_label_41), GTK_JUSTIFY_LEFT)

  p_frame_42 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_42, "p_frame_42")
  gtk_widget_show (p_frame_42)
  gtk_box_pack_start (GTK_BOX (p_hbox_41), p_frame_42, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_42), 3)

  p_label_42 = gtk_label_new ("#")
  gtk_widget_set_name (p_label_42, "p_label_42")
  gtk_widget_show (p_label_42)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_42), p_label_42)
  gtk_label_set_justify (GTK_LABEL (p_label_42), GTK_JUSTIFY_LEFT)

  p_label_4x = gtk_label_new ("Ausrichtung")
  gtk_widget_set_name (p_label_4x, "p_label_4x")
  gtk_widget_show (p_label_4x)
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (p_notebook_1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (p_notebook_1), 3), p_label_4x)
  gtk_label_set_justify (GTK_LABEL (p_label_4x), GTK_JUSTIFY_LEFT)

  p_hbox_51 = gtk_hbox_new (FALSE, 0)
  gtk_widget_set_name (p_hbox_51, "p_hbox_51")
  gtk_widget_show (p_hbox_51)
  gtk_container_add (GTK_CONTAINER (p_notebook_1), p_hbox_51)

  p_frame_51 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_51, "p_frame_51")
  gtk_widget_show (p_frame_51)
  gtk_box_pack_start (GTK_BOX (p_hbox_51), p_frame_51, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_51), 3)

  p_fixed_51 = gtk_fixed_new ()
  gtk_widget_set_name (p_fixed_51, "p_fixed_51")
  gtk_widget_show (p_fixed_51)
  gtk_container_add (GTK_CONTAINER (p_frame_51), p_fixed_51)
  gtk_container_set_border_width (GTK_CONTAINER (p_fixed_51), 12)

  p_msg  = g_strconcat(@"Einr", @Chr(195), @Chr(188), @"cktiefe:" ,NULL)
  p_label_rand_tiefe = gtk_label_new (p_msg)
  g_free(p_msg)
  gtk_widget_set_name (p_label_rand_tiefe, "p_label_rand_tiefe")
  gtk_widget_show (p_label_rand_tiefe)
  gtk_fixed_put (GTK_FIXED (p_fixed_51), p_label_rand_tiefe, 0, 64)
  gtk_widget_set_usize (p_label_rand_tiefe, 84, 20)
  gtk_label_set_justify (GTK_LABEL (p_label_rand_tiefe), GTK_JUSTIFY_RIGHT)

  p_label_rand_links = gtk_label_new ("Linker Rand:")
  gtk_widget_set_name (p_label_rand_links, "p_label_rand_links")
  gtk_widget_show (p_label_rand_links)
  gtk_fixed_put (GTK_FIXED (p_fixed_51), p_label_rand_links, 0, 0)
  gtk_widget_set_usize (p_label_rand_links, 84, 20)
  gtk_label_set_justify (GTK_LABEL (p_label_rand_links), GTK_JUSTIFY_RIGHT)

  p_mte_o->p_entry_rand_links = gtk_entry_new_with_max_length (6)
  gtk_widget_set_name (p_mte_o->p_entry_rand_links, "p_entry_rand_links")
  gtk_fixed_put (GTK_FIXED (p_fixed_51), p_mte_o->p_entry_rand_links, 88, 0)
  gtk_widget_set_usize (p_mte_o->p_entry_rand_links, 50, 20)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_entry_rand_links, _
                       ("Breite des linken Randes in Pixel"), NULL)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_rand_links), ("0"))
  gtk_entry_set_invisible_char (GTK_ENTRY (p_mte_o->p_entry_rand_links), 9679)

  p_mte_o->p_entry_rand_rechts = gtk_entry_new ()
  gtk_widget_set_name (p_mte_o->p_entry_rand_rechts, "p_entry_rand_rechts")
  gtk_widget_show (p_mte_o->p_entry_rand_rechts)
  gtk_fixed_put (GTK_FIXED (p_fixed_51), p_mte_o->p_entry_rand_rechts, 88, 32)
  gtk_widget_set_usize (p_mte_o->p_entry_rand_rechts, 50, 20)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_entry_rand_rechts, _
                       ("Breite des rechten Randes in Pixel"), NULL)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_rand_rechts), ("0"))
  gtk_entry_set_invisible_char (GTK_ENTRY (p_mte_o->p_entry_rand_rechts), 9679)

  p_mte_o->p_entry_rand_tiefe = gtk_entry_new_with_max_length (6)
  gtk_widget_set_name (p_mte_o->p_entry_rand_tiefe, "p_entry_rand_tiefe")
  gtk_widget_show (p_mte_o->p_entry_rand_tiefe)
  gtk_fixed_put (GTK_FIXED (p_fixed_51), p_mte_o->p_entry_rand_tiefe, 88, 64)
  gtk_widget_set_usize (p_mte_o->p_entry_rand_tiefe, 50, 20)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_entry_rand_tiefe, _
                       ("Einr\303\274cktiefe von Abs\303\244tzen in Pixel"), NULL)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_rand_tiefe), ("0"))
  gtk_entry_set_invisible_char (GTK_ENTRY (p_mte_o->p_entry_rand_tiefe), 9679)

  p_label_rand_rechts = gtk_label_new ("Rechter Rand:")
  gtk_widget_set_name (p_label_rand_rechts, "p_label_rand_rechts")
  gtk_widget_show (p_label_rand_rechts)
  gtk_fixed_put (GTK_FIXED (p_fixed_51), p_label_rand_rechts, 0, 32)
  gtk_widget_set_usize (p_label_rand_rechts, 84, 20)
  gtk_label_set_justify (GTK_LABEL (p_label_rand_rechts), GTK_JUSTIFY_RIGHT)

  p_msg  = g_strconcat(@"R", @Chr(195), @Chr(164), @"nder" ,NULL)
  p_label_51 = gtk_label_new (p_msg)
  g_free(p_msg)
  gtk_widget_set_name (p_label_51, "p_label_51")
  gtk_widget_show (p_label_51)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_51), p_label_51)
  gtk_label_set_justify (GTK_LABEL (p_label_51), GTK_JUSTIFY_LEFT)

  p_frame_52 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_52, "p_frame_52")
  gtk_widget_show (p_frame_52)
  gtk_box_pack_start (GTK_BOX (p_hbox_51), p_frame_52, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_52), 3)

  p_label_52 = gtk_label_new ("#")
  gtk_widget_set_name (p_label_52, "p_label_52")
  gtk_widget_show (p_label_52)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_52), p_label_52)
  gtk_label_set_justify (GTK_LABEL (p_label_52), GTK_JUSTIFY_LEFT)

  p_msg  = g_strconcat(@"R", @Chr(195), @Chr(164), @"nder" ,NULL)
  p_label_5x = gtk_label_new (p_msg)
  g_free(p_msg)
  gtk_widget_set_name (p_label_5x, "p_label_5x")
  gtk_widget_show (p_label_5x)
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (p_notebook_1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (p_notebook_1), 4), p_label_5x)
  gtk_label_set_justify (GTK_LABEL (p_label_5x), GTK_JUSTIFY_LEFT)

  p_hbox_61 = gtk_hbox_new (FALSE, 0)
  gtk_widget_set_name (p_hbox_61, "p_hbox_61")
  gtk_widget_show (p_hbox_61)
  gtk_container_add (GTK_CONTAINER (p_notebook_1), p_hbox_61)

  p_frame_61 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_61, "p_frame_61")
  gtk_widget_show (p_frame_61)
  gtk_box_pack_start (GTK_BOX (p_hbox_61), p_frame_61, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_61), 3)

  p_vbox_61 = gtk_vbox_new (FALSE, 0)
  gtk_widget_set_name (p_vbox_61, "p_vbox_61")
  gtk_widget_show (p_vbox_61)
  gtk_container_add (GTK_CONTAINER (p_frame_61), p_vbox_61)
  gtk_container_set_border_width (GTK_CONTAINER (p_vbox_61), 12)

  p_mte_o->p_checkbutton_tooltip = gtk_check_button_new_with_mnemonic ("Tooltips")
  gtk_widget_set_name (p_mte_o->p_checkbutton_tooltip, "p_checkbutton_tooltip")
  gtk_widget_show (p_mte_o->p_checkbutton_tooltip)
  gtk_box_pack_start (GTK_BOX (p_vbox_61), p_mte_o->p_checkbutton_tooltip, FALSE, FALSE, 0)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_checkbutton_tooltip, _
                       ("Schaltet die Tooltips EIN und AUS"), NULL)
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (p_mte_o->p_checkbutton_tooltip), TRUE)

  p_mte_o->p_checkbutton_editable = gtk_check_button_new_with_mnemonic ("Text bearbeitbar")
  gtk_widget_set_name (p_mte_o->p_checkbutton_editable, "p_checkbutton_editable")
  gtk_widget_show (p_mte_o->p_checkbutton_editable)
  gtk_box_pack_start (GTK_BOX (p_vbox_61), p_mte_o->p_checkbutton_editable, FALSE, FALSE, 0)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_checkbutton_editable, _
                       ("Der Benutzer kann den Text bearbeiten"), NULL)
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (p_mte_o->p_checkbutton_editable), TRUE)

  p_mte_o->p_checkbutton_cursor_visible = gtk_check_button_new_with_mnemonic ("Cursor sichtbar")
  gtk_widget_set_name (p_mte_o->p_checkbutton_cursor_visible, "p_checkbutton_cursor_visible")
  gtk_widget_show (p_mte_o->p_checkbutton_cursor_visible)
  gtk_box_pack_start (GTK_BOX (p_vbox_61), p_mte_o->p_checkbutton_cursor_visible, FALSE, FALSE, 0)
  gtk_tooltips_set_tip (p_tooltips_1, p_mte_o->p_checkbutton_cursor_visible, _
                       ("Der Cursor ist sichtbar"), NULL)
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (p_mte_o->p_checkbutton_cursor_visible), TRUE)

  p_label_61 = gtk_label_new ("Dies und Das")
  gtk_widget_set_name (p_label_61, "p_label_61")
  gtk_widget_show (p_label_61)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_61), p_label_61)
  gtk_label_set_justify (GTK_LABEL (p_label_61), GTK_JUSTIFY_LEFT)

  p_frame_62 = gtk_frame_new (NULL)
  gtk_widget_set_name (p_frame_62, "p_frame_62")
  gtk_widget_show (p_frame_62)
  gtk_box_pack_start (GTK_BOX (p_hbox_61), p_frame_62, TRUE, TRUE, 0)
  gtk_container_set_border_width (GTK_CONTAINER (p_frame_62), 3)

  p_label_62 = gtk_label_new (("#"))
  gtk_widget_set_name (p_label_62, "p_label_62")
  gtk_widget_show (p_label_62)
  gtk_frame_set_label_widget (GTK_FRAME (p_frame_62), p_label_62)
  gtk_label_set_justify (GTK_LABEL (p_label_62), GTK_JUSTIFY_LEFT)

  p_label_6x = gtk_label_new ("Sonstiges")
  gtk_widget_set_name (p_label_6x, "p_label_6x")
  gtk_widget_show (p_label_6x)
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (p_notebook_1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (p_notebook_1), 5), p_label_6x)
  gtk_label_set_justify (GTK_LABEL (p_label_6x), GTK_JUSTIFY_LEFT)

'- Option Dialog mit Werten versorgen
'- Masseinheiten
  Select Case p_mte_o->p_daten->measurement_unit
    Case E_ZOLL
        '- p_radiobutton_zoll aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_zoll),TRUE)
    Case E_ZENTIMETER
        '- p_radiobutton_zentimeter aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_zentimeter),TRUE)
    Case E_PIXEL
        '- p_radiobutton_punkte aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_punkte),TRUE)
    Case E_PICA
        '- p_radiobutton_pica aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_pica),TRUE)
  End Select

'- Zeilenumbruch
  Select Case p_mte_o->p_daten->wrap_mode
    Case E_WRAP_NONE
        '- p_radiobutton_none aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_none),TRUE)
    Case E_WRAP_CHAR
        '- p_radiobutton_zeichenweiser aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_zeichenweiser),TRUE)
    Case E_WRAP_WORD
        '- p_radiobutton_wortweise aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_wortweise),TRUE)
  End Select

'- Absatzabstand
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_abstand_vor), p_mte_o->p_daten->pixels_above_lines)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_abstand_zwischen), p_mte_o->p_daten->pixels_inside_wrap)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_abstand_nach), p_mte_o->p_daten->pixels_below_lines)

'- Satzausrichtung
  Select Case p_mte_o->p_daten->justification
    Case E_JUSTIFY_LEFT
        '- p_radiobutton_links aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_links),TRUE)
    Case E_JUSTIFY_CENTER
        '- p_radiobutton_zentriert aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_zentriert),TRUE)
    Case E_JUSTIFY_RIGHT
        '- p_radiobutton_rechts aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_rechts),TRUE)
    Case E_JUSTIFY_FILL
        '- p_radiobutton_blocksatz aktivieren
      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p_mte_o->p_radiobutton_blocksatz),TRUE)
  End Select

'- Ränder
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_rand_links), p_mte_o->p_daten->left_margin)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_rand_rechts), p_mte_o->p_daten->right_margin)
  gtk_entry_set_text (GTK_ENTRY (p_mte_o->p_entry_rand_tiefe), p_mte_o->p_daten->indent)

'- Sonstiges
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (p_mte_o->p_checkbutton_tooltip), p_mte_o->p_daten->tooltips)
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (p_mte_o->p_checkbutton_editable), p_mte_o->p_daten->editable)
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (p_mte_o->p_checkbutton_cursor_visible), p_mte_o->p_daten->cursor_visible)


'- Signale
  g_signal_connect (GTK_OBJECT (p_okbutton_1), "clicked", _
                      GTK_SIGNAL_FUNC (@mte_on_menuitem_option_okbutton_activate), @p_mte_o)

  gtk_signal_connect (GTK_OBJECT (p_cancelbutton_1), "clicked", _
                      GTK_SIGNAL_FUNC (@mte_on_menuitem_option_chancelbutton_activate), p_mte_o->p_daten)


  gtk_widget_show_all (p_dialog_1)
End Function