Exemple #1
0
void DeviceBoxRefocus() {

  DeviceBoxDeviceEvent();

  DeviceBoxFileEvent();



  // gtk_widget_set_sensitive(devicebox.device, TRUE);

  // gtk_widget_set_sensitive(devicebox.file, TRUE);

  // gtk_widget_set_sensitive(devicebox.selectbutton, TRUE);

  // gtk_widget_set_sensitive(devicebox.compress, TRUE);

  // gtk_widget_set_sensitive(devicebox.multi, TRUE);

  // gtk_widget_set_sensitive(devicebox.okbutton, TRUE);

  // gtk_widget_set_sensitive(devicebox.cancelbutton, TRUE);

  // gtk_window_set_focus(GTK_WINDOW(devicebox.window), devicebox.file);

  ShowWindow(deviceboxwindow, SW_SHOW);

  SetActiveWindow(deviceboxwindow);

} // END DeviceBoxRefocus()
Exemple #2
0
void DeviceBoxRefocus()
{
	GdkEvent event;
	DeviceBoxDeviceEvent(NULL, event, NULL);
	DeviceBoxFileEvent(NULL, event, NULL);
	gtk_widget_set_sensitive(devicebox.device, TRUE);
	gtk_widget_set_sensitive(devicebox.file, TRUE);
	gtk_widget_set_sensitive(devicebox.selectbutton, TRUE);
	gtk_widget_set_sensitive(devicebox.compress, TRUE);
	gtk_widget_set_sensitive(devicebox.multi, TRUE);
	gtk_widget_set_sensitive(devicebox.okbutton, TRUE);
	gtk_widget_set_sensitive(devicebox.cancelbutton, TRUE);
	gtk_window_set_focus(GTK_WINDOW(devicebox.window), devicebox.file);
	gtk_widget_show_all(devicebox.window);
	gtk_window_deiconify(GTK_WINDOW(devicebox.window));
} // END DeviceBoxRefocus()
Exemple #3
0
BOOL CALLBACK DeviceBoxCallback(HWND window,

                                UINT msg,

                                WPARAM param,

                                LPARAM param2) {

  switch(msg) {

    case WM_INITDIALOG:

      deviceboxwindow = window;

      DeviceBoxDisplay(); // Final touches to this window

      return(FALSE); // Let Windows display this window

      break;



    case WM_CLOSE: // The "X" in the upper right corner was hit.

      DeviceBoxCancelEvent();

      return(TRUE);

      break;



    case WM_COMMAND:

      switch(LOWORD(param)) {

        case IDC_0302: // Device Edit Box

          DeviceBoxDeviceEvent();

          return(FALSE);

          break;



        case IDC_0305: // Filename Edit Box

          DeviceBoxFileEvent();

          return(FALSE);

          break;



        case IDC_0306: // "Browse" Button

          DeviceBoxBrowseEvent();

          return(TRUE);

          break;



        case IDC_0312: // "Make File" Button

          DeviceBoxOKEvent();

          return(TRUE);

          break;



        case IDC_0313: // "Cancel" Button

          DeviceBoxCancelEvent();

          return(TRUE);

          break;

      } // ENDSWITCH param- Which object got the message?

  } // ENDSWITCH msg- What message has been sent to this window?



  return(FALSE);

} // END DeviceBoxCallback()