- Language = new Combox(FL_COMBOX_DROPLIST);
- Language2 = new Combox(FL_COMBOX_DROPLIST);
- Language->setcallback(LCombo,this);
- Language2->setcallback(LCombo2,this);
-
- fd_form_keymap = create_form_KeyMap();
-
- // Add the Intl* pointer
- fd_form_keymap->AcceptChset->u_vdata=
- fd_form_keymap->Charset->u_vdata=
- fd_form_keymap->Accept->u_vdata=
- fd_form_keymap->OtherKeymap->u_vdata=
- fd_form_keymap->KeyOnBtn->u_vdata=
- fd_form_keymap->KeyOffBtn->u_vdata=
- fd_form_keymap->KeyOnBtn2->u_vdata=(void *)this;
-
- // add the callbacks.
- fl_set_object_callback(fd_form_keymap->AcceptChset,DispatchCallback,27);
- fl_set_object_callback(fd_form_keymap->Charset,DispatchCallback,26);
- fl_set_object_callback(fd_form_keymap->Accept,DispatchCallback,0);
-
- fl_set_object_callback(fd_form_keymap->KeyOnBtn,DispatchCallback,23);
- fl_set_object_callback(fd_form_keymap->KeyOffBtn,DispatchCallback,3);
- fl_set_object_callback(fd_form_keymap->KeyOnBtn2,DispatchCallback,43);
-
- // Make sure pressing the close box does not kill LyX. (RvdK)
- fl_set_form_atclose(fd_form_keymap->KeyMap, CancelCloseBoxCB, NULL);
-
- fl_hide_object(fd_form_keymap->KeymapErr);
- fl_hide_object(fd_form_keymap->ChsetErr);
- fl_set_input(fd_form_keymap->Charset, lyxrc->font_norm.c_str());