org.eclipse.swt.widgets.Scale.sendSelectionEvent()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(168)

本文整理了Java中org.eclipse.swt.widgets.Scale.sendSelectionEvent()方法的一些代码示例,展示了Scale.sendSelectionEvent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scale.sendSelectionEvent()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Scale
类名称:Scale
方法名:sendSelectionEvent

Scale.sendSelectionEvent介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

  1. @Override
  2. long /*int*/ gtk_value_changed (long /*int*/ adjustment) {
  3. sendSelectionEvent (SWT.Selection);
  4. return 0;
  5. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

  1. @Override
  2. int /*long*/ gtk_value_changed (int /*long*/ adjustment) {
  3. sendSelectionEvent (SWT.Selection);
  4. return 0;
  5. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

  1. @Override
  2. int /*long*/ gtk_value_changed (int /*long*/ adjustment) {
  3. sendSelectionEvent (SWT.Selection);
  4. return 0;
  5. }

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

  1. void sendSelection () {
  2. NSEvent currEvent = NSApplication.sharedApplication().currentEvent();
  3. if (currEvent.type() != OS.NSLeftMouseUp)
  4. sendSelectionEvent (SWT.Selection);
  5. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. sendSelectionEvent (SWT.Selection, event, true);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. @Override
  2. LRESULT WM_MOUSEWHEEL (int /*long*/ wParam, int /*long*/ lParam) {
  3. LRESULT result = super.WM_MOUSEWHEEL (wParam, lParam);
  4. if (result != null) return result;
  5. /*
  6. * Bug in Windows. When a track bar slider is changed
  7. * from WM_MOUSEWHEEL, it does not always send either
  8. * a WM_VSCROLL or M_HSCROLL to notify the application
  9. * of the change. The fix is to detect that the selection
  10. * has changed and that notification has not been issued
  11. * and send the selection event.
  12. */
  13. int oldPosition = (int)/*64*/OS.SendMessage (handle, OS.TBM_GETPOS, 0, 0);
  14. ignoreSelection = true;
  15. int /*long*/ code = callWindowProc (handle, OS.WM_MOUSEWHEEL, wParam, lParam);
  16. ignoreSelection = false;
  17. int newPosition = (int)/*64*/OS.SendMessage (handle, OS.TBM_GETPOS, 0, 0);
  18. if (oldPosition != newPosition) {
  19. /*
  20. * Send the event because WM_HSCROLL and WM_VSCROLL
  21. * are sent from a modal message loop in windows that
  22. * is active when the user is scrolling.
  23. */
  24. sendSelectionEvent (SWT.Selection, null, true);
  25. // widget could be disposed at this point
  26. }
  27. return new LRESULT (code);
  28. }

相关文章